Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
sbus.c File Reference

Single SBUS radio_control. More...

Include dependency graph for sbus.c:

Go to the source code of this file.

Macros

#define RC_POLARITY_GPIO_PORT   0
#define RC_POLARITY_GPIO_PIN   0

Functions

static void send_sbus (struct transport_tx *trans, struct link_device *dev)
void sbus_init (void)
 RC init function.
static void sbus_decode_event (void)
void sbus_event (void)
 RC event function.

Variables

struct Sbus sbus
 SBUS struct.

Detailed Description

Single SBUS radio_control.

Definition in file sbus.c.

Macro Definition Documentation

◆ RC_POLARITY_GPIO_PIN

#define RC_POLARITY_GPIO_PIN   0

Definition at line 36 of file sbus.c.

◆ RC_POLARITY_GPIO_PORT

#define RC_POLARITY_GPIO_PORT   0

Definition at line 33 of file sbus.c.

Function Documentation

◆ sbus_decode_event()

void sbus_decode_event ( void )
inlinestatic

Definition at line 69 of file sbus.c.

References sbus, and sbus_common_decode_event().

Referenced by sbus_event().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sbus_event()

void sbus_event ( void )

RC event function.

Definition at line 74 of file sbus.c.

References radio_control, RADIO_CONTROL_SBUS_ID, RC_OK, RC_REALLY_LOST, sbus, and sbus_decode_event().

Here is the call graph for this function:

◆ sbus_init()

void sbus_init ( void )

RC init function.

Definition at line 55 of file sbus.c.

References DefaultPeriodic, radio_control, RC_POLARITY_GPIO_PIN, RC_POLARITY_GPIO_PORT, register_periodic_telemetry(), sbus, sbus_common_init(), SBUS_NB_CHANNEL, and send_sbus().

Here is the call graph for this function:

◆ send_sbus()

void send_sbus ( struct transport_tx * trans,
struct link_device * dev )
static

Definition at line 46 of file sbus.c.

References dev, radio_control, sbus, and SBUS_NB_CHANNEL.

Referenced by sbus_dual_init(), and sbus_init().

Here is the caller graph for this function:

Variable Documentation

◆ sbus

struct Sbus sbus

SBUS struct.

Definition at line 40 of file sbus.c.

Referenced by sbus_decode_event(), sbus_event(), sbus_init(), and send_sbus().