APM:Libraries
libraries
AP_HAL_Empty
UARTDriver.cpp
Go to the documentation of this file.
1
2
#include "
UARTDriver.h
"
3
4
using namespace
Empty
;
5
6
UARTDriver::UARTDriver
() {}
7
8
void
UARTDriver::begin
(uint32_t b) {}
9
void
UARTDriver::begin
(uint32_t b, uint16_t rxS, uint16_t txS) {}
10
void
UARTDriver::end
() {}
11
void
UARTDriver::flush
() {}
12
bool
UARTDriver::is_initialized
() {
return
false
; }
13
void
UARTDriver::set_blocking_writes
(
bool
blocking) {}
14
bool
UARTDriver::tx_pending
() {
return
false
; }
15
16
/* Empty implementations of Stream virtual methods */
17
uint32_t
UARTDriver::available
() {
return
0; }
18
uint32_t
UARTDriver::txspace
() {
return
1; }
19
int16_t
UARTDriver::read
() {
return
-1; }
20
21
/* Empty implementations of Print virtual methods */
22
size_t
UARTDriver::write
(uint8_t c) {
return
0; }
23
24
size_t
UARTDriver::write
(
const
uint8_t *
buffer
,
size_t
size)
25
{
26
size_t
n = 0;
27
while
(size--) {
28
n +=
write
(*buffer++);
29
}
30
return
n;
31
}
Empty::UARTDriver::end
void end()
Definition:
UARTDriver.cpp:10
UARTDriver.h
Empty::UARTDriver::UARTDriver
UARTDriver()
Definition:
UARTDriver.cpp:6
Empty
Definition:
AP_HAL_Empty_Namespace.h:3
buffer
static uint8_t buffer[SRXL_FRAMELEN_MAX]
Definition:
srxl.cpp:56
Empty::UARTDriver::flush
void flush()
Definition:
UARTDriver.cpp:11
Empty::UARTDriver::write
size_t write(uint8_t c)
Definition:
UARTDriver.cpp:22
Empty::UARTDriver::set_blocking_writes
void set_blocking_writes(bool blocking)
Definition:
UARTDriver.cpp:13
Empty::UARTDriver::tx_pending
bool tx_pending()
Definition:
UARTDriver.cpp:14
Empty::UARTDriver::read
int16_t read() override
Definition:
UARTDriver.cpp:19
Empty::UARTDriver::begin
void begin(uint32_t b)
Definition:
UARTDriver.cpp:8
Empty::UARTDriver::txspace
uint32_t txspace() override
Definition:
UARTDriver.cpp:18
Empty::UARTDriver::available
uint32_t available() override
Definition:
UARTDriver.cpp:17
Empty::UARTDriver::is_initialized
bool is_initialized()
Definition:
UARTDriver.cpp:12
Generated on Sun Jun 17 2018 14:18:48 for APM:Libraries by
1.8.13