Go to the source code of this file.
Classes | |
struct | __mavlink_power_status_t |
Defines | |
#define | MAVLINK_MESSAGE_INFO_POWER_STATUS |
#define | MAVLINK_MSG_ID_125_CRC 203 |
#define | MAVLINK_MSG_ID_125_LEN 6 |
#define | MAVLINK_MSG_ID_POWER_STATUS 125 |
#define | MAVLINK_MSG_ID_POWER_STATUS_CRC 203 |
#define | MAVLINK_MSG_ID_POWER_STATUS_LEN 6 |
Typedefs | |
typedef struct __mavlink_power_status_t | mavlink_power_status_t |
Functions | |
static void | mavlink_msg_power_status_decode (const mavlink_message_t *msg, mavlink_power_status_t *power_status) |
Decode a power_status message into a struct. | |
static uint16_t | mavlink_msg_power_status_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_power_status_t *power_status) |
Encode a power_status struct. | |
static uint16_t | mavlink_msg_power_status_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_power_status_t *power_status) |
Encode a power_status struct on a channel. | |
static uint16_t | mavlink_msg_power_status_get_flags (const mavlink_message_t *msg) |
Get field flags from power_status message. | |
static uint16_t | mavlink_msg_power_status_get_Vcc (const mavlink_message_t *msg) |
Send a power_status message. | |
static uint16_t | mavlink_msg_power_status_get_Vservo (const mavlink_message_t *msg) |
Get field Vservo from power_status message. | |
static uint16_t | mavlink_msg_power_status_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint16_t Vcc, uint16_t Vservo, uint16_t flags) |
Pack a power_status message. | |
static uint16_t | mavlink_msg_power_status_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint16_t Vcc, uint16_t Vservo, uint16_t flags) |
Pack a power_status message on a channel. |
{ \ "POWER_STATUS", \ 3, \ { { "Vcc", NULL, MAVLINK_TYPE_UINT16_T, 0, 0, offsetof(mavlink_power_status_t, Vcc) }, \ { "Vservo", NULL, MAVLINK_TYPE_UINT16_T, 0, 2, offsetof(mavlink_power_status_t, Vservo) }, \ { "flags", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_power_status_t, flags) }, \ } \ }
Definition at line 20 of file mavlink_msg_power_status.h.
#define MAVLINK_MSG_ID_125_CRC 203 |
Definition at line 16 of file mavlink_msg_power_status.h.
#define MAVLINK_MSG_ID_125_LEN 6 |
Definition at line 13 of file mavlink_msg_power_status.h.
#define MAVLINK_MSG_ID_POWER_STATUS 125 |
Definition at line 3 of file mavlink_msg_power_status.h.
#define MAVLINK_MSG_ID_POWER_STATUS_CRC 203 |
Definition at line 15 of file mavlink_msg_power_status.h.
#define MAVLINK_MSG_ID_POWER_STATUS_LEN 6 |
Definition at line 12 of file mavlink_msg_power_status.h.
typedef struct __mavlink_power_status_t mavlink_power_status_t |
static void mavlink_msg_power_status_decode | ( | const mavlink_message_t * | msg, |
mavlink_power_status_t * | power_status | ||
) | [inline, static] |
Decode a power_status message into a struct.
msg | The message to decode |
power_status | C-struct to decode the message contents into |
Definition at line 248 of file mavlink_msg_power_status.h.
static uint16_t mavlink_msg_power_status_encode | ( | uint8_t | system_id, |
uint8_t | component_id, | ||
mavlink_message_t * | msg, | ||
const mavlink_power_status_t * | power_status | ||
) | [inline, static] |
Encode a power_status 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 |
power_status | C-struct to read the message contents from |
Definition at line 115 of file mavlink_msg_power_status.h.
static uint16_t mavlink_msg_power_status_encode_chan | ( | uint8_t | system_id, |
uint8_t | component_id, | ||
uint8_t | chan, | ||
mavlink_message_t * | msg, | ||
const mavlink_power_status_t * | power_status | ||
) | [inline, static] |
Encode a power_status 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 |
power_status | C-struct to read the message contents from |
Definition at line 129 of file mavlink_msg_power_status.h.
static uint16_t mavlink_msg_power_status_get_flags | ( | const mavlink_message_t * | msg | ) | [inline, static] |
Get field flags from power_status message.
Definition at line 237 of file mavlink_msg_power_status.h.
static uint16_t mavlink_msg_power_status_get_Vcc | ( | const mavlink_message_t * | msg | ) | [inline, static] |
Send a power_status message.
chan | MAVLink channel to send the message |
Vcc | 5V rail voltage in millivolts |
Vservo | servo rail voltage in millivolts |
flags | power supply status flags (see MAV_POWER_STATUS enum) Get field Vcc from power_status message |
Definition at line 217 of file mavlink_msg_power_status.h.
static uint16_t mavlink_msg_power_status_get_Vservo | ( | const mavlink_message_t * | msg | ) | [inline, static] |
Get field Vservo from power_status message.
Definition at line 227 of file mavlink_msg_power_status.h.
static uint16_t mavlink_msg_power_status_pack | ( | uint8_t | system_id, |
uint8_t | component_id, | ||
mavlink_message_t * | msg, | ||
uint16_t | Vcc, | ||
uint16_t | Vservo, | ||
uint16_t | flags | ||
) | [inline, static] |
Pack a power_status 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 |
Vcc | 5V rail voltage in millivolts |
Vservo | servo rail voltage in millivolts |
flags | power supply status flags (see MAV_POWER_STATUS enum) |
Definition at line 41 of file mavlink_msg_power_status.h.
static uint16_t mavlink_msg_power_status_pack_chan | ( | uint8_t | system_id, |
uint8_t | component_id, | ||
uint8_t | chan, | ||
mavlink_message_t * | msg, | ||
uint16_t | Vcc, | ||
uint16_t | Vservo, | ||
uint16_t | flags | ||
) | [inline, static] |
Pack a power_status 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 |
Vcc | 5V rail voltage in millivolts |
Vservo | servo rail voltage in millivolts |
flags | power supply status flags (see MAV_POWER_STATUS enum) |
Definition at line 79 of file mavlink_msg_power_status.h.