Bluetooth Low Energy for Smart Plug
Dependencies: BLE_API mbed nRF51822
Fork of SmartPlugBLE by
crc8.h
00001 //================ File Despciption =========================================// 00002 //=== File name : crc8.h 00003 //=== 00004 //===========================================================================// 00005 00006 #ifndef CRC8__H 00007 #define CRC8__H 00008 00009 //================ Include Header ===========================================// 00010 // 00011 00012 //================ PULBIC DEFINE ============================================// 00013 // 00014 //================ PUBLIC MACRO =============================================// 00015 // 00016 //================ TYPEDEF DATA TYPE DEFINITION =============================// 00017 // 00018 //================ ENUMERATOR DEFINITION ====================================// 00019 // 00020 //================ TYPEDEF FUNCTION TYPE DEFFINITION ========================// 00021 // 00022 //================ TYPEDEF STRUCT/UNION =====================================// 00023 // 00024 //================ EXTERN FUNCTION ==========================================// 00025 00026 00027 extern "C"{ 00028 unsigned char Crc8(unsigned char* xx,const int size, unsigned char ucCRC); 00029 inline unsigned char crc8OneByte(unsigned char xdata,unsigned char ucCRC); 00030 inline unsigned char crc8Compute(unsigned char *p,unsigned char length); 00031 }; 00032 //================ EXTERN FUNCTION POINTER ==================================// 00033 // 00034 //================ EXTERN VARIABLE ==========================================// 00035 // 00036 //================ EXTERN QUEUE =============================================// 00037 // 00038 //================ END OF FILE ==============================================// 00039 #endif 00040 //#ifndef FILE_NAME_H 00041 00042
Generated on Fri Jul 22 2022 14:22:22 by 1.7.2