Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
joby.h File Reference
#include "std.h"
#include "mcu_periph/uart.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 61 of file joby.h.

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

Definition at line 62 of file joby.h.

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

Definition at line 68 of file joby.h.

#define RC_JOBY_MAGIC_START   13999

Definition at line 31 of file joby.h.

Referenced by handle_channel(), and rc_joby_parse().

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

Definition at line 63 of file joby.h.

#define RcLinkChAvailable ( )    RcLink(ChAvailable())

Definition at line 65 of file joby.h.

#define RcLinkGetCh ( )    RcLink(Getch())

Definition at line 66 of file joby.h.

Enumeration Type Documentation

Enumerator
READING_LOW_BYTE 
READING_HIGH_BYTE 

Definition at line 35 of file joby.h.

Enumerator
READING_NORMAL 
READING_INVERTED 

Definition at line 40 of file joby.h.

Function Documentation