Namespace PanelBridge
Public Types
| Type | Name |
|---|---|
| typedef void(*)(uint8_t nodeId) | NodeCallback Callback type for node liveness events. Parameter is PanelGroup node ID (1–63). |
Public Functions
| Type | Name |
|---|---|
| void | loop () Run PanelBridge work not owned by DcsBios::loop(). |
| void | onNodeAlive (NodeCallback cb) Register a callback fired when a node transitions from dead/unseen to alive. |
| void | onNodeDead (NodeCallback cb) Register a callback fired when a live node misses the heartbeat timeout (3 s). |
| void | setup () Initialise STM32 board services, UART2, CANProtocol , andPanelBridge internals. |
Public Types Documentation
typedef NodeCallback
Callback type for node liveness events. Parameter is PanelGroup node ID (1–63).
using PanelBridge::NodeCallback = typedef void(*)(uint8_t nodeId);
Public Functions Documentation
function loop
Run PanelBridge work not owned by DcsBios::loop().
void PanelBridge::loop ()
Drains CANProtocol RX, dispatches EVT packets, services CANProtocol batching deadlines, checks node heartbeat timeouts (3 s), and handles DiagSerial 'T' bytes for TEST_SEQ.
Note:
Call after DcsBios::loop() each iteration.
function onNodeAlive
Register a callback fired when a node transitions from dead/unseen to alive.
void PanelBridge::onNodeAlive (
NodeCallback cb
)
Passing nullptr clears the callback. Set before calling setup().
Parameters:
cbFunction called with the PanelGroup node ID (1–63).
function onNodeDead
Register a callback fired when a live node misses the heartbeat timeout (3 s).
void PanelBridge::onNodeDead (
NodeCallback cb
)
Passing nullptr clears the callback. Set before calling setup().
Parameters:
cbFunction called with the PanelGroup node ID (1–63).
function setup
Initialise STM32 board services, UART2, CANProtocol , andPanelBridge internals.
void PanelBridge::setup ()
Performs in order: STM32Board::begin(), Serial.begin(250000), DCS-BIOS export listener registration, CANProtocol::filterAcceptAll(), CANProtocol::onReceive() registration, CANProtocol::start(), and cold-boot SYNC_REQ broadcast.
Note:
Sketch must call DcsBios::setup() immediately after this.
The documentation for this class was generated from the following file Firmware/Libraries/PanelBridge/PanelBridge.cpp