Index: firmware/App/Services/Utilities.h =================================================================== diff -u -rf2652e85c8676d0356fea2690cfd9cac716ca795 -rc74c1d99a011dd0fb7f98f183faecda675221fce --- firmware/App/Services/Utilities.h (.../Utilities.h) (revision f2652e85c8676d0356fea2690cfd9cac716ca795) +++ firmware/App/Services/Utilities.h (.../Utilities.h) (revision c74c1d99a011dd0fb7f98f183faecda675221fce) @@ -1,20 +1,29 @@ -/* - * Utilities.h - * - * Created on: Aug 4, 2024 - * Author: fw - */ #ifndef __UTILITIES_H__ #define __UTILITIES_H__ #include "BLCommon.h" +/** + * @defgroup Utilities Utilities + * @brief Utilities unit contains various utility functions. + * + * @addtogroup Utilities + * @{ + */ + +// ********** public definitions ********** + #define MAX_CRC_CALC_DATA_SIZE 0x8000 ///< The maximum size of data for each CRC calculation. +// ********** public function prototypes ********** +BOOL runFWIntegrityTest( void ); + U32 crc32( U32 initialValue, U08 *address, U32 len ); -BOOL isCRCValid( U32 msgCRC, U32 calcCRC ); // TODO remove +U16 crc16( U08 *address, U32 len ); +/**@}*/ + #endif