3 #define MAVLINK_MSG_ID_DATA_TRANSMISSION_HANDSHAKE 130
16 #define MAVLINK_MSG_ID_DATA_TRANSMISSION_HANDSHAKE_LEN 13
17 #define MAVLINK_MSG_ID_130_LEN 13
19 #define MAVLINK_MSG_ID_DATA_TRANSMISSION_HANDSHAKE_CRC 29
20 #define MAVLINK_MSG_ID_130_CRC 29
24 #define MAVLINK_MESSAGE_INFO_DATA_TRANSMISSION_HANDSHAKE { \
25 "DATA_TRANSMISSION_HANDSHAKE", \
27 { { "size", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_data_transmission_handshake_t, size) }, \
28 { "width", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_data_transmission_handshake_t, width) }, \
29 { "height", NULL, MAVLINK_TYPE_UINT16_T, 0, 6, offsetof(mavlink_data_transmission_handshake_t, height) }, \
30 { "packets", NULL, MAVLINK_TYPE_UINT16_T, 0, 8, offsetof(mavlink_data_transmission_handshake_t, packets) }, \
31 { "type", NULL, MAVLINK_TYPE_UINT8_T, 0, 10, offsetof(mavlink_data_transmission_handshake_t, type) }, \
32 { "payload", NULL, MAVLINK_TYPE_UINT8_T, 0, 11, offsetof(mavlink_data_transmission_handshake_t, payload) }, \
33 { "jpg_quality", NULL, MAVLINK_TYPE_UINT8_T, 0, 12, offsetof(mavlink_data_transmission_handshake_t, jpg_quality) }, \
53 static inline uint16_t mavlink_msg_data_transmission_handshake_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
54 uint8_t
type, uint32_t size, uint16_t width, uint16_t height, uint16_t packets, uint8_t payload, uint8_t jpg_quality)
56 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
103 static inline uint16_t mavlink_msg_data_transmission_handshake_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
104 mavlink_message_t* msg,
105 uint8_t
type,uint32_t size,uint16_t width,uint16_t height,uint16_t packets,uint8_t payload,uint8_t jpg_quality)
107 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
121 packet.
width = width;
132 #if MAVLINK_CRC_EXTRA
147 static inline uint16_t mavlink_msg_data_transmission_handshake_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_data_transmission_handshake_t* data_transmission_handshake)
149 return mavlink_msg_data_transmission_handshake_pack(system_id, component_id, msg, data_transmission_handshake->
type, data_transmission_handshake->
size, data_transmission_handshake->
width, data_transmission_handshake->
height, data_transmission_handshake->
packets, data_transmission_handshake->
payload, data_transmission_handshake->
jpg_quality);
161 static inline uint16_t mavlink_msg_data_transmission_handshake_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_data_transmission_handshake_t* data_transmission_handshake)
163 return mavlink_msg_data_transmission_handshake_pack_chan(system_id, component_id, chan, msg, data_transmission_handshake->
type, data_transmission_handshake->
size, data_transmission_handshake->
width, data_transmission_handshake->
height, data_transmission_handshake->
packets, data_transmission_handshake->
payload, data_transmission_handshake->
jpg_quality);
178 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
180 static inline void mavlink_msg_data_transmission_handshake_send(
mavlink_channel_t chan, uint8_t type, uint32_t size, uint16_t width, uint16_t height, uint16_t packets, uint8_t payload, uint8_t jpg_quality)
182 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
192 #if MAVLINK_CRC_EXTRA
200 packet.
width = width;
207 #if MAVLINK_CRC_EXTRA
215 #if MAVLINK_MSG_ID_DATA_TRANSMISSION_HANDSHAKE_LEN <= MAVLINK_MAX_PAYLOAD_LEN
223 static inline void mavlink_msg_data_transmission_handshake_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint8_t type, uint32_t size, uint16_t width, uint16_t height, uint16_t packets, uint8_t payload, uint8_t jpg_quality)
225 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
226 char *buf = (
char *)msgbuf;
235 #if MAVLINK_CRC_EXTRA
243 packet->
width = width;
250 #if MAVLINK_CRC_EXTRA
269 static inline uint8_t mavlink_msg_data_transmission_handshake_get_type(
const mavlink_message_t* msg)
279 static inline uint32_t mavlink_msg_data_transmission_handshake_get_size(
const mavlink_message_t* msg)
281 return _MAV_RETURN_uint32_t(msg, 0);
289 static inline uint16_t mavlink_msg_data_transmission_handshake_get_width(
const mavlink_message_t* msg)
291 return _MAV_RETURN_uint16_t(msg, 4);
299 static inline uint16_t mavlink_msg_data_transmission_handshake_get_height(
const mavlink_message_t* msg)
301 return _MAV_RETURN_uint16_t(msg, 6);
309 static inline uint16_t mavlink_msg_data_transmission_handshake_get_packets(
const mavlink_message_t* msg)
311 return _MAV_RETURN_uint16_t(msg, 8);
319 static inline uint8_t mavlink_msg_data_transmission_handshake_get_payload(
const mavlink_message_t* msg)
329 static inline uint8_t mavlink_msg_data_transmission_handshake_get_jpg_quality(
const mavlink_message_t* msg)
342 #if MAVLINK_NEED_BYTE_SWAP
343 data_transmission_handshake->
size = mavlink_msg_data_transmission_handshake_get_size(msg);
344 data_transmission_handshake->
width = mavlink_msg_data_transmission_handshake_get_width(msg);
345 data_transmission_handshake->
height = mavlink_msg_data_transmission_handshake_get_height(msg);
346 data_transmission_handshake->
packets = mavlink_msg_data_transmission_handshake_get_packets(msg);
347 data_transmission_handshake->
type = mavlink_msg_data_transmission_handshake_get_type(msg);
348 data_transmission_handshake->
payload = mavlink_msg_data_transmission_handshake_get_payload(msg);
349 data_transmission_handshake->
jpg_quality = mavlink_msg_data_transmission_handshake_get_jpg_quality(msg);
#define MAVLINK_MSG_ID_DATA_TRANSMISSION_HANDSHAKE_LEN
Definition: mavlink_msg_data_transmission_handshake.h:16
uint8_t type
Definition: fat_standard.h:67
#define MAVLINK_MSG_ID_DATA_TRANSMISSION_HANDSHAKE_CRC
Definition: mavlink_msg_data_transmission_handshake.h:19
uint16_t packets
number of packets beeing sent (set on ACK only)
Definition: mavlink_msg_data_transmission_handshake.h:10
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
uint16_t width
Width of a matrix or image.
Definition: mavlink_msg_data_transmission_handshake.h:8
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
uint8_t jpg_quality
JPEG quality out of [1,100].
Definition: mavlink_msg_data_transmission_handshake.h:13
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
uint8_t payload
payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on...
Definition: mavlink_msg_data_transmission_handshake.h:12
uint16_t height
Height of a matrix or image.
Definition: mavlink_msg_data_transmission_handshake.h:9
#define MAVLINK_MSG_ID_DATA_TRANSMISSION_HANDSHAKE
Definition: mavlink_msg_data_transmission_handshake.h:3
struct __mavlink_data_transmission_handshake_t mavlink_data_transmission_handshake_t
Definition: mavlink_msg_data_transmission_handshake.h:5
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
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
uint32_t size
total data size in bytes (set on ACK only)
Definition: mavlink_msg_data_transmission_handshake.h:7
uint8_t type
type of requested/acknowledged data (as defined in ENUM DATA_TYPES in mavlink/include/mavlink_types.h)
Definition: mavlink_msg_data_transmission_handshake.h:11
#define _mav_put_uint32_t(buf, wire_offset, b)
Definition: protocol.h:141