#include <UARTDriver.h>
Definition at line 12 of file UARTDriver.h.
◆ UARTDriver()
HALSITL::UARTDriver::UARTDriver |
( |
const uint8_t |
portNumber, |
|
|
SITL_State * |
sitlState |
|
) |
| |
|
inline |
◆ _check_connection()
void UARTDriver::_check_connection |
( |
void |
| ) |
|
|
private |
◆ _check_reconnect()
void UARTDriver::_check_reconnect |
( |
void |
| ) |
|
|
private |
◆ _select_check()
bool UARTDriver::_select_check |
( |
int |
fd | ) |
|
|
staticprivate |
◆ _set_nonblocking()
void UARTDriver::_set_nonblocking |
( |
int |
fd | ) |
|
|
staticprivate |
◆ _tcp_start_client()
void UARTDriver::_tcp_start_client |
( |
const char * |
address, |
|
|
uint16_t |
port |
|
) |
| |
|
private |
◆ _tcp_start_connection()
void UARTDriver::_tcp_start_connection |
( |
uint16_t |
port, |
|
|
bool |
wait_for_connection |
|
) |
| |
|
private |
◆ _timer_tick()
void UARTDriver::_timer_tick |
( |
void |
| ) |
|
|
virtual |
◆ _uart_start_connection()
void UARTDriver::_uart_start_connection |
( |
void |
| ) |
|
|
private |
◆ available()
uint32_t HALSITL::UARTDriver::available |
( |
| ) |
|
|
overridevirtual |
◆ begin() [1/2]
void HALSITL::UARTDriver::begin |
( |
uint32_t |
b | ) |
|
|
inlinevirtual |
◆ begin() [2/2]
void HALSITL::UARTDriver::begin |
( |
uint32_t |
baud, |
|
|
uint16_t |
rxSpace, |
|
|
uint16_t |
txSpace |
|
) |
| |
|
virtual |
Extended port open method
Allows for both opening with specified buffer sizes, and re-opening to adjust a subset of the port's settings.
- Note
- Buffer sizes greater than ::_max_buffer_size will be rounded down.
- Parameters
-
baud | Selects the speed that the port will be configured to. If zero, the port speed is left unchanged. |
rxSpace | Sets the receive buffer size for the port. If zero then the buffer size is left unchanged if the port is open, or set to ::_default_rx_buffer_size if it is currently closed. |
txSpace | Sets the transmit buffer size for the port. If zero then the buffer size is left unchanged if the port is open, or set to ::_default_tx_buffer_size if it is currently closed. |
Implements AP_HAL::UARTDriver.
◆ configure_parity()
void HALSITL::UARTDriver::configure_parity |
( |
uint8_t |
v | ) |
|
|
overridevirtual |
◆ end()
void HALSITL::UARTDriver::end |
( |
| ) |
|
|
virtual |
◆ flush()
void HALSITL::UARTDriver::flush |
( |
| ) |
|
|
virtual |
◆ from()
◆ get_flow_control()
enum flow_control HALSITL::UARTDriver::get_flow_control |
( |
void |
| ) |
|
|
inlinevirtual |
◆ is_initialized()
bool HALSITL::UARTDriver::is_initialized |
( |
| ) |
|
|
inlinevirtual |
◆ read()
int16_t HALSITL::UARTDriver::read |
( |
| ) |
|
|
overridevirtual |
◆ receive_time_constraint_us()
uint64_t HALSITL::UARTDriver::receive_time_constraint_us |
( |
uint16_t |
nbytes | ) |
|
|
overridevirtual |
◆ set_blocking_writes()
void HALSITL::UARTDriver::set_blocking_writes |
( |
bool |
blocking | ) |
|
|
inlinevirtual |
◆ set_speed()
bool HALSITL::UARTDriver::set_speed |
( |
int |
speed | ) |
|
|
private |
◆ set_stop_bits()
void HALSITL::UARTDriver::set_stop_bits |
( |
int |
n | ) |
|
|
overridevirtual |
◆ set_unbuffered_writes()
bool HALSITL::UARTDriver::set_unbuffered_writes |
( |
bool |
on | ) |
|
|
overridevirtual |
◆ tx_pending()
bool HALSITL::UARTDriver::tx_pending |
( |
| ) |
|
|
inlinevirtual |
◆ txspace()
uint32_t HALSITL::UARTDriver::txspace |
( |
| ) |
|
|
overridevirtual |
◆ write() [1/2]
size_t HALSITL::UARTDriver::write |
( |
uint8_t |
c | ) |
|
|
virtual |
◆ write() [2/2]
size_t HALSITL::UARTDriver::write |
( |
const uint8_t * |
buffer, |
|
|
size_t |
size |
|
) |
| |
|
virtual |
◆ HALSITL::SITL_State
◆ _connected
bool HALSITL::UARTDriver::_connected = false |
|
private |
◆ _console
bool HALSITL::UARTDriver::_console |
|
staticprivate |
◆ _fd
int HALSITL::UARTDriver::_fd |
◆ _listen_fd
int HALSITL::UARTDriver::_listen_fd |
|
private |
◆ _nonblocking_writes
bool HALSITL::UARTDriver::_nonblocking_writes |
|
private |
◆ _portNumber
uint8_t HALSITL::UARTDriver::_portNumber |
|
private |
◆ _readbuffer
ByteBuffer HALSITL::UARTDriver::_readbuffer {16384} |
|
private |
◆ _receive_timestamp
uint64_t HALSITL::UARTDriver::_receive_timestamp |
|
private |
◆ _serial_port
int HALSITL::UARTDriver::_serial_port |
|
private |
◆ _sitlState
◆ _tcp_client_addr
const char* HALSITL::UARTDriver::_tcp_client_addr |
|
private |
◆ _uart_baudrate
uint32_t HALSITL::UARTDriver::_uart_baudrate |
|
private |
◆ _uart_path
const char* HALSITL::UARTDriver::_uart_path |
|
private |
◆ _unbuffered_writes
bool HALSITL::UARTDriver::_unbuffered_writes |
◆ _use_send_recv
bool HALSITL::UARTDriver::_use_send_recv = false |
|
private |
◆ _writebuffer
ByteBuffer HALSITL::UARTDriver::_writebuffer {16384} |
|
private |
The documentation for this class was generated from the following files: