Diff: YMotorDriverSupplier.h
- Revision:
- 1:9d8fe1f0ee36
- Parent:
- 0:bb84da068c45
diff -r bb84da068c45 -r 9d8fe1f0ee36 YMotorDriverSupplier.h --- a/YMotorDriverSupplier.h Sun Aug 23 15:17:57 2015 +0000 +++ b/YMotorDriverSupplier.h Wed Oct 14 06:04:26 2015 +0000 @@ -6,29 +6,20 @@ class YMotorDriverSupplier : public YMotorDriverBase{ public: - enum DinID{ - LAZER, - PHOTOINTERRUPTER - }; - YMotorDriverSupplier( char address ); - virtual void update(); + private: - void updateSupplier(); + virtual void updateI2CSlave(); + virtual void updateSpecial(); void itr(); static const float mDuty; - static const PinName mDinPinName[]; - static const float mTimeout_sec; + static const PinName mLazerPinName; + static const uint32_t mValidSignalWidth_us; - DigitalIn* mLazerDin; - InterruptIn* mPhotointerrupter; + InterruptIn* mLazer; Timer* mTimer; bool mIsWorking; - bool mIsMayStoppable; - bool mPrevInterrupterState; - bool mHasFinished; - Timer* mLazerTimer; }; #endif