Tohshiba motor driver IC TA8429 class
TA8429.h@0:a56d6efd9c85, 2014-07-07 (annotated)
- Committer:
- macht
- Date:
- Mon Jul 07 09:55:53 2014 +0000
- Revision:
- 0:a56d6efd9c85
TA8429 motor driver IC class
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
macht | 0:a56d6efd9c85 | 1 | #ifndef TA8429_H |
macht | 0:a56d6efd9c85 | 2 | #define TA8429_H |
macht | 0:a56d6efd9c85 | 3 | #include "mbed.h" |
macht | 0:a56d6efd9c85 | 4 | |
macht | 0:a56d6efd9c85 | 5 | class TA8429{ |
macht | 0:a56d6efd9c85 | 6 | public: |
macht | 0:a56d6efd9c85 | 7 | TA8429(PinName in1,PinName in2,float frequency); |
macht | 0:a56d6efd9c85 | 8 | void set_CW(float duty); |
macht | 0:a56d6efd9c85 | 9 | void set_CCW(float duty); |
macht | 0:a56d6efd9c85 | 10 | void stop(); |
macht | 0:a56d6efd9c85 | 11 | float get_duty(void); |
macht | 0:a56d6efd9c85 | 12 | private: |
macht | 0:a56d6efd9c85 | 13 | PwmOut in1_; |
macht | 0:a56d6efd9c85 | 14 | PwmOut in2_; |
macht | 0:a56d6efd9c85 | 15 | }; |
macht | 0:a56d6efd9c85 | 16 | #endif |