Classes | Macros | Typedefs | Functions
mavlink_msg_data_stream.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  __mavlink_data_stream_t
 

Macros

#define MAVLINK_MESSAGE_INFO_DATA_STREAM
 
#define MAVLINK_MSG_ID_67_CRC   21
 
#define MAVLINK_MSG_ID_67_LEN   4
 
#define MAVLINK_MSG_ID_DATA_STREAM   67
 
#define MAVLINK_MSG_ID_DATA_STREAM_CRC   21
 
#define MAVLINK_MSG_ID_DATA_STREAM_LEN   4
 

Typedefs

typedef struct __mavlink_data_stream_t mavlink_data_stream_t
 

Functions

static void mavlink_msg_data_stream_decode (const mavlink_message_t *msg, mavlink_data_stream_t *data_stream)
 Decode a data_stream message into a struct. More...
 
static uint16_t mavlink_msg_data_stream_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_data_stream_t *data_stream)
 Encode a data_stream struct. More...
 
static uint16_t mavlink_msg_data_stream_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_data_stream_t *data_stream)
 Encode a data_stream struct on a channel. More...
 
static uint16_t mavlink_msg_data_stream_get_message_rate (const mavlink_message_t *msg)
 Get field message_rate from data_stream message. More...
 
static uint8_t mavlink_msg_data_stream_get_on_off (const mavlink_message_t *msg)
 Get field on_off from data_stream message. More...
 
static uint8_t mavlink_msg_data_stream_get_stream_id (const mavlink_message_t *msg)
 Send a data_stream message. More...
 
static uint16_t mavlink_msg_data_stream_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint8_t stream_id, uint16_t message_rate, uint8_t on_off)
 Pack a data_stream message. More...
 
static uint16_t mavlink_msg_data_stream_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint8_t stream_id, uint16_t message_rate, uint8_t on_off)
 Pack a data_stream message on a channel. More...
 

Macro Definition Documentation

#define MAVLINK_MESSAGE_INFO_DATA_STREAM
Value:
{ \
"DATA_STREAM", \
3, \
{ { "message_rate", NULL, MAVLINK_TYPE_UINT16_T, 0, 0, offsetof(mavlink_data_stream_t, message_rate) }, \
{ "stream_id", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_data_stream_t, stream_id) }, \
{ "on_off", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_data_stream_t, on_off) }, \
} \
}

Definition at line 20 of file mavlink_msg_data_stream.h.

#define MAVLINK_MSG_ID_67_CRC   21

Definition at line 16 of file mavlink_msg_data_stream.h.

#define MAVLINK_MSG_ID_67_LEN   4

Definition at line 13 of file mavlink_msg_data_stream.h.

#define MAVLINK_MSG_ID_DATA_STREAM   67

Definition at line 3 of file mavlink_msg_data_stream.h.

#define MAVLINK_MSG_ID_DATA_STREAM_CRC   21

Definition at line 15 of file mavlink_msg_data_stream.h.

#define MAVLINK_MSG_ID_DATA_STREAM_LEN   4

Definition at line 12 of file mavlink_msg_data_stream.h.

Typedef Documentation

Function Documentation

static void mavlink_msg_data_stream_decode ( const mavlink_message_t *  msg,
mavlink_data_stream_t data_stream 
)
inlinestatic

Decode a data_stream message into a struct.

Parameters
msgThe message to decode
data_streamC-struct to decode the message contents into

Definition at line 248 of file mavlink_msg_data_stream.h.

static uint16_t mavlink_msg_data_stream_encode ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
const mavlink_data_stream_t data_stream 
)
inlinestatic

Encode a data_stream struct.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
msgThe MAVLink message to compress the data into
data_streamC-struct to read the message contents from

Definition at line 115 of file mavlink_msg_data_stream.h.

static uint16_t mavlink_msg_data_stream_encode_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
const mavlink_data_stream_t data_stream 
)
inlinestatic

Encode a data_stream struct on a channel.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
chanThe MAVLink channel this message will be sent over
msgThe MAVLink message to compress the data into
data_streamC-struct to read the message contents from

Definition at line 129 of file mavlink_msg_data_stream.h.

static uint16_t mavlink_msg_data_stream_get_message_rate ( const mavlink_message_t *  msg)
inlinestatic

Get field message_rate from data_stream message.

Returns
The message rate

Definition at line 227 of file mavlink_msg_data_stream.h.

static uint8_t mavlink_msg_data_stream_get_on_off ( const mavlink_message_t *  msg)
inlinestatic

Get field on_off from data_stream message.

Returns
1 stream is enabled, 0 stream is stopped.

Definition at line 237 of file mavlink_msg_data_stream.h.

static uint8_t mavlink_msg_data_stream_get_stream_id ( const mavlink_message_t *  msg)
inlinestatic

Send a data_stream message.

Parameters
chanMAVLink channel to send the message
stream_idThe ID of the requested data stream
message_rateThe message rate
on_off1 stream is enabled, 0 stream is stopped. Get field stream_id from data_stream message
Returns
The ID of the requested data stream

Definition at line 217 of file mavlink_msg_data_stream.h.

static uint16_t mavlink_msg_data_stream_pack ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
uint8_t  stream_id,
uint16_t  message_rate,
uint8_t  on_off 
)
inlinestatic

Pack a data_stream message.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
msgThe MAVLink message to compress the data into
stream_idThe ID of the requested data stream
message_rateThe message rate
on_off1 stream is enabled, 0 stream is stopped.
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 41 of file mavlink_msg_data_stream.h.

static uint16_t mavlink_msg_data_stream_pack_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
uint8_t  stream_id,
uint16_t  message_rate,
uint8_t  on_off 
)
inlinestatic

Pack a data_stream message on a channel.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
chanThe MAVLink channel this message will be sent over
msgThe MAVLink message to compress the data into
stream_idThe ID of the requested data stream
message_rateThe message rate
on_off1 stream is enabled, 0 stream is stopped.
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 79 of file mavlink_msg_data_stream.h.



rosflight
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 20:00:13