![](/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/CheckSum.h@2:dfe671e31221, 2017-01-24 (annotated)
- Committer:
- wataloh
- Date:
- Tue Jan 24 10:00:28 2017 +0000
- Revision:
- 2:dfe671e31221
- Child:
- 21:d03c7bbb9f37
latest
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wataloh | 2:dfe671e31221 | 1 | #ifndef _CHECK_SUM_H_ |
wataloh | 2:dfe671e31221 | 2 | #define _CHECK_SUM_H_ |
wataloh | 2:dfe671e31221 | 3 | |
wataloh | 2:dfe671e31221 | 4 | #include "mbed.h" |
wataloh | 2:dfe671e31221 | 5 | #include "Preferences.hpp" |
wataloh | 2:dfe671e31221 | 6 | |
wataloh | 2:dfe671e31221 | 7 | using namespace MaruSolSensorManager; |
wataloh | 2:dfe671e31221 | 8 | |
wataloh | 2:dfe671e31221 | 9 | class CheckSum |
wataloh | 2:dfe671e31221 | 10 | { |
wataloh | 2:dfe671e31221 | 11 | static uint32_t *table; |
wataloh | 2:dfe671e31221 | 12 | uint32_t checkSum; |
wataloh | 2:dfe671e31221 | 13 | void reset_table(); |
wataloh | 2:dfe671e31221 | 14 | public: |
wataloh | 2:dfe671e31221 | 15 | void reset(); |
wataloh | 2:dfe671e31221 | 16 | CheckSum(); |
wataloh | 2:dfe671e31221 | 17 | /* typedef union |
wataloh | 2:dfe671e31221 | 18 | { |
wataloh | 2:dfe671e31221 | 19 | uint8_t uint8array[4]; |
wataloh | 2:dfe671e31221 | 20 | uint32_t uint32; |
wataloh | 2:dfe671e31221 | 21 | } CheckSumCRC32;*/ |
wataloh | 2:dfe671e31221 | 22 | void calc(uint8_t *buf, size_t len); |
wataloh | 2:dfe671e31221 | 23 | // CheckSumCRC32 get(); |
wataloh | 2:dfe671e31221 | 24 | PREFERENCES::_crc32 get(); |
wataloh | 2:dfe671e31221 | 25 | }; |
wataloh | 2:dfe671e31221 | 26 | #endif //_CHECK_SUM_H_ |