Robot.h@3:4dbbd511a49d, 2015-11-13 (annotated)
- Committer:
- inst
- Date:
- Fri Nov 13 08:16:04 2015 +0000
- Revision:
- 3:4dbbd511a49d
- Parent:
- 2:0d9bb8e1876b
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
inst | 0:91d31b26ae9e | 1 | #ifndef INCLUDED_ROBOT_H |
inst | 0:91d31b26ae9e | 2 | #define INCLUDED_ROBOT_H |
inst | 0:91d31b26ae9e | 3 | |
inst | 0:91d31b26ae9e | 4 | #include "mbed.h" |
inst | 0:91d31b26ae9e | 5 | class I2CDevice; |
inst | 0:91d31b26ae9e | 6 | |
inst | 0:91d31b26ae9e | 7 | class Robot{ |
inst | 0:91d31b26ae9e | 8 | public: |
inst | 3:4dbbd511a49d | 9 | static uint32_t getNumOfI2CDevices(){ |
inst | 3:4dbbd511a49d | 10 | return mNumOfI2CDevices; |
inst | 3:4dbbd511a49d | 11 | } |
inst | 0:91d31b26ae9e | 12 | void update(); |
inst | 0:91d31b26ae9e | 13 | |
inst | 0:91d31b26ae9e | 14 | protected: |
inst | 3:4dbbd511a49d | 15 | static const uint32_t mNumOfI2CDevices; |
inst | 0:91d31b26ae9e | 16 | I2CDevice** mI2CDevice; |
inst | 2:0d9bb8e1876b | 17 | |
inst | 0:91d31b26ae9e | 18 | private: |
inst | 0:91d31b26ae9e | 19 | virtual void updateAction() = 0; |
inst | 0:91d31b26ae9e | 20 | void readI2CDevice(); |
inst | 0:91d31b26ae9e | 21 | void writeI2CDevice(); |
inst | 3:4dbbd511a49d | 22 | |
inst | 0:91d31b26ae9e | 23 | }; |
inst | 0:91d31b26ae9e | 24 | |
inst | 0:91d31b26ae9e | 25 | #endif |