Skip to main content

nros_platform_can_recv

Function nros_platform_can_recv 

Source
pub unsafe extern "C" fn nros_platform_can_recv(
    can: *mut nros_platform_can_t,
    frame: *mut nros_platform_can_frame_t,
    timeout_us: u32,
) -> i8
Expand description

Receive one frame, waiting at most timeout_us (0: poll). NROS_PLATFORM_CAN_EAGAIN when nothing arrived; NROS_PLATFORM_CAN_ENOTSUP on a backend without receive.