3 #define MAVLINK_MSG_ID_PARAM_REQUEST_READ 20
13 #define MAVLINK_MSG_ID_PARAM_REQUEST_READ_LEN 20
14 #define MAVLINK_MSG_ID_20_LEN 20
16 #define MAVLINK_MSG_ID_PARAM_REQUEST_READ_CRC 214
17 #define MAVLINK_MSG_ID_20_CRC 214
19 #define MAVLINK_MSG_PARAM_REQUEST_READ_FIELD_PARAM_ID_LEN 16
21 #define MAVLINK_MESSAGE_INFO_PARAM_REQUEST_READ { \
22 "PARAM_REQUEST_READ", \
24 { { "param_index", NULL, MAVLINK_TYPE_INT16_T, 0, 0, offsetof(mavlink_param_request_read_t, param_index) }, \
25 { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_param_request_read_t, target_system) }, \
26 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_param_request_read_t, target_component) }, \
27 { "param_id", NULL, MAVLINK_TYPE_CHAR, 16, 4, offsetof(mavlink_param_request_read_t, param_id) }, \
44 static inline uint16_t mavlink_msg_param_request_read_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
45 uint8_t target_system, uint8_t target_component,
const char *param_id, int16_t param_index)
47 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
52 _mav_put_char_array(buf, 4, param_id, 16);
59 mav_array_memcpy(packet.
param_id, param_id,
sizeof(
char)*16);
83 static inline uint16_t mavlink_msg_param_request_read_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
84 mavlink_message_t* msg,
85 uint8_t target_system,uint8_t target_component,
const char *param_id,int16_t param_index)
87 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
92 _mav_put_char_array(buf, 4, param_id, 16);
99 mav_array_memcpy(packet.
param_id, param_id,
sizeof(
char)*16);
104 #if MAVLINK_CRC_EXTRA
119 static inline uint16_t mavlink_msg_param_request_read_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_param_request_read_t* param_request_read)
133 static inline uint16_t mavlink_msg_param_request_read_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_param_request_read_t* param_request_read)
147 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
149 static inline void mavlink_msg_param_request_read_send(
mavlink_channel_t chan, uint8_t target_system, uint8_t target_component,
const char *param_id, int16_t param_index)
151 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
156 _mav_put_char_array(buf, 4, param_id, 16);
157 #if MAVLINK_CRC_EXTRA
167 mav_array_memcpy(packet.
param_id, param_id,
sizeof(
char)*16);
168 #if MAVLINK_CRC_EXTRA
176 #if MAVLINK_MSG_ID_PARAM_REQUEST_READ_LEN <= MAVLINK_MAX_PAYLOAD_LEN
184 static inline void mavlink_msg_param_request_read_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint8_t target_system, uint8_t target_component,
const char *param_id, int16_t param_index)
186 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
187 char *buf = (
char *)msgbuf;
191 _mav_put_char_array(buf, 4, param_id, 16);
192 #if MAVLINK_CRC_EXTRA
202 mav_array_memcpy(packet->
param_id, param_id,
sizeof(
char)*16);
203 #if MAVLINK_CRC_EXTRA
222 static inline uint8_t mavlink_msg_param_request_read_get_target_system(
const mavlink_message_t* msg)
232 static inline uint8_t mavlink_msg_param_request_read_get_target_component(
const mavlink_message_t* msg)
242 static inline uint16_t mavlink_msg_param_request_read_get_param_id(
const mavlink_message_t* msg,
char *param_id)
244 return _MAV_RETURN_char_array(msg, param_id, 16, 4);
252 static inline int16_t mavlink_msg_param_request_read_get_param_index(
const mavlink_message_t* msg)
254 return _MAV_RETURN_int16_t(msg, 0);
263 static inline void mavlink_msg_param_request_read_decode(
const mavlink_message_t* msg,
mavlink_param_request_read_t* param_request_read)
265 #if MAVLINK_NEED_BYTE_SWAP
266 param_request_read->
param_index = mavlink_msg_param_request_read_get_param_index(msg);
267 param_request_read->
target_system = mavlink_msg_param_request_read_get_target_system(msg);
268 param_request_read->
target_component = mavlink_msg_param_request_read_get_target_component(msg);
269 mavlink_msg_param_request_read_get_param_id(msg, param_request_read->
param_id);
#define MAVLINK_MSG_ID_PARAM_REQUEST_READ_LEN
Definition: mavlink_msg_param_request_read.h:13
uint8_t target_system
System ID.
Definition: mavlink_msg_param_request_read.h:8
uint8_t target_component
Component ID.
Definition: mavlink_msg_param_request_read.h:9
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
Definition: mavlink_msg_param_request_read.h:5
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
mavlink_channel_t
Definition: mavlink_types.h:178
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
int16_t param_index
Parameter index. Send -1 to use the param ID field as identifier (else the param id will be ignored) ...
Definition: mavlink_msg_param_request_read.h:7
struct __mavlink_param_request_read_t mavlink_param_request_read_t
#define MAVLINK_MSG_ID_PARAM_REQUEST_READ
Definition: mavlink_msg_param_request_read.h:3
#define MAVLINK_MSG_ID_PARAM_REQUEST_READ_CRC
Definition: mavlink_msg_param_request_read.h:16
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
#define _mav_put_int16_t(buf, wire_offset, b)
Definition: protocol.h:140
char param_id[16]
Onboard parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHO...
Definition: mavlink_msg_param_request_read.h:10