Skip to content

Struct baton_channel

ClassList > baton_channel

Stop-and-wait state of the channel to one peer, both directions. More...

  • #include <baton_node.h>

Public Attributes

Type Name
uint8_t fail_streak
Consecutive failures (slave: ACK, master: RESP).
uint16_t inflight
Messages of the unacknowledged frame.
uint8_t inflight_count
> 0: the last frame with content is not acknowledged yet.
uint8_t resp_seq
Master: sequence number of the last RESP with content.
bool resp_valid
Master: resp_seq is valid.
bool rx_last_first
The last delivered frame had the FIRST flag.
uint8_t rx_seq
Sequence number of the last delivered frame.
bool rx_valid
rx_seq is valid.
bool tx_first
FIRST flag until the first acknowledgement after init.
uint8_t tx_seq
Sequence number of the next or outstanding frame.

Detailed Description

Private.

Public Attributes Documentation

variable fail_streak

Consecutive failures (slave: ACK, master: RESP).

uint8_t baton_channel::fail_streak;


variable inflight

Messages of the unacknowledged frame.

uint16_t baton_channel::inflight[BATON_MAX_MSGS_PER_FRAME];


variable inflight_count

0: the last frame with content is not acknowledged yet.

uint8_t baton_channel::inflight_count;

variable resp_seq

Master: sequence number of the last RESP with content.

uint8_t baton_channel::resp_seq;


variable resp_valid

Master: resp_seq is valid.

bool baton_channel::resp_valid;


variable rx_last_first

The last delivered frame had the FIRST flag.

bool baton_channel::rx_last_first;


variable rx_seq

Sequence number of the last delivered frame.

uint8_t baton_channel::rx_seq;


variable rx_valid

rx_seq is valid.

bool baton_channel::rx_valid;


variable tx_first

FIRST flag until the first acknowledgement after init.

bool baton_channel::tx_first;


variable tx_seq

Sequence number of the next or outstanding frame.

uint8_t baton_channel::tx_seq;



The documentation for this class was generated from the following file inc/baton_node.h