int send_packet(int uart_fd, EscPacket &packet, int responder)
Sends a packet to all ESCs and requests a specific ESC to respond.
int read_data_from_uart(int uart_fd, ESC_UART_BUF *const uart_buf)
Read data from the UART into a buffer.
int deinitialise_uart(int &uart_fd)
Closes a device previously opened with initialise_uart().
Namespace encapsulating all device framework classes, functions and data.
int enable_flow_control(int uart_fd, bool enabled)
Enables/disables flow control for open UART device.
const uint8_t crc_table[256]
Lookup-table for faster CRC computation when sending ESC packets.
int parse_tap_esc_feedback(ESC_UART_BUF *const serial_buf, EscPacket *const packetdata)
Parse feedback from an ESC.
void select_responder(uint8_t sel)
Select tap esc responder data for serial interface by 74hct151.
int initialise_uart(const char *const device, int &uart_fd)
Opens a device for use as UART.