YMotorDriverSupplier.h@1:9d8fe1f0ee36, 2015-10-14 (annotated)
- Committer:
- inst
- Date:
- Wed Oct 14 06:04:26 2015 +0000
- Revision:
- 1:9d8fe1f0ee36
- Parent:
- 0:bb84da068c45
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
inst | 0:bb84da068c45 | 1 | #ifndef INCLUDED_YMOTOR_DRIVER_SUPPLIER_H |
inst | 0:bb84da068c45 | 2 | #define INCLUDED_YMOTOR_DRIVER_SUPPLIER_H |
inst | 0:bb84da068c45 | 3 | |
inst | 0:bb84da068c45 | 4 | #include "mbed.h" |
inst | 0:bb84da068c45 | 5 | #include "YMotorDriverBase.h" |
inst | 0:bb84da068c45 | 6 | |
inst | 0:bb84da068c45 | 7 | class YMotorDriverSupplier : public YMotorDriverBase{ |
inst | 0:bb84da068c45 | 8 | public: |
inst | 0:bb84da068c45 | 9 | YMotorDriverSupplier( char address ); |
inst | 1:9d8fe1f0ee36 | 10 | |
inst | 0:bb84da068c45 | 11 | private: |
inst | 1:9d8fe1f0ee36 | 12 | virtual void updateI2CSlave(); |
inst | 1:9d8fe1f0ee36 | 13 | virtual void updateSpecial(); |
inst | 0:bb84da068c45 | 14 | void itr(); |
inst | 0:bb84da068c45 | 15 | |
inst | 0:bb84da068c45 | 16 | static const float mDuty; |
inst | 1:9d8fe1f0ee36 | 17 | static const PinName mLazerPinName; |
inst | 1:9d8fe1f0ee36 | 18 | static const uint32_t mValidSignalWidth_us; |
inst | 0:bb84da068c45 | 19 | |
inst | 1:9d8fe1f0ee36 | 20 | InterruptIn* mLazer; |
inst | 0:bb84da068c45 | 21 | Timer* mTimer; |
inst | 0:bb84da068c45 | 22 | bool mIsWorking; |
inst | 0:bb84da068c45 | 23 | }; |
inst | 0:bb84da068c45 | 24 | |
inst | 0:bb84da068c45 | 25 | #endif |