Struct baton_node¶
Node state. More...
#include <baton_node.h>
Public Attributes¶
| Type | Name |
|---|---|
| uint8_t | ack_frame ACK being sent. |
| struct baton_channel | channel One channel per node index. |
| struct baton_node_config | config Copy of the configuration. |
| uint8_t | current Master: index of the polled slave - 1. |
| uint32_t | cycle_count Master: number of cycles started. |
| uint32_t | cycle_start Master: start of the current cycle. |
| bool | initialized baton_node_init() succeeded. |
| uint32_t | last_housekeep_ms Last TTL scan. |
| struct baton_link | link Byte-level link. |
| uint8_t | link_state Master/slave state machine. |
| uint32_t | link_timer Start of the current wait. |
| uint8_t | node_address Index 0 = master, 1..n = slaves. |
| uint8_t | node_count Master + slaves. |
| uint32_t | now_ms Time of the last baton_node_process() . |
| uint32_t | others_mask Node mask of all other nodes. |
| uint8_t | poll_seq Slave: sequence number of the last POLL. |
| struct baton_queue | queue [HIGH], [NORMAL]. |
| uint8_t | queue_high_memory HIGH queue storage. |
| uint8_t | queue_normal_memory NORMAL queue storage. |
| uint8_t | retries Slave: retransmissions to slot_peer in this slot. |
| uint8_t | self_index Index of this node. |
| uint8_t | slot_k Slave: iteration counter over the other slaves. |
| uint32_t | slot_nack Slave: peers that did not acknowledge in this slot. |
| uint8_t | slot_pass Slave: 0 = reachable peers, 1 = peers considered dead. |
| uint8_t | slot_peer Slave: node index being served. |
| uint8_t | slot_rr Slave: round-robin start, advanced every slot. |
| uint32_t | slot_start Slave: time of the POLL that started the slot. |
| uint8_t | state_data State mailboxes, in list order. |
| uint32_t | state_dirty Node mask: still to be sent to. |
| uint8_t | state_length Current length of each state. |
| struct baton_stats | stats Node-level counters. |
| uint8_t | tx_frame POLL, RESP or DATA being sent. |
Detailed Description¶
Treat the members as private; use the functions below.
Public Attributes Documentation¶
variable ack_frame¶
ACK being sent.
variable channel¶
One channel per node index.
variable config¶
Copy of the configuration.
variable current¶
Master: index of the polled slave - 1.
variable cycle_count¶
Master: number of cycles started.
variable cycle_start¶
Master: start of the current cycle.
variable initialized¶
baton_node_init() succeeded.
variable last_housekeep_ms¶
Last TTL scan.
variable link¶
Byte-level link.
variable link_state¶
Master/slave state machine.
variable link_timer¶
Start of the current wait.
variable node_address¶
Index 0 = master, 1..n = slaves.
variable node_count¶
Master + slaves.
variable now_ms¶
Time of the last baton_node_process() .
variable others_mask¶
Node mask of all other nodes.
variable poll_seq¶
Slave: sequence number of the last POLL.
variable queue¶
[HIGH], [NORMAL].
variable queue_high_memory¶
HIGH queue storage.
variable queue_normal_memory¶
NORMAL queue storage.
variable retries¶
Slave: retransmissions to slot_peer in this slot.
variable self_index¶
Index of this node.
variable slot_k¶
Slave: iteration counter over the other slaves.
variable slot_nack¶
Slave: peers that did not acknowledge in this slot.
variable slot_pass¶
Slave: 0 = reachable peers, 1 = peers considered dead.
variable slot_peer¶
Slave: node index being served.
variable slot_rr¶
Slave: round-robin start, advanced every slot.
variable slot_start¶
Slave: time of the POLL that started the slot.
variable state_data¶
State mailboxes, in list order.
variable state_dirty¶
Node mask: still to be sent to.
variable state_length¶
Current length of each state.
variable stats¶
Node-level counters.
variable tx_frame¶
POLL, RESP or DATA being sent.
The documentation for this class was generated from the following file inc/baton_node.h