Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
uart_exchange_info Struct Reference

Private data for the UART exchange. More...

Collaboration diagram for uart_exchange_info:

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...
 

Detailed Description

Private data for the UART exchange.

Member Data Documentation

◆ base

struct ca821x_exchange_base uart_exchange_info::base

Exchange base structure.

◆ events

HANDLE uart_exchange_info::events[2]

Event handles for signalling and allowing WaitForMultipleObjects() to unblock.

◆ offset

size_t uart_exchange_info::offset

Current offset for reading into buf.

◆ port_handle

HANDLE uart_exchange_info::port_handle

Serial port handle.

◆ port_overlap

OVERLAPPED uart_exchange_info::port_overlap

Overlapped struct to pass in ReadFile function for Overlapped I/O.

◆ prev_send_time

struct timespec uart_exchange_info::prev_send_time

Time that previous message was sent (for timing out ack)

◆ rx_buf

uint8_t uart_exchange_info::rx_buf[MAX_BUF_SIZE]

Buffer for buffering read data before full packet is received.

◆ rx_start_time

struct timespec uart_exchange_info::rx_start_time

Time that current message receive started (for timing out receive)

◆ tx_buf

uint8_t uart_exchange_info::tx_buf[MAX_BUF_SIZE]

Buffer for buffering tx data (in case retransmit is required)

◆ tx_stalled

bool uart_exchange_info::tx_stalled

True if transmissions are stalled waiting for ack.


The documentation for this struct was generated from the following file: