APM:Libraries
UARTDriver.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "AP_HAL_Empty.h"
4 
6 public:
7  UARTDriver();
8  /* Empty implementations of UARTDriver virtual methods */
9  void begin(uint32_t b);
10  void begin(uint32_t b, uint16_t rxS, uint16_t txS);
11  void end();
12  void flush();
13  bool is_initialized();
14  void set_blocking_writes(bool blocking);
15  bool tx_pending();
16 
17  /* Empty implementations of Stream virtual methods */
18  uint32_t available() override;
19  uint32_t txspace() override;
20  int16_t read() override;
21 
22  /* Empty implementations of Print virtual methods */
23  size_t write(uint8_t c);
24  size_t write(const uint8_t *buffer, size_t size);
25 };
static uint8_t buffer[SRXL_FRAMELEN_MAX]
Definition: srxl.cpp:56
size_t write(uint8_t c)
Definition: UARTDriver.cpp:22
void set_blocking_writes(bool blocking)
Definition: UARTDriver.cpp:13
int16_t read() override
Definition: UARTDriver.cpp:19
void begin(uint32_t b)
Definition: UARTDriver.cpp:8
uint32_t txspace() override
Definition: UARTDriver.cpp:18
uint32_t available() override
Definition: UARTDriver.cpp:17