Index: firmware/App/Services/Utilities.h =================================================================== diff -u -rf2652e85c8676d0356fea2690cfd9cac716ca795 -r5acce83ec629eff9621c0193fae57b7b63ad8de8 --- firmware/App/Services/Utilities.h (.../Utilities.h) (revision f2652e85c8676d0356fea2690cfd9cac716ca795) +++ firmware/App/Services/Utilities.h (.../Utilities.h) (revision 5acce83ec629eff9621c0193fae57b7b63ad8de8) @@ -1,20 +1,43 @@ -/* - * Utilities.h - * - * Created on: Aug 4, 2024 - * Author: fw - */ +/************************************************************************** +* +* Copyright (c) 2024-2026 Diality Inc. - All Rights Reserved. +* +* THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN +* WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. +* +* @file Utilities.h +* +* @author (last) Dara Navaei +* @date (last) 20-Apr-2026 +* +* @author (original) Dara Navaei +* @date (original) 06-Aug-2024 +* +***************************************************************************/ #ifndef __UTILITIES_H__ #define __UTILITIES_H__ #include "BLCommon.h" -#define MAX_CRC_CALC_DATA_SIZE 0x8000 ///< The maximum size of data for each CRC calculation. +/** + * @defgroup Utilities Utilities + * @brief Utilities unit contains various utility functions. + * + * @addtogroup Utilities + * @{ + */ +// ********** public definitions ********** +// ********** public function prototypes ********** + +BOOL runFWIntegrityTest( U32 crcTableAddress ); + U32 crc32( U32 initialValue, U08 *address, U32 len ); -BOOL isCRCValid( U32 msgCRC, U32 calcCRC ); // TODO remove +U16 crc16( U08 *address, U32 len ); +/**@}*/ + #endif