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
joby.h File Reference
#include "std.h"
#include "mcu_periph/uart.h"
#include <RADIO_CONTROL_JOBY_MODEL_H>
+ Include dependency graph for joby.h:

Go to the source code of this file.

Data Structures

struct  rc_joby_parser_state
 

Macros

#define RC_JOBY_MAGIC_START   13999
 
#define __RcLink(dev, _x)   dev##_x
 
#define _RcLink(dev, _x)   __RcLink(dev, _x)
 
#define RcLink(_x)   _RcLink(RADIO_CONTROL_LINK, _x)
 
#define RcLinkChAvailable()   RcLink(ChAvailable())
 
#define RcLinkGetCh()   RcLink(Getch())
 
#define RadioControlEvent(_received_frame_handler)
 

Enumerations

enum  parser_byte_t { READING_LOW_BYTE = 0, READING_HIGH_BYTE }
 
enum  parser_inverted_t { READING_NORMAL = 0, READING_INVERTED }
 

Functions

void rc_joby_parse (int8_t c, void(*callback)(void))
 

Macro Definition Documentation

#define __RcLink (   dev,
  _x 
)    dev##_x

Definition at line 59 of file joby.h.

#define _RcLink (   dev,
  _x 
)    __RcLink(dev, _x)

Definition at line 60 of file joby.h.

#define RadioControlEvent (   _received_frame_handler)
Value:
{ \
while (RcLinkChAvailable()) { \
rc_joby_parse(RcLinkGetCh(), _received_frame_handler); \
} \
}
#define RcLinkGetCh()
Definition: joby.h:64
void rc_joby_parse(int8_t c, void(*callback)(void))
Definition: joby.c:74
#define RcLinkChAvailable()
Definition: joby.h:63

Definition at line 66 of file joby.h.

#define RC_JOBY_MAGIC_START   13999

Definition at line 29 of file joby.h.

Referenced by handle_channel(), and rc_joby_parse().

#define RcLink (   _x)    _RcLink(RADIO_CONTROL_LINK, _x)

Definition at line 61 of file joby.h.

#define RcLinkChAvailable ( )    RcLink(ChAvailable())

Definition at line 63 of file joby.h.

#define RcLinkGetCh ( )    RcLink(Getch())

Definition at line 64 of file joby.h.

Enumeration Type Documentation

Enumerator
READING_LOW_BYTE 
READING_HIGH_BYTE 

Definition at line 33 of file joby.h.

Enumerator
READING_NORMAL 
READING_INVERTED 

Definition at line 38 of file joby.h.

Function Documentation