Skip to main content

pamoja_scd4x_command_frame

Function pamoja_scd4x_command_frame 

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

Builds the two bytes that address an SCD4x command, most significant first.

§Returns

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

§Safety

out_bytes must point to at least two writable bytes.