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 Orefatoi

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers CheckSum.h Source File

CheckSum.h

00001 #ifndef _CHECK_SUM_H_
00002 #define _CHECK_SUM_H_
00003 
00004 #include "mbed.h"
00005 #include "Preferences.hpp"
00006 
00007 class CheckSum
00008 {
00009     static uint32_t *table;
00010     uint32_t checkSum;
00011     void reset_table();
00012 public:
00013     void reset();
00014     CheckSum();
00015 /*    typedef union
00016     {
00017         uint8_t  uint8array[4];
00018         uint32_t uint32;
00019     } CheckSumCRC32;*/
00020     void calc(uint8_t *buf, size_t len);
00021 //    CheckSumCRC32 get();
00022     PREFERENCES::_crc32 get();
00023 };    
00024 #endif //_CHECK_SUM_H_