4#define MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY 11003
7typedef struct __mavlink_device_op_write_reply_t {
10}) mavlink_device_op_write_reply_t;
12#define MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_LEN 5
13#define MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_MIN_LEN 5
14#define MAVLINK_MSG_ID_11003_LEN 5
15#define MAVLINK_MSG_ID_11003_MIN_LEN 5
17#define MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_CRC 64
18#define MAVLINK_MSG_ID_11003_CRC 64
22#if MAVLINK_COMMAND_24BIT
23#define MAVLINK_MESSAGE_INFO_DEVICE_OP_WRITE_REPLY { \
25 "DEVICE_OP_WRITE_REPLY", \
27 { { "request_id", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_device_op_write_reply_t, request_id) }, \
28 { "result", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_device_op_write_reply_t, result) }, \
32#define MAVLINK_MESSAGE_INFO_DEVICE_OP_WRITE_REPLY { \
33 "DEVICE_OP_WRITE_REPLY", \
35 { { "request_id", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_device_op_write_reply_t, request_id) }, \
36 { "result", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_device_op_write_reply_t, result) }, \
51static inline uint16_t mavlink_msg_device_op_write_reply_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
52 uint32_t request_id, uint8_t result)
54#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
55 char buf[MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_LEN];
56 _mav_put_uint32_t(buf, 0, request_id);
57 _mav_put_uint8_t(buf, 4, result);
59 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_LEN);
61 mavlink_device_op_write_reply_t packet;
62 packet.request_id = request_id;
63 packet.result = result;
65 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_LEN);
68 msg->msgid = MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY;
69 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_MIN_LEN, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_LEN, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_CRC);
82static inline uint16_t mavlink_msg_device_op_write_reply_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
83 mavlink_message_t* msg,
84 uint32_t request_id,uint8_t result)
86#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
87 char buf[MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_LEN];
88 _mav_put_uint32_t(buf, 0, request_id);
89 _mav_put_uint8_t(buf, 4, result);
91 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_LEN);
93 mavlink_device_op_write_reply_t packet;
94 packet.request_id = request_id;
95 packet.result = result;
97 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_LEN);
100 msg->msgid = MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY;
101 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_MIN_LEN, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_LEN, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_CRC);
112static inline uint16_t mavlink_msg_device_op_write_reply_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_device_op_write_reply_t* device_op_write_reply)
114 return mavlink_msg_device_op_write_reply_pack(system_id, component_id, msg, device_op_write_reply->request_id, device_op_write_reply->result);
126static inline uint16_t mavlink_msg_device_op_write_reply_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_device_op_write_reply_t* device_op_write_reply)
128 return mavlink_msg_device_op_write_reply_pack_chan(system_id, component_id, chan, msg, device_op_write_reply->request_id, device_op_write_reply->result);
138#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
140static inline void mavlink_msg_device_op_write_reply_send(mavlink_channel_t chan, uint32_t request_id, uint8_t result)
142#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
143 char buf[MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_LEN];
144 _mav_put_uint32_t(buf, 0, request_id);
145 _mav_put_uint8_t(buf, 4, result);
147 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY, buf, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_MIN_LEN, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_LEN, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_CRC);
149 mavlink_device_op_write_reply_t packet;
150 packet.request_id = request_id;
151 packet.result = result;
153 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY, (
const char *)&packet, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_MIN_LEN, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_LEN, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_CRC);
162static inline void mavlink_msg_device_op_write_reply_send_struct(mavlink_channel_t chan,
const mavlink_device_op_write_reply_t* device_op_write_reply)
164#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
165 mavlink_msg_device_op_write_reply_send(chan, device_op_write_reply->request_id, device_op_write_reply->result);
167 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY, (
const char *)device_op_write_reply, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_MIN_LEN, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_LEN, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_CRC);
171#if MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_LEN <= MAVLINK_MAX_PAYLOAD_LEN
179static inline void mavlink_msg_device_op_write_reply_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t request_id, uint8_t result)
181#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
182 char *buf = (
char *)msgbuf;
183 _mav_put_uint32_t(buf, 0, request_id);
184 _mav_put_uint8_t(buf, 4, result);
186 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY, buf, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_MIN_LEN, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_LEN, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_CRC);
188 mavlink_device_op_write_reply_t *packet = (mavlink_device_op_write_reply_t *)msgbuf;
189 packet->request_id = request_id;
190 packet->result = result;
192 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY, (
const char *)packet, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_MIN_LEN, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_LEN, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_CRC);
207static inline uint32_t mavlink_msg_device_op_write_reply_get_request_id(
const mavlink_message_t* msg)
209 return _MAV_RETURN_uint32_t(msg, 0);
217static inline uint8_t mavlink_msg_device_op_write_reply_get_result(
const mavlink_message_t* msg)
219 return _MAV_RETURN_uint8_t(msg, 4);
228static inline void mavlink_msg_device_op_write_reply_decode(
const mavlink_message_t* msg, mavlink_device_op_write_reply_t* device_op_write_reply)
230#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
231 device_op_write_reply->request_id = mavlink_msg_device_op_write_reply_get_request_id(msg);
232 device_op_write_reply->result = mavlink_msg_device_op_write_reply_get_result(msg);
234 uint8_t len = msg->len < MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_LEN? msg->len : MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_LEN;
235 memset(device_op_write_reply, 0, MAVLINK_MSG_ID_DEVICE_OP_WRITE_REPLY_LEN);
236 memcpy(device_op_write_reply, _MAV_PAYLOAD(msg), len);