Skip to main content

word_frame

Function word_frame 

Source
pub fn word_frame(value: u16) -> [u8; 3]
Expand description

Builds the three-byte frame of one data word: the word, most significant byte first, followed by its CRC.

The inverse of word, and the payload every write command carries.

§Arguments

  • value - the 16-bit word.

§Returns

The word’s two bytes and its CRC.