pub fn decode_command(frame: &NmtCommandFrame) -> Result<(NmtCommand, NodeId)>Expand description
Decode an NMT node-control frame into (command, target).
A target byte of 0 decodes to NodeId::BROADCAST; any other value is a
checked device id (1..=127), else Error::InvalidNodeId.