Skip to main content

pamoja_i2c_part_kind

Function pamoja_i2c_part_kind 

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

Returns which kind of part a handle holds.

§Arguments

  • part - the part.

§Returns

PAMOJA_I2C_PART_BYTES, PAMOJA_I2C_PART_WORDS, or PAMOJA_I2C_PART_COMMANDS; the bytes code for a null part.

§Safety

part must be a live handle or null.