3 #define MAVLINK_MSG_ID_DATA32 170
12 #define MAVLINK_MSG_ID_DATA32_LEN 34
13 #define MAVLINK_MSG_ID_170_LEN 34
15 #define MAVLINK_MSG_ID_DATA32_CRC 73
16 #define MAVLINK_MSG_ID_170_CRC 73
18 #define MAVLINK_MSG_DATA32_FIELD_DATA_LEN 32
20 #define MAVLINK_MESSAGE_INFO_DATA32 { \
23 { { "type", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_data32_t, type) }, \
24 { "len", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_data32_t, len) }, \
25 { "data", NULL, MAVLINK_TYPE_UINT8_T, 32, 2, offsetof(mavlink_data32_t, data) }, \
41 static inline uint16_t mavlink_msg_data32_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
42 uint8_t
type, uint8_t len,
const uint8_t *
data)
44 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
48 _mav_put_uint8_t_array(buf, 2, data, 32);
54 mav_array_memcpy(packet.
data, data,
sizeof(uint8_t)*32);
77 static inline uint16_t mavlink_msg_data32_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
78 mavlink_message_t* msg,
79 uint8_t
type,uint8_t len,
const uint8_t *
data)
81 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
85 _mav_put_uint8_t_array(buf, 2, data, 32);
91 mav_array_memcpy(packet.
data, data,
sizeof(uint8_t)*32);
111 static inline uint16_t mavlink_msg_data32_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_data32_t* data32)
113 return mavlink_msg_data32_pack(system_id, component_id, msg, data32->
type, data32->
len, data32->
data);
125 static inline uint16_t mavlink_msg_data32_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_data32_t* data32)
127 return mavlink_msg_data32_pack_chan(system_id, component_id, chan, msg, data32->
type, data32->
len, data32->
data);
138 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
140 static inline void mavlink_msg_data32_send(
mavlink_channel_t chan, uint8_t type, uint8_t len,
const uint8_t *data)
142 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
146 _mav_put_uint8_t_array(buf, 2, data, 32);
147 #if MAVLINK_CRC_EXTRA
156 mav_array_memcpy(packet.
data, data,
sizeof(uint8_t)*32);
157 #if MAVLINK_CRC_EXTRA
165 #if MAVLINK_MSG_ID_DATA32_LEN <= MAVLINK_MAX_PAYLOAD_LEN
173 static inline void mavlink_msg_data32_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint8_t type, uint8_t len,
const uint8_t *data)
175 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
176 char *buf = (
char *)msgbuf;
179 _mav_put_uint8_t_array(buf, 2, data, 32);
180 #if MAVLINK_CRC_EXTRA
189 mav_array_memcpy(packet->
data, data,
sizeof(uint8_t)*32);
190 #if MAVLINK_CRC_EXTRA
209 static inline uint8_t mavlink_msg_data32_get_type(
const mavlink_message_t* msg)
219 static inline uint8_t mavlink_msg_data32_get_len(
const mavlink_message_t* msg)
229 static inline uint16_t mavlink_msg_data32_get_data(
const mavlink_message_t* msg, uint8_t *data)
231 return _MAV_RETURN_uint8_t_array(msg, data, 32, 2);
240 static inline void mavlink_msg_data32_decode(
const mavlink_message_t* msg,
mavlink_data32_t* data32)
242 #if MAVLINK_NEED_BYTE_SWAP
243 data32->
type = mavlink_msg_data32_get_type(msg);
244 data32->
len = mavlink_msg_data32_get_len(msg);
245 mavlink_msg_data32_get_data(msg, data32->
data);
uint8_t len
data length
Definition: mavlink_msg_data32.h:8
uint8_t type
Definition: fat_standard.h:67
Definition: mavlink_msg_data32.h:5
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
uint8_t data[32]
raw data
Definition: mavlink_msg_data32.h:9
#define MAVLINK_MSG_ID_DATA32_LEN
Definition: mavlink_msg_data32.h:12
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.
Definition: mavlink_helpers.h:105
#define _mav_put_uint8_t(buf, wire_offset, b)
Definition: protocol.h:134
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
mavlink_channel_t
Definition: mavlink_types.h:178
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
struct __mavlink_data32_t mavlink_data32_t
#define MAVLINK_MSG_ID_DATA32_CRC
Definition: mavlink_msg_data32.h:15
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.
Definition: mavlink_helpers.h:71
#define MAVLINK_MSG_ID_DATA32
Definition: mavlink_msg_data32.h:3
uint8_t type
data type
Definition: mavlink_msg_data32.h:7
uint16_t data
Definition: config.c:91