Skip to main content

encode_node_guard

Function encode_node_guard 

Source
pub fn encode_node_guard(state: NmtState, toggle: bool) -> u8
Expand description

Encode a node-guarding response byte: the alternating toggle bit in bit 7 and the current NmtState in bits 0–6.

Node guarding (CiA 301 §7.3.1) is the legacy error-control alternative to heartbeat: the master polls the node with an RTR frame on 0x700 + node and the node replies with this byte, toggling bit 7 on each reply so lost or duplicated responses are detectable.