4 #if (defined _MSC_VER) && (_MSC_VER < 1600) 5 #error "The C-MAVLink implementation requires Visual Studio 2010 or greater" 11 #ifdef MAVLINK_USE_CXX_NAMESPACE 17 #define MAVPACKED( __Declaration__ ) __Declaration__ __attribute__((packed)) 19 #define MAVPACKED( __Declaration__ ) __pragma( pack(push, 1) ) __Declaration__ __pragma( pack(pop) ) 22 #ifndef MAVLINK_MAX_PAYLOAD_LEN 24 #define MAVLINK_MAX_PAYLOAD_LEN 255 27 #define MAVLINK_CORE_HEADER_LEN 9 28 #define MAVLINK_CORE_HEADER_MAVLINK1_LEN 5 29 #define MAVLINK_NUM_HEADER_BYTES (MAVLINK_CORE_HEADER_LEN + 1) 30 #define MAVLINK_NUM_CHECKSUM_BYTES 2 31 #define MAVLINK_NUM_NON_PAYLOAD_BYTES (MAVLINK_NUM_HEADER_BYTES + MAVLINK_NUM_CHECKSUM_BYTES) 33 #define MAVLINK_SIGNATURE_BLOCK_LEN 13 35 #define MAVLINK_MAX_PACKET_LEN (MAVLINK_MAX_PAYLOAD_LEN + MAVLINK_NUM_NON_PAYLOAD_BYTES + MAVLINK_SIGNATURE_BLOCK_LEN) 51 uint32_t param_uint32;
53 uint16_t param_uint16;
76 typedef struct param_union_extended {
80 uint8_t mavlink_type:7;
95 }) mavlink_param_union_double_t;
112 uint8_t incompat_flags;
113 uint8_t compat_flags;
137 #define MAVLINK_MAX_FIELDS 64 141 const char *print_format;
143 unsigned int array_length;
144 unsigned int wire_offset;
145 unsigned int structure_offset;
157 #define _MAV_PAYLOAD(msg) ((const char *)(&((msg)->payload64[0]))) 158 #define _MAV_PAYLOAD_NON_CONST(msg) ((char *)(&((msg)->payload64[0]))) 161 #define mavlink_ck_a(msg) *((msg)->len + (uint8_t *)_MAV_PAYLOAD_NON_CONST(msg)) 162 #define mavlink_ck_b(msg) *(((msg)->len+(uint16_t)1) + (uint8_t *)_MAV_PAYLOAD_NON_CONST(msg)) 176 #ifndef MAVLINK_COMM_NUM_BUFFERS 177 #if (defined linux) | (defined __linux) | (defined __MACH__) | (defined _WIN32) 178 # define MAVLINK_COMM_NUM_BUFFERS 16 180 # define MAVLINK_COMM_NUM_BUFFERS 4 210 #define MAVLINK_STATUS_FLAG_IN_MAVLINK1 1 // last incoming packet was MAVLink1 211 #define MAVLINK_STATUS_FLAG_OUT_MAVLINK1 2 // generate MAVLink1 by default 212 #define MAVLINK_STATUS_FLAG_IN_SIGNED 4 // last incoming packet was signed and validated 213 #define MAVLINK_STATUS_FLAG_IN_BADSIG 8 // last incoming packet had a bad signature 215 #define MAVLINK_STX_MAVLINK1 0xFE // marker for old protocol 218 uint8_t msg_received;
219 uint8_t buffer_overrun;
221 mavlink_parse_state_t parse_state;
223 uint8_t current_rx_seq;
224 uint8_t current_tx_seq;
225 uint16_t packet_rx_success_count;
226 uint16_t packet_rx_drop_count;
241 #define MAVLINK_SIGNING_FLAG_SIGN_OUTGOING 1 250 uint8_t secret_key[32];
258 #ifndef MAVLINK_MAX_SIGNING_STREAMS 259 #define MAVLINK_MAX_SIGNING_STREAMS 16 267 uint8_t timestamp_bytes[6];
272 #define MAVLINK_BIG_ENDIAN 0 273 #define MAVLINK_LITTLE_ENDIAN 1 275 #define MAV_MSG_ENTRY_FLAG_HAVE_TARGET_SYSTEM 1 276 #define MAV_MSG_ENTRY_FLAG_HAVE_TARGET_COMPONENT 2 294 #define MAVLINK_IFLAG_SIGNED 0x01 295 #define MAVLINK_IFLAG_MASK 0x01 // mask of all understood bits 297 #ifdef MAVLINK_USE_CXX_NAMESPACE struct __mavlink_signing_streams * signing_streams
global record of stream timestamps
uint8_t target_component_ofs
struct __mavlink_message_info mavlink_message_info_t
uint8_t compid
Remote component ID.
struct __mavlink_status mavlink_status_t
struct __mavlink_field_info mavlink_field_info_t
#define MAVPACKED(__Declaration__)
#define MAVLINK_MAX_PAYLOAD_LEN
Maximum payload length.
mavlink_accept_unsigned_t accept_unsigned_callback
bool(* mavlink_accept_unsigned_t)(const mavlink_status_t *status, uint32_t msgid)
uint16_t num_signing_streams
uint8_t flags
MAVLINK_SIGNING_FLAG_*.
struct __mavlink_signing mavlink_signing_t
struct __mavlink_signing_streams mavlink_signing_streams_t
uint8_t flags
MAVLINK_STATUS_FLAG_*.
uint64_t timestamp
Timestamp, in microseconds since UNIX epoch GMT.
#define MAVLINK_MAX_FIELDS
#define MAVLINK_MAX_SIGNING_STREAMS
uint8_t link_id
ID of the link (MAVLINK_CHANNEL)
uint8_t signature_wait
number of signature bytes left to receive
uint8_t link_id
Same as MAVLINK_CHANNEL.
uint8_t target_system_ofs
#define MAVLINK_NUM_CHECKSUM_BYTES
struct __mavlink_msg_entry mavlink_msg_entry_t
uint8_t sysid
Remote system ID.
#define MAVLINK_SIGNATURE_BLOCK_LEN
struct __mavlink_signing * signing
optional signing state