Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
spektrum_arch.h File Reference
#include "std.h"
#include "mcu_periph/uart.h"
#include <RADIO_CONTROL_SPEKTRUM_MODEL_H>
+ Include dependency graph for spektrum_arch.h:

Go to the source code of this file.

Macros

#define RC_SPK_SYNC_1   0x03
 
#define RC_SPK_STA_UNINIT   0
 
#define RC_SPK_STA_GOT_SYNC_1   1
 
#define RC_SPK_STA_GOT_SYNC_2   2
 
#define MAX_SPK   344
 
#define __RcLink(dev, _x)   dev##_x
 
#define _RcLink(dev, _x)   __RcLink(dev, _x)
 
#define RcLink(_x)   _RcLink(RADIO_CONTROL_SPEKTRUM_PRIMARY_PORT, _x)
 
#define RcLinkChAvailable()   RcLink(ChAvailable())
 
#define RcLinkGetCh()   RcLink(Getch())
 
#define RadioControlEventImpl(_received_frame_handler)
 

Variables

bool_t rc_spk_parser_status
 
uint8_t rc_spk_parser_idx
 
uint8_t rc_spk_parser_buf [RADIO_CONTROL_NB_CHANNEL *2]
 
const int16_t rc_spk_throw [RADIO_CONTROL_NB_CHANNEL]
 

Macro Definition Documentation

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

Definition at line 46 of file spektrum_arch.h.

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

Definition at line 47 of file spektrum_arch.h.

#define MAX_SPK   344

Definition at line 41 of file spektrum_arch.h.

#define RadioControlEventImpl (   _received_frame_handler)

Definition at line 53 of file spektrum_arch.h.

#define RC_SPK_STA_GOT_SYNC_1   1

Definition at line 34 of file spektrum_arch.h.

#define RC_SPK_STA_GOT_SYNC_2   2

Definition at line 35 of file spektrum_arch.h.

#define RC_SPK_STA_UNINIT   0

Definition at line 33 of file spektrum_arch.h.

Referenced by radio_control_impl_init().

#define RC_SPK_SYNC_1   0x03

Definition at line 31 of file spektrum_arch.h.

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

Definition at line 48 of file spektrum_arch.h.

#define RcLinkChAvailable ( )    RcLink(ChAvailable())

Definition at line 50 of file spektrum_arch.h.

#define RcLinkGetCh ( )    RcLink(Getch())

Definition at line 51 of file spektrum_arch.h.

Variable Documentation

uint8_t rc_spk_parser_buf[RADIO_CONTROL_NB_CHANNEL *2]

Definition at line 27 of file spektrum_arch.c.

uint8_t rc_spk_parser_idx

Definition at line 26 of file spektrum_arch.c.

Referenced by radio_control_impl_init().

bool_t rc_spk_parser_status

Definition at line 25 of file spektrum_arch.c.

Referenced by radio_control_impl_init().

const int16_t rc_spk_throw[RADIO_CONTROL_NB_CHANNEL]

Definition at line 28 of file spektrum_arch.c.