#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_can_bus_receive(
bus: *const PamojaCanBus,
timeout_micros: u64,
out_frame: *mut *mut PamojaCanFrame,
) -> PamojaStatusExpand description
Takes the next frame the node keeps, waiting up to a timeout for one.
§Arguments
bus- the node.timeout_micros- how long to wait.out_frame- receives a new frame handle, which the caller releases withpamoja_can_frame_free, or null when the timeout passed with nothing.
§Returns
§Safety
bus must be a live handle or null, and out_frame a writable pointer or null.