4#define MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID 12900
14} mavlink_open_drone_id_basic_id_t;
16#define MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_LEN 44
17#define MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_MIN_LEN 44
18#define MAVLINK_MSG_ID_12900_LEN 44
19#define MAVLINK_MSG_ID_12900_MIN_LEN 44
21#define MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_CRC 114
22#define MAVLINK_MSG_ID_12900_CRC 114
24#define MAVLINK_MSG_OPEN_DRONE_ID_BASIC_ID_FIELD_ID_OR_MAC_LEN 20
25#define MAVLINK_MSG_OPEN_DRONE_ID_BASIC_ID_FIELD_UAS_ID_LEN 20
27#if MAVLINK_COMMAND_24BIT
28#define MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_BASIC_ID {
30 "OPEN_DRONE_ID_BASIC_ID",
32 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0
, 0
, offsetof(mavlink_open_drone_id_basic_id_t, target_system) },
33 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0
, 1
, offsetof(mavlink_open_drone_id_basic_id_t, target_component) },
34 { "id_or_mac", NULL, MAVLINK_TYPE_UINT8_T, 20
, 2
, offsetof(mavlink_open_drone_id_basic_id_t, id_or_mac) },
35 { "id_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 22
, offsetof(mavlink_open_drone_id_basic_id_t, id_type) },
36 { "ua_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 23
, offsetof(mavlink_open_drone_id_basic_id_t, ua_type) },
37 { "uas_id", NULL, MAVLINK_TYPE_UINT8_T, 20
, 24
, offsetof(mavlink_open_drone_id_basic_id_t, uas_id) },
39}
41#define MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_BASIC_ID {
42 "OPEN_DRONE_ID_BASIC_ID",
44 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0
, 0
, offsetof(mavlink_open_drone_id_basic_id_t, target_system) },
45 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0
, 1
, offsetof(mavlink_open_drone_id_basic_id_t, target_component) },
46 { "id_or_mac", NULL, MAVLINK_TYPE_UINT8_T, 20
, 2
, offsetof(mavlink_open_drone_id_basic_id_t, id_or_mac) },
47 { "id_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 22
, offsetof(mavlink_open_drone_id_basic_id_t, id_type) },
48 { "ua_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 23
, offsetof(mavlink_open_drone_id_basic_id_t, ua_type) },
49 { "uas_id", NULL, MAVLINK_TYPE_UINT8_T, 20
, 24
, offsetof(mavlink_open_drone_id_basic_id_t, uas_id) },
51}
55
56
57
58
59
60
61
62
63
64
65
66
67
68static inline uint16_t mavlink_msg_open_drone_id_basic_id_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
69 uint8_t target_system, uint8_t target_component,
const uint8_t *id_or_mac, uint8_t id_type, uint8_t ua_type,
const uint8_t *uas_id)
71#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
73 _mav_put_uint8_t(buf, 0, target_system);
74 _mav_put_uint8_t(buf, 1, target_component);
75 _mav_put_uint8_t(buf, 22, id_type);
76 _mav_put_uint8_t(buf, 23, ua_type);
77 _mav_put_uint8_t_array(buf, 2, id_or_mac, 20);
78 _mav_put_uint8_t_array(buf, 24, uas_id, 20);
81 mavlink_open_drone_id_basic_id_t packet;
82 packet.target_system = target_system;
83 packet.target_component = target_component;
84 packet.id_type = id_type;
85 packet.ua_type = ua_type;
86 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
87 mav_array_memcpy(packet.uas_id, uas_id,
sizeof(uint8_t)*20);
88 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_LEN);
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110static inline uint16_t mavlink_msg_open_drone_id_basic_id_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
111 uint8_t target_system, uint8_t target_component,
const uint8_t *id_or_mac, uint8_t id_type, uint8_t ua_type,
const uint8_t *uas_id)
113#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
115 _mav_put_uint8_t(buf, 0, target_system);
116 _mav_put_uint8_t(buf, 1, target_component);
117 _mav_put_uint8_t(buf, 22, id_type);
118 _mav_put_uint8_t(buf, 23, ua_type);
119 _mav_put_uint8_t_array(buf, 2, id_or_mac, 20);
120 _mav_put_uint8_t_array(buf, 24, uas_id, 20);
123 mavlink_open_drone_id_basic_id_t packet;
124 packet.target_system = target_system;
125 packet.target_component = target_component;
126 packet.id_type = id_type;
127 packet.ua_type = ua_type;
128 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
129 mav_array_memcpy(packet.uas_id, uas_id,
sizeof(uint8_t)*20);
130 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_LEN);
135 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_CRC);
142
143
144
145
146
147
148
149
150
151
152
153
154
155static inline uint16_t mavlink_msg_open_drone_id_basic_id_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
156 mavlink_message_t* msg,
157 uint8_t target_system,uint8_t target_component,
const uint8_t *id_or_mac,uint8_t id_type,uint8_t ua_type,
const uint8_t *uas_id)
159#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
161 _mav_put_uint8_t(buf, 0, target_system);
162 _mav_put_uint8_t(buf, 1, target_component);
163 _mav_put_uint8_t(buf, 22, id_type);
164 _mav_put_uint8_t(buf, 23, ua_type);
165 _mav_put_uint8_t_array(buf, 2, id_or_mac, 20);
166 _mav_put_uint8_t_array(buf, 24, uas_id, 20);
169 mavlink_open_drone_id_basic_id_t packet;
170 packet.target_system = target_system;
171 packet.target_component = target_component;
172 packet.id_type = id_type;
173 packet.ua_type = ua_type;
174 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
175 mav_array_memcpy(packet.uas_id, uas_id,
sizeof(uint8_t)*20);
176 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_LEN);
184
185
186
187
188
189
190
191static inline uint16_t mavlink_msg_open_drone_id_basic_id_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_open_drone_id_basic_id_t* open_drone_id_basic_id)
193 return mavlink_msg_open_drone_id_basic_id_pack(system_id, component_id, msg, open_drone_id_basic_id->target_system, open_drone_id_basic_id->target_component, open_drone_id_basic_id->id_or_mac, open_drone_id_basic_id->id_type, open_drone_id_basic_id->ua_type, open_drone_id_basic_id->uas_id);
197
198
199
200
201
202
203
204
205static inline uint16_t mavlink_msg_open_drone_id_basic_id_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_open_drone_id_basic_id_t* open_drone_id_basic_id)
207 return mavlink_msg_open_drone_id_basic_id_pack_chan(system_id, component_id, chan, msg, open_drone_id_basic_id->target_system, open_drone_id_basic_id->target_component, open_drone_id_basic_id->id_or_mac, open_drone_id_basic_id->id_type, open_drone_id_basic_id->ua_type, open_drone_id_basic_id->uas_id);
211
212
213
214
215
216
217
218
219static inline uint16_t mavlink_msg_open_drone_id_basic_id_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_open_drone_id_basic_id_t* open_drone_id_basic_id)
221 return mavlink_msg_open_drone_id_basic_id_pack_status(system_id, component_id, _status, msg, open_drone_id_basic_id->target_system, open_drone_id_basic_id->target_component, open_drone_id_basic_id->id_or_mac, open_drone_id_basic_id->id_type, open_drone_id_basic_id->ua_type, open_drone_id_basic_id->uas_id);
225
226
227
228
229
230
231
232
233
234
235#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
237static inline void mavlink_msg_open_drone_id_basic_id_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component,
const uint8_t *id_or_mac, uint8_t id_type, uint8_t ua_type,
const uint8_t *uas_id)
239#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
240 char buf[MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_LEN];
241 _mav_put_uint8_t(buf, 0, target_system);
242 _mav_put_uint8_t(buf, 1, target_component);
243 _mav_put_uint8_t(buf, 22, id_type);
244 _mav_put_uint8_t(buf, 23, ua_type);
245 _mav_put_uint8_t_array(buf, 2, id_or_mac, 20);
246 _mav_put_uint8_t_array(buf, 24, uas_id, 20);
247 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID, buf, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_CRC);
249 mavlink_open_drone_id_basic_id_t packet;
250 packet.target_system = target_system;
251 packet.target_component = target_component;
252 packet.id_type = id_type;
253 packet.ua_type = ua_type;
254 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
255 mav_array_memcpy(packet.uas_id, uas_id,
sizeof(uint8_t)*20);
256 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID, (
const char *)&packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_CRC);
261
262
263
264
265static inline void mavlink_msg_open_drone_id_basic_id_send_struct(mavlink_channel_t chan,
const mavlink_open_drone_id_basic_id_t* open_drone_id_basic_id)
267#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
268 mavlink_msg_open_drone_id_basic_id_send(chan, open_drone_id_basic_id->target_system, open_drone_id_basic_id->target_component, open_drone_id_basic_id->id_or_mac, open_drone_id_basic_id->id_type, open_drone_id_basic_id->ua_type, open_drone_id_basic_id->uas_id);
270 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID, (
const char *)open_drone_id_basic_id, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_CRC);
274#if MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_LEN <= MAVLINK_MAX_PAYLOAD_LEN
276
277
278
279
280
281
282static inline void mavlink_msg_open_drone_id_basic_id_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component,
const uint8_t *id_or_mac, uint8_t id_type, uint8_t ua_type,
const uint8_t *uas_id)
284#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
285 char *buf = (
char *)msgbuf;
286 _mav_put_uint8_t(buf, 0, target_system);
287 _mav_put_uint8_t(buf, 1, target_component);
288 _mav_put_uint8_t(buf, 22, id_type);
289 _mav_put_uint8_t(buf, 23, ua_type);
290 _mav_put_uint8_t_array(buf, 2, id_or_mac, 20);
291 _mav_put_uint8_t_array(buf, 24, uas_id, 20);
292 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID, buf, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_CRC);
294 mavlink_open_drone_id_basic_id_t *packet = (mavlink_open_drone_id_basic_id_t *)msgbuf;
295 packet->target_system = target_system;
296 packet->target_component = target_component;
297 packet->id_type = id_type;
298 packet->ua_type = ua_type;
299 mav_array_memcpy(packet->id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
300 mav_array_memcpy(packet->uas_id, uas_id,
sizeof(uint8_t)*20);
301 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID, (
const char *)packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_CRC);
312
313
314
315
316static inline uint8_t mavlink_msg_open_drone_id_basic_id_get_target_system(
const mavlink_message_t* msg)
318 return _MAV_RETURN_uint8_t(msg, 0);
322
323
324
325
326static inline uint8_t mavlink_msg_open_drone_id_basic_id_get_target_component(
const mavlink_message_t* msg)
328 return _MAV_RETURN_uint8_t(msg, 1);
332
333
334
335
336static inline uint16_t mavlink_msg_open_drone_id_basic_id_get_id_or_mac(
const mavlink_message_t* msg, uint8_t *id_or_mac)
338 return _MAV_RETURN_uint8_t_array(msg, id_or_mac, 20, 2);
342
343
344
345
346static inline uint8_t mavlink_msg_open_drone_id_basic_id_get_id_type(
const mavlink_message_t* msg)
348 return _MAV_RETURN_uint8_t(msg, 22);
352
353
354
355
356static inline uint8_t mavlink_msg_open_drone_id_basic_id_get_ua_type(
const mavlink_message_t* msg)
358 return _MAV_RETURN_uint8_t(msg, 23);
362
363
364
365
366static inline uint16_t mavlink_msg_open_drone_id_basic_id_get_uas_id(
const mavlink_message_t* msg, uint8_t *uas_id)
368 return _MAV_RETURN_uint8_t_array(msg, uas_id, 20, 24);
372
373
374
375
376
377static inline void mavlink_msg_open_drone_id_basic_id_decode(
const mavlink_message_t* msg, mavlink_open_drone_id_basic_id_t* open_drone_id_basic_id)
379#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
380 open_drone_id_basic_id->target_system = mavlink_msg_open_drone_id_basic_id_get_target_system(msg);
381 open_drone_id_basic_id->target_component = mavlink_msg_open_drone_id_basic_id_get_target_component(msg);
382 mavlink_msg_open_drone_id_basic_id_get_id_or_mac(msg, open_drone_id_basic_id->id_or_mac);
383 open_drone_id_basic_id->id_type = mavlink_msg_open_drone_id_basic_id_get_id_type(msg);
384 open_drone_id_basic_id->ua_type = mavlink_msg_open_drone_id_basic_id_get_ua_type(msg);
385 mavlink_msg_open_drone_id_basic_id_get_uas_id(msg, open_drone_id_basic_id->uas_id);
387 uint8_t len = msg->len < MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_LEN? msg->len : MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_LEN;
388 memset(open_drone_id_basic_id, 0, MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_LEN);
389 memcpy(open_drone_id_basic_id, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID
Definition: mavlink_msg_open_drone_id_basic_id.h:4
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_CRC
Definition: mavlink_msg_open_drone_id_basic_id.h:21
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_LEN
Definition: mavlink_msg_open_drone_id_basic_id.h:16
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID_MIN_LEN
Definition: mavlink_msg_open_drone_id_basic_id.h:17
Definition: mavlink_msg_open_drone_id_basic_id.h:7
uint8_t id_type
Definition: mavlink_msg_open_drone_id_basic_id.h:11
uint8_t target_component
Definition: mavlink_msg_open_drone_id_basic_id.h:9
uint8_t ua_type
Definition: mavlink_msg_open_drone_id_basic_id.h:12
uint8_t target_system
Definition: mavlink_msg_open_drone_id_basic_id.h:8