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@21:d03c7bbb9f37, 2017-06-09 (annotated)
- Committer:
- wataloh
- Date:
- Fri Jun 09 01:49:53 2017 +0000
- Revision:
- 21:d03c7bbb9f37
- Parent:
- 2:dfe671e31221
Added the following process; When VEML6040 library returns NACK, forces software reset
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 | class CheckSum |
wataloh | 2:dfe671e31221 | 8 | { |
wataloh | 2:dfe671e31221 | 9 | static uint32_t *table; |
wataloh | 2:dfe671e31221 | 10 | uint32_t checkSum; |
wataloh | 2:dfe671e31221 | 11 | void reset_table(); |
wataloh | 2:dfe671e31221 | 12 | public: |
wataloh | 2:dfe671e31221 | 13 | void reset(); |
wataloh | 2:dfe671e31221 | 14 | CheckSum(); |
wataloh | 2:dfe671e31221 | 15 | /* typedef union |
wataloh | 2:dfe671e31221 | 16 | { |
wataloh | 2:dfe671e31221 | 17 | uint8_t uint8array[4]; |
wataloh | 2:dfe671e31221 | 18 | uint32_t uint32; |
wataloh | 2:dfe671e31221 | 19 | } CheckSumCRC32;*/ |
wataloh | 2:dfe671e31221 | 20 | void calc(uint8_t *buf, size_t len); |
wataloh | 2:dfe671e31221 | 21 | // CheckSumCRC32 get(); |
wataloh | 2:dfe671e31221 | 22 | PREFERENCES::_crc32 get(); |
wataloh | 2:dfe671e31221 | 23 | }; |
wataloh | 2:dfe671e31221 | 24 | #endif //_CHECK_SUM_H_ |