Skip to main content

pamoja_i2c_part_received

Function pamoja_i2c_part_received 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_i2c_part_received( part: *const PamojaI2cPart, index: usize, ) -> *mut PamojaBuffer
Expand description

Copies one write a part that takes commands received: a command and any arguments after it.

§Arguments

§Returns

The write’s bytes, which the caller releases with crate::pamoja_buffer_free, or null for a null part, a part of another kind, or an index past the last write.

§Safety

part must be a live handle or null.