Paparazzi UAS  v6.2_unstable
Paparazzi is a free software Unmanned Aircraft System.
sbus.c File Reference
+ 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. More...
 
static void sbus_decode_event (void)
 
void sbus_event (void)
 RC event function. More...
 

Variables

struct Sbus sbus
 SBUS struct. More...
 

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()

static 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()

◆ sbus_init()

void sbus_init ( void  )

RC init function.

Definition at line 55 of file sbus.c.

References DefaultPeriodic, RadioControl::nb_channel, 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()

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

Definition at line 46 of file sbus.c.

References dev, RadioControl::frame_rate, Sbus::ppm, radio_control, sbus, and SBUS_NB_CHANNEL.

Referenced by 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().