3 #define MAVLINK_MSG_ID_V2_EXTENSION 248 14 #define MAVLINK_MSG_ID_V2_EXTENSION_LEN 254 15 #define MAVLINK_MSG_ID_248_LEN 254 17 #define MAVLINK_MSG_ID_V2_EXTENSION_CRC 8 18 #define MAVLINK_MSG_ID_248_CRC 8 20 #define MAVLINK_MSG_V2_EXTENSION_FIELD_PAYLOAD_LEN 249 22 #define MAVLINK_MESSAGE_INFO_V2_EXTENSION { \ 25 { { "message_type", NULL, MAVLINK_TYPE_UINT16_T, 0, 0, offsetof(mavlink_v2_extension_t, message_type) }, \ 26 { "target_network", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_v2_extension_t, target_network) }, \ 27 { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_v2_extension_t, target_system) }, \ 28 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_v2_extension_t, target_component) }, \ 29 { "payload", NULL, MAVLINK_TYPE_UINT8_T, 249, 5, offsetof(mavlink_v2_extension_t, payload) }, \ 50 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 90 mavlink_message_t* msg,
93 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 112 #if MAVLINK_CRC_EXTRA 156 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 160 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 167 #if MAVLINK_CRC_EXTRA 179 #if MAVLINK_CRC_EXTRA 187 #if MAVLINK_MSG_ID_V2_EXTENSION_LEN <= MAVLINK_MAX_PAYLOAD_LEN 197 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 198 char *buf = (
char *)msgbuf;
204 #if MAVLINK_CRC_EXTRA 216 #if MAVLINK_CRC_EXTRA 267 return _MAV_RETURN_uint16_t(msg, 0);
288 #if MAVLINK_NEED_BYTE_SWAP #define _MAV_RETURN_uint8_t(msg, wire_offset)
static uint16_t mavlink_msg_v2_extension_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_v2_extension_t *v2_extension)
Encode a v2_extension struct on a channel.
MAVLINK_HELPER uint16_t mavlink_finalize_message(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t length)
Finalize a MAVLink message with MAVLINK_COMM_0 as default channel.
#define _mav_put_uint8_t(buf, wire_offset, b)
static void _mav_put_uint8_t_array(char *buf, uint8_t wire_offset, const uint8_t *b, uint8_t array_length)
#define _MAV_PAYLOAD_NON_CONST(msg)
static uint8_t mavlink_msg_v2_extension_get_target_network(const mavlink_message_t *msg)
Send a v2_extension message.
static void mavlink_msg_v2_extension_decode(const mavlink_message_t *msg, mavlink_v2_extension_t *v2_extension)
Decode a v2_extension message into a struct.
#define _MAV_PAYLOAD(msg)
#define MAVLINK_MSG_ID_V2_EXTENSION_CRC
static uint16_t mavlink_msg_v2_extension_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_v2_extension_t *v2_extension)
Encode a v2_extension struct.
static uint16_t mavlink_msg_v2_extension_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint8_t target_network, uint8_t target_system, uint8_t target_component, uint16_t message_type, const uint8_t *payload)
Pack a v2_extension message on a channel.
#define MAVLINK_MSG_ID_V2_EXTENSION
static uint8_t mavlink_msg_v2_extension_get_target_component(const mavlink_message_t *msg)
Get field target_component from v2_extension message.
struct __mavlink_v2_extension_t mavlink_v2_extension_t
static uint16_t mavlink_msg_v2_extension_get_message_type(const mavlink_message_t *msg)
Get field message_type from v2_extension message.
#define MAVLINK_MSG_ID_V2_EXTENSION_LEN
static void mav_array_memcpy(void *dest, const void *src, size_t n)
static uint16_t _MAV_RETURN_uint8_t_array(const mavlink_message_t *msg, uint8_t *value, uint8_t array_length, uint8_t wire_offset)
static uint16_t mavlink_msg_v2_extension_get_payload(const mavlink_message_t *msg, uint8_t *payload)
Get field payload from v2_extension message.
#define _mav_put_uint16_t(buf, wire_offset, b)
MAVLINK_HELPER uint16_t mavlink_finalize_message_chan(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t chan, uint8_t length)
Finalize a MAVLink message with channel assignment.
static uint8_t mavlink_msg_v2_extension_get_target_system(const mavlink_message_t *msg)
Get field target_system from v2_extension message.
static uint16_t mavlink_msg_v2_extension_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint8_t target_network, uint8_t target_system, uint8_t target_component, uint16_t message_type, const uint8_t *payload)
Pack a v2_extension message.