3 #define MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY 155
15 #define MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN 53
16 #define MAVLINK_MSG_ID_155_LEN 53
18 #define MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_CRC 12
19 #define MAVLINK_MSG_ID_155_CRC 12
21 #define MAVLINK_MSG_FLEXIFUNCTION_DIRECTORY_FIELD_DIRECTORY_DATA_LEN 48
23 #define MAVLINK_MESSAGE_INFO_FLEXIFUNCTION_DIRECTORY { \
24 "FLEXIFUNCTION_DIRECTORY", \
26 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_flexifunction_directory_t, target_system) }, \
27 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_flexifunction_directory_t, target_component) }, \
28 { "directory_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_flexifunction_directory_t, directory_type) }, \
29 { "start_index", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_flexifunction_directory_t, start_index) }, \
30 { "count", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_flexifunction_directory_t, count) }, \
31 { "directory_data", NULL, MAVLINK_TYPE_INT8_T, 48, 5, offsetof(mavlink_flexifunction_directory_t, directory_data) }, \
50 static inline uint16_t mavlink_msg_flexifunction_directory_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
51 uint8_t target_system, uint8_t target_component, uint8_t directory_type, uint8_t start_index, uint8_t count,
const int8_t *directory_data)
53 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
60 _mav_put_int8_t_array(buf, 5, directory_data, 48);
69 mav_array_memcpy(packet.
directory_data, directory_data,
sizeof(int8_t)*48);
95 static inline uint16_t mavlink_msg_flexifunction_directory_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
96 mavlink_message_t* msg,
97 uint8_t target_system,uint8_t target_component,uint8_t directory_type,uint8_t start_index,uint8_t count,
const int8_t *directory_data)
99 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
106 _mav_put_int8_t_array(buf, 5, directory_data, 48);
114 packet.
count = count;
115 mav_array_memcpy(packet.
directory_data, directory_data,
sizeof(int8_t)*48);
120 #if MAVLINK_CRC_EXTRA
135 static 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)
149 static 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)
165 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
167 static 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)
169 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
176 _mav_put_int8_t_array(buf, 5, directory_data, 48);
177 #if MAVLINK_CRC_EXTRA
188 packet.
count = count;
189 mav_array_memcpy(packet.
directory_data, directory_data,
sizeof(int8_t)*48);
190 #if MAVLINK_CRC_EXTRA
198 #if MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN <= MAVLINK_MAX_PAYLOAD_LEN
206 static 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)
208 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
209 char *buf = (
char *)msgbuf;
215 _mav_put_int8_t_array(buf, 5, directory_data, 48);
216 #if MAVLINK_CRC_EXTRA
227 packet->
count = count;
228 mav_array_memcpy(packet->
directory_data, directory_data,
sizeof(int8_t)*48);
229 #if MAVLINK_CRC_EXTRA
248 static inline uint8_t mavlink_msg_flexifunction_directory_get_target_system(
const mavlink_message_t* msg)
258 static inline uint8_t mavlink_msg_flexifunction_directory_get_target_component(
const mavlink_message_t* msg)
268 static inline uint8_t mavlink_msg_flexifunction_directory_get_directory_type(
const mavlink_message_t* msg)
278 static inline uint8_t mavlink_msg_flexifunction_directory_get_start_index(
const mavlink_message_t* msg)
288 static inline uint8_t mavlink_msg_flexifunction_directory_get_count(
const mavlink_message_t* msg)
298 static inline uint16_t mavlink_msg_flexifunction_directory_get_directory_data(
const mavlink_message_t* msg, int8_t *directory_data)
300 return _MAV_RETURN_int8_t_array(msg, directory_data, 48, 5);
311 #if MAVLINK_NEED_BYTE_SWAP
312 flexifunction_directory->
target_system = mavlink_msg_flexifunction_directory_get_target_system(msg);
313 flexifunction_directory->
target_component = mavlink_msg_flexifunction_directory_get_target_component(msg);
314 flexifunction_directory->
directory_type = mavlink_msg_flexifunction_directory_get_directory_type(msg);
315 flexifunction_directory->
start_index = mavlink_msg_flexifunction_directory_get_start_index(msg);
316 flexifunction_directory->
count = mavlink_msg_flexifunction_directory_get_count(msg);
317 mavlink_msg_flexifunction_directory_get_directory_data(msg, flexifunction_directory->
directory_data);
uint8_t target_component
Component ID.
Definition: mavlink_msg_flexifunction_directory.h:8
uint8_t start_index
index of first directory entry to write
Definition: mavlink_msg_flexifunction_directory.h:10
Definition: mavlink_msg_flexifunction_directory.h:5
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
#define MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_CRC
Definition: mavlink_msg_flexifunction_directory.h:18
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
int8_t directory_data[48]
Settings data.
Definition: mavlink_msg_flexifunction_directory.h:12
mavlink_channel_t
Definition: mavlink_types.h:178
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
#define MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY
Definition: mavlink_msg_flexifunction_directory.h:3
uint8_t target_system
System ID.
Definition: mavlink_msg_flexifunction_directory.h:7
#define MAVLINK_MSG_ID_FLEXIFUNCTION_DIRECTORY_LEN
Definition: mavlink_msg_flexifunction_directory.h:15
struct __mavlink_flexifunction_directory_t mavlink_flexifunction_directory_t
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
uint8_t count
count of directory entries to write
Definition: mavlink_msg_flexifunction_directory.h:11
uint8_t directory_type
0=inputs, 1=outputs
Definition: mavlink_msg_flexifunction_directory.h:9