Skip to main content

pamoja_i2c_part_word

Function pamoja_i2c_part_word 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_i2c_part_word( part: *const PamojaI2cPart, register: u8, ) -> u16
Expand description

Reads what one register of a part whose registers are sixteen bits wide holds.

§Arguments

  • part - the part.
  • register - which register.

§Returns

Its value, which is what a driver wrote there apart from the read-only bits, or 0 for a null part or a part of another kind.

§Safety

part must be a live handle or null.