YMFC-AL implementation in mbed.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PPM.h Source File

PPM.h

00001 #ifndef PPM_IN
00002 #define PPM_IN
00003  
00004 class PPM
00005 {
00006     public:    
00007         static const uint8_t NUM_CHANNELS = 6;
00008         uint16_t channels[NUM_CHANNELS];
00009         
00010         PPM(PinName pin);
00011         
00012         void rise();
00013  
00014     protected:
00015         InterruptIn ppm;
00016         Timer timer;
00017         uint8_t currentChannel;
00018 };
00019  
00020 #endif