Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
Private data for the UART exchange. More...
Public Attributes | |
struct ca821x_exchange_base | base |
Exchange base structure. More... | |
HANDLE | port_handle |
Serial port handle. More... | |
bool | tx_stalled |
True if transmissions are stalled waiting for ack. More... | |
uint8_t | rx_buf [MAX_BUF_SIZE] |
Buffer for buffering read data before full packet is received. More... | |
uint8_t | tx_buf [MAX_BUF_SIZE] |
Buffer for buffering tx data (in case retransmit is required) More... | |
size_t | offset |
Current offset for reading into buf. More... | |
struct timespec | prev_send_time |
Time that previous message was sent (for timing out ack) More... | |
struct timespec | rx_start_time |
Time that current message receive started (for timing out receive) More... | |
HANDLE | events [2] |
Event handles for signalling and allowing WaitForMultipleObjects() to unblock. More... | |
OVERLAPPED | port_overlap |
Overlapped struct to pass in ReadFile function for Overlapped I/O. More... | |
Private data for the UART exchange.
struct ca821x_exchange_base uart_exchange_info::base |
Exchange base structure.
HANDLE uart_exchange_info::events[2] |
Event handles for signalling and allowing WaitForMultipleObjects() to unblock.
size_t uart_exchange_info::offset |
Current offset for reading into buf.
HANDLE uart_exchange_info::port_handle |
Serial port handle.
OVERLAPPED uart_exchange_info::port_overlap |
Overlapped struct to pass in ReadFile function for Overlapped I/O.
struct timespec uart_exchange_info::prev_send_time |
Time that previous message was sent (for timing out ack)
uint8_t uart_exchange_info::rx_buf[MAX_BUF_SIZE] |
Buffer for buffering read data before full packet is received.
struct timespec uart_exchange_info::rx_start_time |
Time that current message receive started (for timing out receive)
uint8_t uart_exchange_info::tx_buf[MAX_BUF_SIZE] |
Buffer for buffering tx data (in case retransmit is required)
bool uart_exchange_info::tx_stalled |
True if transmissions are stalled waiting for ack.