YMFC-AL implementation in mbed.

Dependencies:   mbed

Committer:
iforce2d
Date:
Fri Oct 04 17:04:41 2019 +0000
Revision:
1:411d267f9d32
First commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
iforce2d 1:411d267f9d32 1 #ifndef PPM_IN
iforce2d 1:411d267f9d32 2 #define PPM_IN
iforce2d 1:411d267f9d32 3
iforce2d 1:411d267f9d32 4 class PPM
iforce2d 1:411d267f9d32 5 {
iforce2d 1:411d267f9d32 6 public:
iforce2d 1:411d267f9d32 7 static const uint8_t NUM_CHANNELS = 6;
iforce2d 1:411d267f9d32 8 uint16_t channels[NUM_CHANNELS];
iforce2d 1:411d267f9d32 9
iforce2d 1:411d267f9d32 10 PPM(PinName pin);
iforce2d 1:411d267f9d32 11
iforce2d 1:411d267f9d32 12 void rise();
iforce2d 1:411d267f9d32 13
iforce2d 1:411d267f9d32 14 protected:
iforce2d 1:411d267f9d32 15 InterruptIn ppm;
iforce2d 1:411d267f9d32 16 Timer timer;
iforce2d 1:411d267f9d32 17 uint8_t currentChannel;
iforce2d 1:411d267f9d32 18 };
iforce2d 1:411d267f9d32 19
iforce2d 1:411d267f9d32 20 #endif