Skip to main content

pamoja_hdc1080_serial_id_registers

Function pamoja_hdc1080_serial_id_registers 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_hdc1080_serial_id_registers( serial: u64, out_registers: *mut u16, ) -> PamojaStatus
Expand description

Splits a serial number back into the three HDC1080 serial-ID registers.

§Returns

PamojaStatus::Ok on success, with the three registers written to out_registers high word first, or PamojaStatus::InvalidArgument if the pointer is null.

§Safety

out_registers must point to at least three writable uint16_t values.