RSeries astromech firmware
PPMDecoder Class Reference

#include <encoder/PPMDecoder.h>

+ Inheritance diagram for PPMDecoder:
+ Collaboration diagram for PPMDecoder:

Public Member Functions

 PPMDecoder (uint8_t pin, unsigned channelCount=6)
 
 ~PPMDecoder ()
 
void init ()
 
virtual void setup () override
 Subclasses must implement this function to perform any necessary setup that cannot happen in the constructor. More...
 
bool decode ()
 
uint16_t channel (unsigned ch, unsigned minvalue, unsigned maxvalue, unsigned neutralvalue)
 
- Public Member Functions inherited from SetupEvent
 SetupEvent ()
 Default Constructor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from SetupEvent
static void ready ()
 Calls setup() for each created AnimatedEvent subclass. More...
 

Constructor & Destructor Documentation

◆ PPMDecoder()

PPMDecoder::PPMDecoder ( uint8_t  pin,
unsigned  channelCount = 6 
)
inline

◆ ~PPMDecoder()

PPMDecoder::~PPMDecoder ( )
inline

Member Function Documentation

◆ channel()

uint16_t PPMDecoder::channel ( unsigned  ch,
unsigned  minvalue,
unsigned  maxvalue,
unsigned  neutralvalue 
)
inline

◆ decode()

bool PPMDecoder::decode ( )
inline

◆ init()

void PPMDecoder::init ( )
inline

◆ setup()

virtual void PPMDecoder::setup ( )
inlineoverridevirtual

Subclasses must implement this function to perform any necessary setup that cannot happen in the constructor.

Implements SetupEvent.


The documentation for this class was generated from the following file: