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

Private data for the UART Exchange. More...

Collaboration diagram for uart_exchange_priv:

Public Attributes

struct ca821x_exchange_base base
 Exchange base structure. More...
 
int fd
 UART device file descriptor. More...
 
uint8_t tx_stalled
 True if transmissions are stalled waiting for ack. More...
 
uint8_t rx_buf [MAX_BUF_SIZE]
 Private buffer for buffering read data before full packet is received. More...
 
uint8_t tx_buf [MAX_BUF_SIZE]
 Private 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 that previous message was sent (for timing out ack) More...
 
struct timespec rx_start
 Time that current message receive started (for timing out receive) More...
 
int dummy_pipe_fd [2]
 Dummy pipe fds to release from select() call when write is due. More...
 

Detailed Description

Private data for the UART Exchange.

Member Data Documentation

◆ base

struct ca821x_exchange_base uart_exchange_priv::base

Exchange base structure.

◆ dummy_pipe_fd

int uart_exchange_priv::dummy_pipe_fd[2]

Dummy pipe fds to release from select() call when write is due.

◆ fd

int uart_exchange_priv::fd

UART device file descriptor.

◆ offset

size_t uart_exchange_priv::offset

Current offset for reading into buf.

◆ prev_send

struct timespec uart_exchange_priv::prev_send

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

◆ rx_buf

uint8_t uart_exchange_priv::rx_buf[MAX_BUF_SIZE]

Private buffer for buffering read data before full packet is received.

◆ rx_start

struct timespec uart_exchange_priv::rx_start

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

◆ tx_buf

uint8_t uart_exchange_priv::tx_buf[MAX_BUF_SIZE]

Private buffer for buffering tx data (in case retransmit is required)

◆ tx_stalled

uint8_t uart_exchange_priv::tx_stalled

True if transmissions are stalled waiting for ack.


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