Skip to main content

word_from_bytes

Function word_from_bytes 

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

Assembles a register word from the two bytes the part sends, most significant byte first.

§Arguments

  • bytes - the two data bytes of a register read.

§Returns

The 16-bit register word.