Skip to main content

pamoja_hdc1080_init

Function pamoja_hdc1080_init 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_hdc1080_init( sensor: *mut PamojaHdc1080, ) -> PamojaStatus
Expand description

Checks the part is an HDC1080 and writes the configuration.

§Arguments

  • sensor - the driver.

§Returns

PamojaStatus::Ok; PamojaStatus::InvalidArgument for a null driver; PamojaStatus::Io when the bus fails; or PamojaStatus::Codec when either id register is not an HDC1080’s.

§Safety

sensor must be a live handle or null.