Skip to main content

pamoja_scd4x_serial_number_frame

Function pamoja_scd4x_serial_number_frame 

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

Builds the nine bytes an SCD4x sends for a serial number, each CRC included.

§Returns

PamojaStatus::Ok on success, with the nine bytes written to out_bytes, or PamojaStatus::InvalidArgument if out_bytes is null.

§Safety

out_bytes must point to at least nine writable bytes.