4#define MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY 155
7typedef struct __mavlink_flexifunction_directory_t {
9 uint8_t target_component;
10 uint8_t directory_type;
13 int8_t directory_data[48];
14}) mavlink_flexifunction_directory_t;
16#define MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN 53
17#define MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_MIN_LEN 53
18#define MAVLINK_MSG_ID_155_LEN 53
19#define MAVLINK_MSG_ID_155_MIN_LEN 53
21#define MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_CRC 12
22#define MAVLINK_MSG_ID_155_CRC 12
24#define MAVLINK_MSG_FLEXIFUNCTION_DIRECTORY_FIELD_DIRECTORY_DATA_LEN 48
26#if MAVLINK_COMMAND_24BIT
27#define MAVLINK_MESSAGE_INFO_FLEXIFUNCTION_DIRECTORY { \
29 "FLEXIFUNCTION_DIRECTORY", \
31 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_flexifunction_directory_t, target_system) }, \
32 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_flexifunction_directory_t, target_component) }, \
33 { "directory_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_flexifunction_directory_t, directory_type) }, \
34 { "start_index", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_flexifunction_directory_t, start_index) }, \
35 { "count", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_flexifunction_directory_t, count) }, \
36 { "directory_data", NULL, MAVLINK_TYPE_INT8_T, 48, 5, offsetof(mavlink_flexifunction_directory_t, directory_data) }, \
40#define MAVLINK_MESSAGE_INFO_FLEXIFUNCTION_DIRECTORY { \
41 "FLEXIFUNCTION_DIRECTORY", \
43 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_flexifunction_directory_t, target_system) }, \
44 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_flexifunction_directory_t, target_component) }, \
45 { "directory_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_flexifunction_directory_t, directory_type) }, \
46 { "start_index", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_flexifunction_directory_t, start_index) }, \
47 { "count", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_flexifunction_directory_t, count) }, \
48 { "directory_data", NULL, MAVLINK_TYPE_INT8_T, 48, 5, offsetof(mavlink_flexifunction_directory_t, directory_data) }, \
67static inline uint16_t mavlink_msg_flexifunction_directory_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
68 uint8_t target_system, uint8_t target_component, uint8_t directory_type, uint8_t start_index, uint8_t count,
const int8_t *directory_data)
70#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
71 char buf[MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN];
72 _mav_put_uint8_t(buf, 0, target_system);
73 _mav_put_uint8_t(buf, 1, target_component);
74 _mav_put_uint8_t(buf, 2, directory_type);
75 _mav_put_uint8_t(buf, 3, start_index);
76 _mav_put_uint8_t(buf, 4, count);
77 _mav_put_int8_t_array(buf, 5, directory_data, 48);
78 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN);
80 mavlink_flexifunction_directory_t packet;
81 packet.target_system = target_system;
82 packet.target_component = target_component;
83 packet.directory_type = directory_type;
84 packet.start_index = start_index;
86 mav_array_memcpy(packet.directory_data, directory_data,
sizeof(int8_t)*48);
87 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN);
90 msg->msgid = MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY;
91 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_MIN_LEN, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_CRC);
108static inline uint16_t mavlink_msg_flexifunction_directory_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
109 mavlink_message_t* msg,
110 uint8_t target_system,uint8_t target_component,uint8_t directory_type,uint8_t start_index,uint8_t count,
const int8_t *directory_data)
112#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
113 char buf[MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN];
114 _mav_put_uint8_t(buf, 0, target_system);
115 _mav_put_uint8_t(buf, 1, target_component);
116 _mav_put_uint8_t(buf, 2, directory_type);
117 _mav_put_uint8_t(buf, 3, start_index);
118 _mav_put_uint8_t(buf, 4, count);
119 _mav_put_int8_t_array(buf, 5, directory_data, 48);
120 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN);
122 mavlink_flexifunction_directory_t packet;
123 packet.target_system = target_system;
124 packet.target_component = target_component;
125 packet.directory_type = directory_type;
126 packet.start_index = start_index;
127 packet.count = count;
128 mav_array_memcpy(packet.directory_data, directory_data,
sizeof(int8_t)*48);
129 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN);
132 msg->msgid = MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY;
133 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_MIN_LEN, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_CRC);
144static inline uint16_t mavlink_msg_flexifunction_directory_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_flexifunction_directory_t* flexifunction_directory)
146 return mavlink_msg_flexifunction_directory_pack(system_id, component_id, msg, flexifunction_directory->target_system, flexifunction_directory->target_component, flexifunction_directory->directory_type, flexifunction_directory->start_index, flexifunction_directory->count, flexifunction_directory->directory_data);
158static inline uint16_t mavlink_msg_flexifunction_directory_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_flexifunction_directory_t* flexifunction_directory)
160 return mavlink_msg_flexifunction_directory_pack_chan(system_id, component_id, chan, msg, flexifunction_directory->target_system, flexifunction_directory->target_component, flexifunction_directory->directory_type, flexifunction_directory->start_index, flexifunction_directory->count, flexifunction_directory->directory_data);
174#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
176static inline void mavlink_msg_flexifunction_directory_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t directory_type, uint8_t start_index, uint8_t count,
const int8_t *directory_data)
178#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
179 char buf[MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN];
180 _mav_put_uint8_t(buf, 0, target_system);
181 _mav_put_uint8_t(buf, 1, target_component);
182 _mav_put_uint8_t(buf, 2, directory_type);
183 _mav_put_uint8_t(buf, 3, start_index);
184 _mav_put_uint8_t(buf, 4, count);
185 _mav_put_int8_t_array(buf, 5, directory_data, 48);
186 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY, buf, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_MIN_LEN, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_CRC);
188 mavlink_flexifunction_directory_t packet;
189 packet.target_system = target_system;
190 packet.target_component = target_component;
191 packet.directory_type = directory_type;
192 packet.start_index = start_index;
193 packet.count = count;
194 mav_array_memcpy(packet.directory_data, directory_data,
sizeof(int8_t)*48);
195 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY, (
const char *)&packet, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_MIN_LEN, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_CRC);
204static inline void mavlink_msg_flexifunction_directory_send_struct(mavlink_channel_t chan,
const mavlink_flexifunction_directory_t* flexifunction_directory)
206#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
207 mavlink_msg_flexifunction_directory_send(chan, flexifunction_directory->target_system, flexifunction_directory->target_component, flexifunction_directory->directory_type, flexifunction_directory->start_index, flexifunction_directory->count, flexifunction_directory->directory_data);
209 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY, (
const char *)flexifunction_directory, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_MIN_LEN, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_CRC);
213#if MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN <= MAVLINK_MAX_PAYLOAD_LEN
221static inline void mavlink_msg_flexifunction_directory_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t directory_type, uint8_t start_index, uint8_t count,
const int8_t *directory_data)
223#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
224 char *buf = (
char *)msgbuf;
225 _mav_put_uint8_t(buf, 0, target_system);
226 _mav_put_uint8_t(buf, 1, target_component);
227 _mav_put_uint8_t(buf, 2, directory_type);
228 _mav_put_uint8_t(buf, 3, start_index);
229 _mav_put_uint8_t(buf, 4, count);
230 _mav_put_int8_t_array(buf, 5, directory_data, 48);
231 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY, buf, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_MIN_LEN, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_CRC);
233 mavlink_flexifunction_directory_t *packet = (mavlink_flexifunction_directory_t *)msgbuf;
234 packet->target_system = target_system;
235 packet->target_component = target_component;
236 packet->directory_type = directory_type;
237 packet->start_index = start_index;
238 packet->count = count;
239 mav_array_memcpy(packet->directory_data, directory_data,
sizeof(int8_t)*48);
240 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY, (
const char *)packet, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_MIN_LEN, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_CRC);
255static inline uint8_t mavlink_msg_flexifunction_directory_get_target_system(
const mavlink_message_t* msg)
257 return _MAV_RETURN_uint8_t(msg, 0);
265static inline uint8_t mavlink_msg_flexifunction_directory_get_target_component(
const mavlink_message_t* msg)
267 return _MAV_RETURN_uint8_t(msg, 1);
275static inline uint8_t mavlink_msg_flexifunction_directory_get_directory_type(
const mavlink_message_t* msg)
277 return _MAV_RETURN_uint8_t(msg, 2);
285static inline uint8_t mavlink_msg_flexifunction_directory_get_start_index(
const mavlink_message_t* msg)
287 return _MAV_RETURN_uint8_t(msg, 3);
295static inline uint8_t mavlink_msg_flexifunction_directory_get_count(
const mavlink_message_t* msg)
297 return _MAV_RETURN_uint8_t(msg, 4);
305static inline uint16_t mavlink_msg_flexifunction_directory_get_directory_data(
const mavlink_message_t* msg, int8_t *directory_data)
307 return _MAV_RETURN_int8_t_array(msg, directory_data, 48, 5);
316static inline void mavlink_msg_flexifunction_directory_decode(
const mavlink_message_t* msg, mavlink_flexifunction_directory_t* flexifunction_directory)
318#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
319 flexifunction_directory->target_system = mavlink_msg_flexifunction_directory_get_target_system(msg);
320 flexifunction_directory->target_component = mavlink_msg_flexifunction_directory_get_target_component(msg);
321 flexifunction_directory->directory_type = mavlink_msg_flexifunction_directory_get_directory_type(msg);
322 flexifunction_directory->start_index = mavlink_msg_flexifunction_directory_get_start_index(msg);
323 flexifunction_directory->count = mavlink_msg_flexifunction_directory_get_count(msg);
324 mavlink_msg_flexifunction_directory_get_directory_data(msg, flexifunction_directory->directory_data);
326 uint8_t len = msg->len < MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN? msg->len : MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN;
327 memset(flexifunction_directory, 0, MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN);
328 memcpy(flexifunction_directory, _MAV_PAYLOAD(msg), len);