3 #define MAVLINK_MSG_ID_DATA96 172
12 #define MAVLINK_MSG_ID_DATA96_LEN 98
13 #define MAVLINK_MSG_ID_172_LEN 98
15 #define MAVLINK_MSG_ID_DATA96_CRC 22
16 #define MAVLINK_MSG_ID_172_CRC 22
18 #define MAVLINK_MSG_DATA96_FIELD_DATA_LEN 96
20 #define MAVLINK_MESSAGE_INFO_DATA96 { \
23 { { "type", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_data96_t, type) }, \
24 { "len", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_data96_t, len) }, \
25 { "data", NULL, MAVLINK_TYPE_UINT8_T, 96, 2, offsetof(mavlink_data96_t, data) }, \
41 static inline uint16_t mavlink_msg_data96_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, 96);
54 mav_array_memcpy(packet.
data, data,
sizeof(uint8_t)*96);
77 static inline uint16_t mavlink_msg_data96_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, 96);
91 mav_array_memcpy(packet.
data, data,
sizeof(uint8_t)*96);
111 static inline uint16_t mavlink_msg_data96_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_data96_t* data96)
113 return mavlink_msg_data96_pack(system_id, component_id, msg, data96->
type, data96->
len, data96->
data);
125 static inline uint16_t mavlink_msg_data96_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_data96_t* data96)
127 return mavlink_msg_data96_pack_chan(system_id, component_id, chan, msg, data96->
type, data96->
len, data96->
data);
138 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
140 static inline void mavlink_msg_data96_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, 96);
147 #if MAVLINK_CRC_EXTRA
156 mav_array_memcpy(packet.
data, data,
sizeof(uint8_t)*96);
157 #if MAVLINK_CRC_EXTRA
165 #if MAVLINK_MSG_ID_DATA96_LEN <= MAVLINK_MAX_PAYLOAD_LEN
173 static inline void mavlink_msg_data96_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, 96);
180 #if MAVLINK_CRC_EXTRA
189 mav_array_memcpy(packet->
data, data,
sizeof(uint8_t)*96);
190 #if MAVLINK_CRC_EXTRA
209 static inline uint8_t mavlink_msg_data96_get_type(
const mavlink_message_t* msg)
219 static inline uint8_t mavlink_msg_data96_get_len(
const mavlink_message_t* msg)
229 static inline uint16_t mavlink_msg_data96_get_data(
const mavlink_message_t* msg, uint8_t *data)
231 return _MAV_RETURN_uint8_t_array(msg, data, 96, 2);
240 static inline void mavlink_msg_data96_decode(
const mavlink_message_t* msg,
mavlink_data96_t* data96)
242 #if MAVLINK_NEED_BYTE_SWAP
243 data96->
type = mavlink_msg_data96_get_type(msg);
244 data96->
len = mavlink_msg_data96_get_len(msg);
245 mavlink_msg_data96_get_data(msg, data96->
data);
struct __mavlink_data96_t mavlink_data96_t
uint8_t type
Definition: fat_standard.h:67
uint8_t len
data length
Definition: mavlink_msg_data96.h:8
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
#define MAVLINK_MSG_ID_DATA96_LEN
Definition: mavlink_msg_data96.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
uint8_t data[96]
raw data
Definition: mavlink_msg_data96.h:9
#define MAVLINK_MSG_ID_DATA96_CRC
Definition: mavlink_msg_data96.h:15
uint8_t type
data type
Definition: mavlink_msg_data96.h:7
Definition: mavlink_msg_data96.h:5
#define MAVLINK_MSG_ID_DATA96
Definition: mavlink_msg_data96.h:3
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
uint16_t data
Definition: config.c:91