4#define MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE 411
10} mavlink_current_event_sequence_t;
12#define MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_LEN 3
13#define MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_MIN_LEN 3
14#define MAVLINK_MSG_ID_411_LEN 3
15#define MAVLINK_MSG_ID_411_MIN_LEN 3
17#define MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_CRC 106
18#define MAVLINK_MSG_ID_411_CRC 106
22#if MAVLINK_COMMAND_24BIT
23#define MAVLINK_MESSAGE_INFO_CURRENT_EVENT_SEQUENCE {
25 "CURRENT_EVENT_SEQUENCE",
27 { { "sequence", NULL, MAVLINK_TYPE_UINT16_T, 0
, 0
, offsetof(mavlink_current_event_sequence_t, sequence) },
28 { "flags", NULL, MAVLINK_TYPE_UINT8_T, 0
, 2
, offsetof(mavlink_current_event_sequence_t, flags) },
30}
32#define MAVLINK_MESSAGE_INFO_CURRENT_EVENT_SEQUENCE {
33 "CURRENT_EVENT_SEQUENCE",
35 { { "sequence", NULL, MAVLINK_TYPE_UINT16_T, 0
, 0
, offsetof(mavlink_current_event_sequence_t, sequence) },
36 { "flags", NULL, MAVLINK_TYPE_UINT8_T, 0
, 2
, offsetof(mavlink_current_event_sequence_t, flags) },
38}
42
43
44
45
46
47
48
49
50
52static inline uint16_t mavlink_msg_current_event_sequence_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
53 uint16_t sequence, uint8_t flags)
55#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
57 _mav_put_uint16_t(buf, 0, sequence);
58 _mav_put_uint8_t(buf, 2, flags);
62 mavlink_current_event_sequence_t packet;
63 packet.sequence = sequence;
66 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_LEN);
74
75
76
77
78
79
80
81
82
83
84static inline uint16_t mavlink_msg_current_event_sequence_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
85 uint16_t sequence, uint8_t flags)
87#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
89 _mav_put_uint16_t(buf, 0, sequence);
90 _mav_put_uint8_t(buf, 2, flags);
94 mavlink_current_event_sequence_t packet;
95 packet.sequence = sequence;
98 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_LEN);
103 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_MIN_LEN, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_LEN, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_CRC);
110
111
112
113
114
115
116
117
118
120static inline uint16_t mavlink_msg_current_event_sequence_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
121 mavlink_message_t* msg,
122 uint16_t sequence,uint8_t flags)
124#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
126 _mav_put_uint16_t(buf, 0, sequence);
127 _mav_put_uint8_t(buf, 2, flags);
131 mavlink_current_event_sequence_t packet;
132 packet.sequence = sequence;
133 packet.flags = flags;
135 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_LEN);
143
144
145
146
147
148
149
151static inline uint16_t mavlink_msg_current_event_sequence_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_current_event_sequence_t* current_event_sequence)
153 return mavlink_msg_current_event_sequence_pack(system_id, component_id, msg, current_event_sequence->sequence, current_event_sequence->flags);
157
158
159
160
161
162
163
164
166static inline uint16_t mavlink_msg_current_event_sequence_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_current_event_sequence_t* current_event_sequence)
168 return mavlink_msg_current_event_sequence_pack_chan(system_id, component_id, chan, msg, current_event_sequence->sequence, current_event_sequence->flags);
172
173
174
175
176
177
178
179
180static inline uint16_t mavlink_msg_current_event_sequence_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_current_event_sequence_t* current_event_sequence)
182 return mavlink_msg_current_event_sequence_pack_status(system_id, component_id, _status, msg, current_event_sequence->sequence, current_event_sequence->flags);
186
187
188
189
190
191
192#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
195static inline void mavlink_msg_current_event_sequence_send(mavlink_channel_t chan, uint16_t sequence, uint8_t flags)
197#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
198 char buf[MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_LEN];
199 _mav_put_uint16_t(buf, 0, sequence);
200 _mav_put_uint8_t(buf, 2, flags);
202 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE, buf, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_MIN_LEN, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_LEN, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_CRC);
204 mavlink_current_event_sequence_t packet;
205 packet.sequence = sequence;
206 packet.flags = flags;
208 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE, (
const char *)&packet, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_MIN_LEN, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_LEN, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_CRC);
213
214
215
216
218static inline void mavlink_msg_current_event_sequence_send_struct(mavlink_channel_t chan,
const mavlink_current_event_sequence_t* current_event_sequence)
220#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
221 mavlink_msg_current_event_sequence_send(chan, current_event_sequence->sequence, current_event_sequence->flags);
223 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE, (
const char *)current_event_sequence, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_MIN_LEN, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_LEN, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_CRC);
227#if MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_LEN <= MAVLINK_MAX_PAYLOAD_LEN
229
230
231
232
233
234
236static inline void mavlink_msg_current_event_sequence_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint16_t sequence, uint8_t flags)
238#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
239 char *buf = (
char *)msgbuf;
240 _mav_put_uint16_t(buf, 0, sequence);
241 _mav_put_uint8_t(buf, 2, flags);
243 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE, buf, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_MIN_LEN, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_LEN, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_CRC);
245 mavlink_current_event_sequence_t *packet = (mavlink_current_event_sequence_t *)msgbuf;
246 packet->sequence = sequence;
247 packet->flags = flags;
249 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE, (
const char *)packet, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_MIN_LEN, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_LEN, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_CRC);
260
261
262
263
265static inline uint16_t mavlink_msg_current_event_sequence_get_sequence(
const mavlink_message_t* msg)
267 return _MAV_RETURN_uint16_t(msg, 0);
271
272
273
274
276static inline uint8_t mavlink_msg_current_event_sequence_get_flags(
const mavlink_message_t* msg)
278 return _MAV_RETURN_uint8_t(msg, 2);
282
283
284
285
286
288static inline void mavlink_msg_current_event_sequence_decode(
const mavlink_message_t* msg, mavlink_current_event_sequence_t* current_event_sequence)
290#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
291 current_event_sequence->sequence = mavlink_msg_current_event_sequence_get_sequence(msg);
292 current_event_sequence->flags = mavlink_msg_current_event_sequence_get_flags(msg);
294 uint8_t len = msg->len < MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_LEN? msg->len : MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_LEN;
295 memset(current_event_sequence, 0, MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_LEN);
296 memcpy(current_event_sequence, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_MIN_LEN
Definition: mavlink_msg_current_event_sequence.h:13
#define MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE
Definition: mavlink_msg_current_event_sequence.h:4
#define MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_CRC
Definition: mavlink_msg_current_event_sequence.h:17
#define MAVLINK_MSG_ID_CURRENT_EVENT_SEQUENCE_LEN
Definition: mavlink_msg_current_event_sequence.h:12
Definition: mavlink_msg_current_event_sequence.h:7
uint8_t flags
Definition: mavlink_msg_current_event_sequence.h:9
uint16_t sequence
Definition: mavlink_msg_current_event_sequence.h:8