3 #define MAVLINK_MSG_ID_DATA64 171
12 #define MAVLINK_MSG_ID_DATA64_LEN 66
13 #define MAVLINK_MSG_ID_171_LEN 66
15 #define MAVLINK_MSG_ID_DATA64_CRC 181
16 #define MAVLINK_MSG_ID_171_CRC 181
18 #define MAVLINK_MSG_DATA64_FIELD_DATA_LEN 64
20 #define MAVLINK_MESSAGE_INFO_DATA64 { \
23 { { "type", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_data64_t, type) }, \
24 { "len", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_data64_t, len) }, \
25 { "data", NULL, MAVLINK_TYPE_UINT8_T, 64, 2, offsetof(mavlink_data64_t, data) }, \
41 static inline uint16_t mavlink_msg_data64_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, 64);
54 mav_array_memcpy(packet.
data, data,
sizeof(uint8_t)*64);
77 static inline uint16_t mavlink_msg_data64_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, 64);
91 mav_array_memcpy(packet.
data, data,
sizeof(uint8_t)*64);
111 static inline uint16_t mavlink_msg_data64_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_data64_t* data64)
113 return mavlink_msg_data64_pack(system_id, component_id, msg, data64->
type, data64->
len, data64->
data);
125 static inline uint16_t mavlink_msg_data64_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_data64_t* data64)
127 return mavlink_msg_data64_pack_chan(system_id, component_id, chan, msg, data64->
type, data64->
len, data64->
data);
138 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
140 static inline void mavlink_msg_data64_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, 64);
147 #if MAVLINK_CRC_EXTRA
156 mav_array_memcpy(packet.
data, data,
sizeof(uint8_t)*64);
157 #if MAVLINK_CRC_EXTRA
165 #if MAVLINK_MSG_ID_DATA64_LEN <= MAVLINK_MAX_PAYLOAD_LEN
173 static inline void mavlink_msg_data64_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, 64);
180 #if MAVLINK_CRC_EXTRA
189 mav_array_memcpy(packet->
data, data,
sizeof(uint8_t)*64);
190 #if MAVLINK_CRC_EXTRA
209 static inline uint8_t mavlink_msg_data64_get_type(
const mavlink_message_t* msg)
219 static inline uint8_t mavlink_msg_data64_get_len(
const mavlink_message_t* msg)
229 static inline uint16_t mavlink_msg_data64_get_data(
const mavlink_message_t* msg, uint8_t *data)
231 return _MAV_RETURN_uint8_t_array(msg, data, 64, 2);
240 static inline void mavlink_msg_data64_decode(
const mavlink_message_t* msg,
mavlink_data64_t* data64)
242 #if MAVLINK_NEED_BYTE_SWAP
243 data64->
type = mavlink_msg_data64_get_type(msg);
244 data64->
len = mavlink_msg_data64_get_len(msg);
245 mavlink_msg_data64_get_data(msg, data64->
data);
uint8_t type
Definition: fat_standard.h:67
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
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
Definition: mavlink_msg_data64.h:5
#define _mav_put_uint8_t(buf, wire_offset, b)
Definition: protocol.h:134
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
uint8_t len
data length
Definition: mavlink_msg_data64.h:8
mavlink_channel_t
Definition: mavlink_types.h:178
#define MAVLINK_MSG_ID_DATA64
Definition: mavlink_msg_data64.h:3
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
#define MAVLINK_MSG_ID_DATA64_LEN
Definition: mavlink_msg_data64.h:12
uint8_t data[64]
raw data
Definition: mavlink_msg_data64.h:9
#define MAVLINK_MSG_ID_DATA64_CRC
Definition: mavlink_msg_data64.h:15
struct __mavlink_data64_t mavlink_data64_t
uint8_t type
data type
Definition: mavlink_msg_data64.h:7
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