sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
RX.cpp File Reference
#include "Arduino.h"
#include "config.h"
#include "def.h"
#include "types.h"
#include "Serial.h"
#include "Protocol.h"
#include "MultiWii.h"
#include "Alarms.h"

Macros

#define RX_PIN_CHECK(pin_pos, rc_value_pos)
 
#define AVERAGING_ARRAY_LENGTH   4
 

Functions

void rxInt (void)
 
void configureReceiver ()
 
 ISR (RX_PC_INTERRUPT)
 
uint16_t readRawRC (uint8_t chan)
 
void computeRC ()
 

Variables

volatile uint16_t rcValue [RC_CHANS] = {1502, 1502, 1502, 1502, 1502, 1502, 1502, 1502}
 

Macro Definition Documentation

#define AVERAGING_ARRAY_LENGTH   4
#define RX_PIN_CHECK (   pin_pos,
  rc_value_pos 
)
Value:
if (mask & PCInt_RX_Pins[pin_pos]) { \
if (!(pin & PCInt_RX_Pins[pin_pos])) { \
dTime = cTime-edgeTime[pin_pos]; \
if (900<dTime && dTime<2200) { \
rcValue[rc_value_pos] = dTime; \
} \
} else edgeTime[pin_pos] = cTime; \
}
volatile uint16_t rcValue[RC_CHANS]
Definition: RX.cpp:24
if(CHK_INT_EN())
Definition: onewire.c:414

Function Documentation

void computeRC ( )
void configureReceiver ( )
ISR ( RX_PC_INTERRUPT  )
uint16_t readRawRC ( uint8_t  chan)
void rxInt ( void  )

Variable Documentation

volatile uint16_t rcValue[RC_CHANS] = {1502, 1502, 1502, 1502, 1502, 1502, 1502, 1502}