3 #define MAVLINK_MSG_ID_FLEXIFUNCTION_BUFFER_FUNCTION 152
16 #define MAVLINK_MSG_ID_FLEXIFUNCTION_BUFFER_FUNCTION_LEN 58
17 #define MAVLINK_MSG_ID_152_LEN 58
19 #define MAVLINK_MSG_ID_FLEXIFUNCTION_BUFFER_FUNCTION_CRC 101
20 #define MAVLINK_MSG_ID_152_CRC 101
22 #define MAVLINK_MSG_FLEXIFUNCTION_BUFFER_FUNCTION_FIELD_DATA_LEN 48
24 #define MAVLINK_MESSAGE_INFO_FLEXIFUNCTION_BUFFER_FUNCTION { \
25 "FLEXIFUNCTION_BUFFER_FUNCTION", \
27 { { "func_index", NULL, MAVLINK_TYPE_UINT16_T, 0, 0, offsetof(mavlink_flexifunction_buffer_function_t, func_index) }, \
28 { "func_count", NULL, MAVLINK_TYPE_UINT16_T, 0, 2, offsetof(mavlink_flexifunction_buffer_function_t, func_count) }, \
29 { "data_address", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_flexifunction_buffer_function_t, data_address) }, \
30 { "data_size", NULL, MAVLINK_TYPE_UINT16_T, 0, 6, offsetof(mavlink_flexifunction_buffer_function_t, data_size) }, \
31 { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 8, offsetof(mavlink_flexifunction_buffer_function_t, target_system) }, \
32 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 9, offsetof(mavlink_flexifunction_buffer_function_t, target_component) }, \
33 { "data", NULL, MAVLINK_TYPE_INT8_T, 48, 10, offsetof(mavlink_flexifunction_buffer_function_t, data) }, \
53 static inline uint16_t mavlink_msg_flexifunction_buffer_function_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
54 uint8_t target_system, uint8_t target_component, uint16_t func_index, uint16_t func_count, uint16_t data_address, uint16_t data_size,
const int8_t *
data)
56 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
64 _mav_put_int8_t_array(buf, 10, data, 48);
74 mav_array_memcpy(packet.
data, data,
sizeof(int8_t)*48);
101 static inline uint16_t mavlink_msg_flexifunction_buffer_function_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
102 mavlink_message_t* msg,
103 uint8_t target_system,uint8_t target_component,uint16_t func_index,uint16_t func_count,uint16_t data_address,uint16_t data_size,
const int8_t *
data)
105 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
113 _mav_put_int8_t_array(buf, 10, data, 48);
123 mav_array_memcpy(packet.
data, data,
sizeof(int8_t)*48);
128 #if MAVLINK_CRC_EXTRA
143 static inline uint16_t mavlink_msg_flexifunction_buffer_function_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_flexifunction_buffer_function_t* flexifunction_buffer_function)
145 return mavlink_msg_flexifunction_buffer_function_pack(system_id, component_id, msg, flexifunction_buffer_function->
target_system, flexifunction_buffer_function->
target_component, flexifunction_buffer_function->
func_index, flexifunction_buffer_function->
func_count, flexifunction_buffer_function->
data_address, flexifunction_buffer_function->
data_size, flexifunction_buffer_function->
data);
157 static inline uint16_t mavlink_msg_flexifunction_buffer_function_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_flexifunction_buffer_function_t* flexifunction_buffer_function)
159 return mavlink_msg_flexifunction_buffer_function_pack_chan(system_id, component_id, chan, msg, flexifunction_buffer_function->
target_system, flexifunction_buffer_function->
target_component, flexifunction_buffer_function->
func_index, flexifunction_buffer_function->
func_count, flexifunction_buffer_function->
data_address, flexifunction_buffer_function->
data_size, flexifunction_buffer_function->
data);
174 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
176 static inline void mavlink_msg_flexifunction_buffer_function_send(
mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint16_t func_index, uint16_t func_count, uint16_t data_address, uint16_t data_size,
const int8_t *data)
178 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
186 _mav_put_int8_t_array(buf, 10, data, 48);
187 #if MAVLINK_CRC_EXTRA
200 mav_array_memcpy(packet.
data, data,
sizeof(int8_t)*48);
201 #if MAVLINK_CRC_EXTRA
209 #if MAVLINK_MSG_ID_FLEXIFUNCTION_BUFFER_FUNCTION_LEN <= MAVLINK_MAX_PAYLOAD_LEN
217 static inline void mavlink_msg_flexifunction_buffer_function_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint16_t func_index, uint16_t func_count, uint16_t data_address, uint16_t data_size,
const int8_t *data)
219 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
220 char *buf = (
char *)msgbuf;
227 _mav_put_int8_t_array(buf, 10, data, 48);
228 #if MAVLINK_CRC_EXTRA
241 mav_array_memcpy(packet->
data, data,
sizeof(int8_t)*48);
242 #if MAVLINK_CRC_EXTRA
261 static inline uint8_t mavlink_msg_flexifunction_buffer_function_get_target_system(
const mavlink_message_t* msg)
271 static inline uint8_t mavlink_msg_flexifunction_buffer_function_get_target_component(
const mavlink_message_t* msg)
281 static inline uint16_t mavlink_msg_flexifunction_buffer_function_get_func_index(
const mavlink_message_t* msg)
283 return _MAV_RETURN_uint16_t(msg, 0);
291 static inline uint16_t mavlink_msg_flexifunction_buffer_function_get_func_count(
const mavlink_message_t* msg)
293 return _MAV_RETURN_uint16_t(msg, 2);
301 static inline uint16_t mavlink_msg_flexifunction_buffer_function_get_data_address(
const mavlink_message_t* msg)
303 return _MAV_RETURN_uint16_t(msg, 4);
311 static inline uint16_t mavlink_msg_flexifunction_buffer_function_get_data_size(
const mavlink_message_t* msg)
313 return _MAV_RETURN_uint16_t(msg, 6);
321 static inline uint16_t mavlink_msg_flexifunction_buffer_function_get_data(
const mavlink_message_t* msg, int8_t *data)
323 return _MAV_RETURN_int8_t_array(msg, data, 48, 10);
334 #if MAVLINK_NEED_BYTE_SWAP
335 flexifunction_buffer_function->
func_index = mavlink_msg_flexifunction_buffer_function_get_func_index(msg);
336 flexifunction_buffer_function->
func_count = mavlink_msg_flexifunction_buffer_function_get_func_count(msg);
337 flexifunction_buffer_function->
data_address = mavlink_msg_flexifunction_buffer_function_get_data_address(msg);
338 flexifunction_buffer_function->
data_size = mavlink_msg_flexifunction_buffer_function_get_data_size(msg);
339 flexifunction_buffer_function->
target_system = mavlink_msg_flexifunction_buffer_function_get_target_system(msg);
340 flexifunction_buffer_function->
target_component = mavlink_msg_flexifunction_buffer_function_get_target_component(msg);
341 mavlink_msg_flexifunction_buffer_function_get_data(msg, flexifunction_buffer_function->
data);
Definition: mavlink_msg_flexifunction_buffer_function.h:5
uint16_t data_size
Size of the.
Definition: mavlink_msg_flexifunction_buffer_function.h:10
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
uint8_t target_system
System ID.
Definition: mavlink_msg_flexifunction_buffer_function.h:11
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 MAVLINK_MSG_ID_FLEXIFUNCTION_BUFFER_FUNCTION
Definition: mavlink_msg_flexifunction_buffer_function.h:3
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
mavlink_channel_t
Definition: mavlink_types.h:178
uint16_t func_index
Function index.
Definition: mavlink_msg_flexifunction_buffer_function.h:7
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
uint8_t target_component
Component ID.
Definition: mavlink_msg_flexifunction_buffer_function.h:12
#define MAVLINK_MSG_ID_FLEXIFUNCTION_BUFFER_FUNCTION_LEN
Definition: mavlink_msg_flexifunction_buffer_function.h:16
struct __mavlink_flexifunction_buffer_function_t mavlink_flexifunction_buffer_function_t
#define MAVLINK_MSG_ID_FLEXIFUNCTION_BUFFER_FUNCTION_CRC
Definition: mavlink_msg_flexifunction_buffer_function.h:19
uint16_t func_count
Total count of functions.
Definition: mavlink_msg_flexifunction_buffer_function.h:8
uint16_t data_address
Address in the flexifunction data, Set to 0xFFFF to use address in target memory. ...
Definition: mavlink_msg_flexifunction_buffer_function.h:9
int8_t data[48]
Settings data.
Definition: mavlink_msg_flexifunction_buffer_function.h:13
#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
uint16_t data
Definition: config.c:91