PX4 Firmware
PX4 Autopilot Software http://px4.io
mavlink_bridge_header.h File Reference
#include <v2.0/mavlink_types.h>
#include <unistd.h>
#include <v2.0/standard/mavlink.h>
Include dependency graph for mavlink_bridge_header.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAVLINK_NO_CONVERSION_HELPERS
 
#define MAVLINK_USE_CONVENIENCE_FUNCTIONS
 
#define MAVLINK_SEND_UART_BYTES   mavlink_send_uart_bytes
 
#define MAVLINK_START_UART_SEND   mavlink_start_uart_send
 
#define MAVLINK_END_UART_SEND   mavlink_end_uart_send
 
#define MAVLINK_GET_CHANNEL_BUFFER   mavlink_get_channel_buffer
 
#define MAVLINK_GET_CHANNEL_STATUS   mavlink_get_channel_status
 

Functions

void mavlink_send_uart_bytes (mavlink_channel_t chan, const uint8_t *ch, int length)
 Send multiple chars (uint8_t) over a comm channel. More...
 
void mavlink_start_uart_send (mavlink_channel_t chan, int length)
 
void mavlink_end_uart_send (mavlink_channel_t chan, int length)
 
mavlink_status_t * mavlink_get_channel_status (uint8_t chan)
 
mavlink_message_t * mavlink_get_channel_buffer (uint8_t chan)
 

Variables

__BEGIN_DECLS mavlink_system_t mavlink_system
 

Macro Definition Documentation

◆ MAVLINK_END_UART_SEND

#define MAVLINK_END_UART_SEND   mavlink_end_uart_send

Definition at line 53 of file mavlink_bridge_header.h.

◆ MAVLINK_GET_CHANNEL_BUFFER

#define MAVLINK_GET_CHANNEL_BUFFER   mavlink_get_channel_buffer

Definition at line 55 of file mavlink_bridge_header.h.

◆ MAVLINK_GET_CHANNEL_STATUS

#define MAVLINK_GET_CHANNEL_STATUS   mavlink_get_channel_status

Definition at line 56 of file mavlink_bridge_header.h.

◆ MAVLINK_NO_CONVERSION_HELPERS

#define MAVLINK_NO_CONVERSION_HELPERS

Definition at line 45 of file mavlink_bridge_header.h.

◆ MAVLINK_SEND_UART_BYTES

#define MAVLINK_SEND_UART_BYTES   mavlink_send_uart_bytes

Definition at line 50 of file mavlink_bridge_header.h.

◆ MAVLINK_START_UART_SEND

#define MAVLINK_START_UART_SEND   mavlink_start_uart_send

Definition at line 52 of file mavlink_bridge_header.h.

◆ MAVLINK_USE_CONVENIENCE_FUNCTIONS

#define MAVLINK_USE_CONVENIENCE_FUNCTIONS

Definition at line 47 of file mavlink_bridge_header.h.

Function Documentation

◆ mavlink_end_uart_send()

void mavlink_end_uart_send ( mavlink_channel_t  chan,
int  length 
)

Definition at line 116 of file mavlink_main.cpp.

References Mavlink::get_instance(), and Mavlink::send_packet().

Here is the call graph for this function:

◆ mavlink_get_channel_buffer()

mavlink_message_t* mavlink_get_channel_buffer ( uint8_t  chan)

Definition at line 146 of file mavlink_main.cpp.

References Mavlink::_boot_complete, Mavlink::_first_start_time, Mavlink::get_buffer(), Mavlink::get_instance(), hrt_abstime, and usage().

Here is the call graph for this function:

◆ mavlink_get_channel_status()

mavlink_status_t* mavlink_get_channel_status ( uint8_t  chan)

Definition at line 131 of file mavlink_main.cpp.

References Mavlink::get_instance(), and Mavlink::get_status().

Here is the call graph for this function:

◆ mavlink_send_uart_bytes()

void mavlink_send_uart_bytes ( mavlink_channel_t  chan,
const uint8_t *  ch,
int  length 
)

Send multiple chars (uint8_t) over a comm channel.

Parameters
chanMAVLink channel to use, usually MAVLINK_COMM_0 = UART0
chCharacter to send

Definition at line 88 of file mavlink_main.cpp.

References Mavlink::get_instance(), and Mavlink::send_bytes().

Here is the call graph for this function:

◆ mavlink_start_uart_send()

void mavlink_start_uart_send ( mavlink_channel_t  chan,
int  length 
)

Definition at line 104 of file mavlink_main.cpp.

References Mavlink::begin_send(), and Mavlink::get_instance().

Here is the call graph for this function:

Variable Documentation

◆ mavlink_system