Skip to main content

pamoja_scd4x_word_frame

Function pamoja_scd4x_word_frame 

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

Builds the three bytes an SCD4x sends for a word: the word then its CRC.

§Returns

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

§Safety

out_bytes must point to at least three writable bytes.