a
Dependencies: mbed
PPM/PPMIn.h
- Committer:
- halusis
- Date:
- 2018-05-24
- Revision:
- 0:f0b20f502059
File content as of revision 0:f0b20f502059:
#ifndef CH_PPM_IN #define CH_PPM_IN class PpmIn { public: static const uint8_t CHANNELS = 8; uint16_t period; uint16_t channels[CHANNELS+2]; bool state; PpmIn(PinName pin); uint16_t* getPpm(); void rise(); protected: InterruptIn ppm; //Serial pc_com; Timer timer; uint8_t current_channel; }; #endif