Function write_word
Source pub fn write_word<I2C: I2c>(
bus: &mut I2C,
address: u8,
register: u8,
value: u16,
) -> Result<(), I2C::Error>
Expand description
Writes a 16-bit register that travels most significant byte first.
§Arguments
bus - the I2C bus.
address - the part’s 7-bit address.
register - the register address, or pointer value, to write.
value - the value to write.
§Errors
Returns the bus error if the part does not answer.