Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sbus.h File Reference

Single SBUS radio_control. More...

+ Include dependency graph for sbus.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define RadioControlEvent(_received_frame_handler)
 Event macro with handler callback. More...


void sbus_decode_event (void)
 Decoding event function. More...


struct _sbus sbus
 SBUS struct. More...

Detailed Description

Single SBUS radio_control.

Definition in file sbus.h.

Macro Definition Documentation

#define RadioControlEvent (   _received_frame_handler)
{ \
} else { \
NormalizePpmIIR(sbus.pulses,radio_control); \
_received_frame_handler(); \
} \
} \
void sbus_decode_event(void)
Decoding event function.
Definition: sbus.c:66
uint8_t frame_cpt
Definition: radio_control.h:54
uint8_t time_since_last_frame
Definition: radio_control.h:51
#define FALSE
Definition: imu_chimu.h:141
uint16_t pulses[SBUS_NB_CHANNEL]
decoded values
Definition: sbus_common.h:66
struct _sbus sbus
SBUS struct.
Definition: sbus.c:33
uint8_t radio_ok_cpt
Definition: radio_control.h:52
struct RadioControl radio_control
Definition: radio_control.c:25
#define RC_OK
Definition: radio_control.h:45
uint8_t status
Definition: radio_control.h:50
bool_t frame_available
new frame available
Definition: sbus_common.h:68

Event macro with handler callback.

Definition at line 43 of file sbus.h.

Function Documentation

void sbus_decode_event ( void  )

Decoding event function.

Definition at line 66 of file sbus.c.

References sbus, and sbus_common_decode_event().

+ Here is the call graph for this function:

Variable Documentation

struct _sbus sbus

SBUS struct.

Definition at line 33 of file sbus.c.

Referenced by radio_control_impl_init(), and sbus_decode_event().