![](/media/cache/group/orange_and_cat.png.50x50_q85.jpg)
pwm period is now 200us instead of the default 20ms veml6040 config is now AF_BIT | TRIG_BIT
Dependencies: mbed MMA8451Q USBDevice WakeUp vt100
Fork of afero_node_suntory_2017_06_15 by
util/USToDo.hpp@14:b205267fa5f6, 2017-05-16 (annotated)
- Committer:
- wataloh
- Date:
- Tue May 16 08:58:26 2017 +0000
- Revision:
- 14:b205267fa5f6
+ flow control; + 1 second interval between each transaction
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wataloh | 14:b205267fa5f6 | 1 | #ifndef _ULTRA_SIMPLE_TODO_HPP_ |
wataloh | 14:b205267fa5f6 | 2 | #define _ULTRA_SIMPLE_TODO_HPP_ |
wataloh | 14:b205267fa5f6 | 3 | |
wataloh | 14:b205267fa5f6 | 4 | struct USToDo |
wataloh | 14:b205267fa5f6 | 5 | { |
wataloh | 14:b205267fa5f6 | 6 | union Dat |
wataloh | 14:b205267fa5f6 | 7 | { |
wataloh | 14:b205267fa5f6 | 8 | uint16_t ui16[2]; |
wataloh | 14:b205267fa5f6 | 9 | int16_t i16[2]; |
wataloh | 14:b205267fa5f6 | 10 | }; |
wataloh | 14:b205267fa5f6 | 11 | |
wataloh | 14:b205267fa5f6 | 12 | Dat dat; |
wataloh | 14:b205267fa5f6 | 13 | |
wataloh | 14:b205267fa5f6 | 14 | struct Method |
wataloh | 14:b205267fa5f6 | 15 | { |
wataloh | 14:b205267fa5f6 | 16 | virtual void onDatProcess(Dat &dat) = 0; |
wataloh | 14:b205267fa5f6 | 17 | }; |
wataloh | 14:b205267fa5f6 | 18 | |
wataloh | 14:b205267fa5f6 | 19 | Method *method; |
wataloh | 14:b205267fa5f6 | 20 | |
wataloh | 14:b205267fa5f6 | 21 | void exec() |
wataloh | 14:b205267fa5f6 | 22 | { |
wataloh | 14:b205267fa5f6 | 23 | method->onDatProcess(dat); |
wataloh | 14:b205267fa5f6 | 24 | } |
wataloh | 14:b205267fa5f6 | 25 | }; |
wataloh | 14:b205267fa5f6 | 26 | |
wataloh | 14:b205267fa5f6 | 27 | #endif //_ULTRA_SIMPLE_TODO_HPP_ |