Go to the source code of this file.
Classes | |
struct | __mavlink_serial_control_t |
Defines | |
#define | MAVLINK_MESSAGE_INFO_SERIAL_CONTROL |
#define | MAVLINK_MSG_ID_126_CRC 220 |
#define | MAVLINK_MSG_ID_126_LEN 79 |
#define | MAVLINK_MSG_ID_SERIAL_CONTROL 126 |
#define | MAVLINK_MSG_ID_SERIAL_CONTROL_CRC 220 |
#define | MAVLINK_MSG_ID_SERIAL_CONTROL_LEN 79 |
#define | MAVLINK_MSG_SERIAL_CONTROL_FIELD_DATA_LEN 70 |
Typedefs | |
typedef struct __mavlink_serial_control_t | mavlink_serial_control_t |
Functions | |
static void | mavlink_msg_serial_control_decode (const mavlink_message_t *msg, mavlink_serial_control_t *serial_control) |
Decode a serial_control message into a struct. | |
static uint16_t | mavlink_msg_serial_control_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_serial_control_t *serial_control) |
Encode a serial_control struct. | |
static uint16_t | mavlink_msg_serial_control_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_serial_control_t *serial_control) |
Encode a serial_control struct on a channel. | |
static uint32_t | mavlink_msg_serial_control_get_baudrate (const mavlink_message_t *msg) |
Get field baudrate from serial_control message. | |
static uint8_t | mavlink_msg_serial_control_get_count (const mavlink_message_t *msg) |
Get field count from serial_control message. | |
static uint16_t | mavlink_msg_serial_control_get_data (const mavlink_message_t *msg, uint8_t *data) |
Get field data from serial_control message. | |
static uint8_t | mavlink_msg_serial_control_get_device (const mavlink_message_t *msg) |
Send a serial_control message. | |
static uint8_t | mavlink_msg_serial_control_get_flags (const mavlink_message_t *msg) |
Get field flags from serial_control message. | |
static uint16_t | mavlink_msg_serial_control_get_timeout (const mavlink_message_t *msg) |
Get field timeout from serial_control message. | |
static uint16_t | mavlink_msg_serial_control_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint8_t device, uint8_t flags, uint16_t timeout, uint32_t baudrate, uint8_t count, const uint8_t *data) |
Pack a serial_control message. | |
static uint16_t | mavlink_msg_serial_control_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint8_t device, uint8_t flags, uint16_t timeout, uint32_t baudrate, uint8_t count, const uint8_t *data) |
Pack a serial_control message on a channel. |
{ \ "SERIAL_CONTROL", \ 6, \ { { "baudrate", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_serial_control_t, baudrate) }, \ { "timeout", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_serial_control_t, timeout) }, \ { "device", NULL, MAVLINK_TYPE_UINT8_T, 0, 6, offsetof(mavlink_serial_control_t, device) }, \ { "flags", NULL, MAVLINK_TYPE_UINT8_T, 0, 7, offsetof(mavlink_serial_control_t, flags) }, \ { "count", NULL, MAVLINK_TYPE_UINT8_T, 0, 8, offsetof(mavlink_serial_control_t, count) }, \ { "data", NULL, MAVLINK_TYPE_UINT8_T, 70, 9, offsetof(mavlink_serial_control_t, data) }, \ } \ }
Definition at line 23 of file mavlink_msg_serial_control.h.
#define MAVLINK_MSG_ID_126_CRC 220 |
Definition at line 19 of file mavlink_msg_serial_control.h.
#define MAVLINK_MSG_ID_126_LEN 79 |
Definition at line 16 of file mavlink_msg_serial_control.h.
#define MAVLINK_MSG_ID_SERIAL_CONTROL 126 |
Definition at line 3 of file mavlink_msg_serial_control.h.
#define MAVLINK_MSG_ID_SERIAL_CONTROL_CRC 220 |
Definition at line 18 of file mavlink_msg_serial_control.h.
#define MAVLINK_MSG_ID_SERIAL_CONTROL_LEN 79 |
Definition at line 15 of file mavlink_msg_serial_control.h.
#define MAVLINK_MSG_SERIAL_CONTROL_FIELD_DATA_LEN 70 |
Definition at line 21 of file mavlink_msg_serial_control.h.
typedef struct __mavlink_serial_control_t mavlink_serial_control_t |
static void mavlink_msg_serial_control_decode | ( | const mavlink_message_t * | msg, |
mavlink_serial_control_t * | serial_control | ||
) | [inline, static] |
Decode a serial_control message into a struct.
msg | The message to decode |
serial_control | C-struct to decode the message contents into |
Definition at line 309 of file mavlink_msg_serial_control.h.
static uint16_t mavlink_msg_serial_control_encode | ( | uint8_t | system_id, |
uint8_t | component_id, | ||
mavlink_message_t * | msg, | ||
const mavlink_serial_control_t * | serial_control | ||
) | [inline, static] |
Encode a serial_control struct.
system_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
msg | The MAVLink message to compress the data into |
serial_control | C-struct to read the message contents from |
Definition at line 135 of file mavlink_msg_serial_control.h.
static uint16_t mavlink_msg_serial_control_encode_chan | ( | uint8_t | system_id, |
uint8_t | component_id, | ||
uint8_t | chan, | ||
mavlink_message_t * | msg, | ||
const mavlink_serial_control_t * | serial_control | ||
) | [inline, static] |
Encode a serial_control struct on a channel.
system_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
chan | The MAVLink channel this message will be sent over |
msg | The MAVLink message to compress the data into |
serial_control | C-struct to read the message contents from |
Definition at line 149 of file mavlink_msg_serial_control.h.
static uint32_t mavlink_msg_serial_control_get_baudrate | ( | const mavlink_message_t * | msg | ) | [inline, static] |
Get field baudrate from serial_control message.
Definition at line 278 of file mavlink_msg_serial_control.h.
static uint8_t mavlink_msg_serial_control_get_count | ( | const mavlink_message_t * | msg | ) | [inline, static] |
Get field count from serial_control message.
Definition at line 288 of file mavlink_msg_serial_control.h.
static uint16_t mavlink_msg_serial_control_get_data | ( | const mavlink_message_t * | msg, |
uint8_t * | data | ||
) | [inline, static] |
Get field data from serial_control message.
Definition at line 298 of file mavlink_msg_serial_control.h.
static uint8_t mavlink_msg_serial_control_get_device | ( | const mavlink_message_t * | msg | ) | [inline, static] |
Send a serial_control message.
chan | MAVLink channel to send the message |
device | See SERIAL_CONTROL_DEV enum |
flags | See SERIAL_CONTROL_FLAG enum |
timeout | Timeout for reply data in milliseconds |
baudrate | Baudrate of transfer. Zero means no change. |
count | how many bytes in this transfer |
data | serial data Get field device from serial_control message |
Definition at line 248 of file mavlink_msg_serial_control.h.
static uint8_t mavlink_msg_serial_control_get_flags | ( | const mavlink_message_t * | msg | ) | [inline, static] |
Get field flags from serial_control message.
Definition at line 258 of file mavlink_msg_serial_control.h.
static uint16_t mavlink_msg_serial_control_get_timeout | ( | const mavlink_message_t * | msg | ) | [inline, static] |
Get field timeout from serial_control message.
Definition at line 268 of file mavlink_msg_serial_control.h.
static uint16_t mavlink_msg_serial_control_pack | ( | uint8_t | system_id, |
uint8_t | component_id, | ||
mavlink_message_t * | msg, | ||
uint8_t | device, | ||
uint8_t | flags, | ||
uint16_t | timeout, | ||
uint32_t | baudrate, | ||
uint8_t | count, | ||
const uint8_t * | data | ||
) | [inline, static] |
Pack a serial_control message.
system_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
msg | The MAVLink message to compress the data into |
device | See SERIAL_CONTROL_DEV enum |
flags | See SERIAL_CONTROL_FLAG enum |
timeout | Timeout for reply data in milliseconds |
baudrate | Baudrate of transfer. Zero means no change. |
count | how many bytes in this transfer |
data | serial data |
Definition at line 50 of file mavlink_msg_serial_control.h.
static uint16_t mavlink_msg_serial_control_pack_chan | ( | uint8_t | system_id, |
uint8_t | component_id, | ||
uint8_t | chan, | ||
mavlink_message_t * | msg, | ||
uint8_t | device, | ||
uint8_t | flags, | ||
uint16_t | timeout, | ||
uint32_t | baudrate, | ||
uint8_t | count, | ||
const uint8_t * | data | ||
) | [inline, static] |
Pack a serial_control message on a channel.
system_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
chan | The MAVLink channel this message will be sent over |
msg | The MAVLink message to compress the data into |
device | See SERIAL_CONTROL_DEV enum |
flags | See SERIAL_CONTROL_FLAG enum |
timeout | Timeout for reply data in milliseconds |
baudrate | Baudrate of transfer. Zero means no change. |
count | how many bytes in this transfer |
data | serial data |
Definition at line 95 of file mavlink_msg_serial_control.h.