Skip to main content

pamoja_can_j1939_decode

Function pamoja_can_j1939_decode 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_can_j1939_decode( id: u32, extended: bool, out_message: *mut PamojaJ1939Id, ) -> bool
Expand description

Decodes the J1939 fields out of an extended CAN identifier.

§Returns

true when extended is set, with *out_message filled in; false for a standard 11-bit identifier, which J1939 does not use, leaving *out_message untouched.

§Safety

out_message must point to a writable PamojaJ1939Id.