Skip to main content

aivdm_message_heading_degrees

Function aivdm_message_heading_degrees 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn aivdm_message_heading_degrees( msg: *const AivdmMessage, out_heading: *mut u16, ) -> bool
Expand description

Reads true heading, in whole degrees (0-359), off a message.

Returns true and writes *out_heading if this message type carries a heading and it is marked available; returns false otherwise.

ยงSafety

msg must be NULL or a valid, non-freed handle from aivdm_decode_line. out_heading must be a valid pointer to a writable u16.