YMFC-AL implementation in mbed.

Dependencies:   mbed

PPM.h

Committer:
iforce2d
Date:
2019-10-04
Revision:
1:411d267f9d32

File content as of revision 1:411d267f9d32:

#ifndef PPM_IN
#define PPM_IN
 
class PPM
{
    public:    
        static const uint8_t NUM_CHANNELS = 6;
        uint16_t channels[NUM_CHANNELS];
        
        PPM(PinName pin);
        
        void rise();
 
    protected:
        InterruptIn ppm;
        Timer timer;
        uint8_t currentChannel;
};
 
#endif