Skip to main content

pamoja_i2c_part_register

Function pamoja_i2c_part_register 

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

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

§Arguments

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

§Returns

Its value, which is what a driver wrote if it wrote one, or 0 for a null part or a part of another kind.

§Safety

part must be a live handle or null.