Skip to main content

write_frame

Function write_frame 

Source
pub fn write_frame(command: u16, value: u16) -> [u8; 5]
Expand description

Builds the five bytes of a write command: the command word followed by one data word and its CRC.

§Arguments

  • command - one of the command write words.
  • value - the data word the command carries.

§Returns

The command’s two bytes, the word’s two bytes, and the word’s CRC.