Skip to main content

pamoja_i2c_part_read_only

Function pamoja_i2c_part_read_only 

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

Marks bits of one register of a part whose registers are sixteen bits wide as the part’s to set: a driver’s write leaves them as the part holds them, as a conversion-ready flag is.

§Arguments

  • part - the part.
  • register - the register.
  • mask - the bits that are the part’s.

§Returns

PamojaStatus::Ok, or PamojaStatus::InvalidArgument for a null part or a part of another kind.

§Safety

part must be a live handle or null.