Struct baton_link¶
Link state. More...
#include <baton_link.h>
Public Attributes¶
| Type | Name |
|---|---|
| struct baton_link_config | config Copy of the configuration. |
| struct baton_link_counters | counters Diagnostic counters. |
| bool | echo_error An echo byte did not match. |
| uint16_t | echo_index Echo bytes already compared. |
| uint32_t | last_rx_ms Last byte received from another node (fed to the parser). |
| uint32_t | last_tx_end_ms End of the last transmission. |
| struct baton_parser | parser Receive stream parser. |
| volatile uint8_t | rx_buffer Receive ring (interrupt producer). |
| volatile uint16_t | rx_head Next write position (interrupt). |
| volatile uint32_t | rx_overflows Bytes lost because the ring was full. |
| volatile uint16_t | rx_tail Next read position (process). |
| const uint8_t * | tx_data Frame being transmitted. |
| volatile bool | tx_done_flag Set by baton_link_tx_done_isr() . |
| uint16_t | tx_length Length of tx_data. |
| uint32_t | tx_start_ms Start of the current transmission. |
| uint8_t | tx_state Idle, waiting for a silent bus, or busy. |
Detailed Description¶
Treat the members as private; use the functions below.
Public Attributes Documentation¶
variable config¶
Copy of the configuration.
variable counters¶
Diagnostic counters.
variable echo_error¶
An echo byte did not match.
variable echo_index¶
Echo bytes already compared.
variable last_rx_ms¶
Last byte received from another node (fed to the parser).
variable last_tx_end_ms¶
End of the last transmission.
variable parser¶
Receive stream parser.
variable rx_buffer¶
Receive ring (interrupt producer).
variable rx_head¶
Next write position (interrupt).
variable rx_overflows¶
Bytes lost because the ring was full.
variable rx_tail¶
Next read position (process).
variable tx_data¶
Frame being transmitted.
variable tx_done_flag¶
Set by baton_link_tx_done_isr() .
variable tx_length¶
Length of tx_data.
variable tx_start_ms¶
Start of the current transmission.
variable tx_state¶
Idle, waiting for a silent bus, or busy.
The documentation for this class was generated from the following file inc/baton_link.h