Skip to main content

word_to_bytes

Function word_to_bytes 

Source
pub fn word_to_bytes(word: u16) -> [u8; 2]
Expand description

Splits a register word into the two bytes written to the part, most significant byte first.

§Arguments

  • word - the 16-bit register word.

§Returns

The two data bytes of a register write.