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@23:e4d2316383a1, 2017-10-18 (annotated)
- Committer:
- Rhyme
- Date:
- Wed Oct 18 00:31:13 2017 +0000
- Revision:
- 23:e4d2316383a1
- Parent:
- 21:d03c7bbb9f37
pwm period is now 200us from default 20ms; veml6040->setCOLORCOnf is now AF_BIT | TRIG_BIT from 0x00;
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_ |