Index: Utilities.h =================================================================== diff -u -r810dd01b8fa7d5864adea6aaf13c43c61f2c889b -r1a2123e2152f5290cae14add017ca258770b2ee2 --- Utilities.h (.../Utilities.h) (revision 810dd01b8fa7d5864adea6aaf13c43c61f2c889b) +++ Utilities.h (.../Utilities.h) (revision 1a2123e2152f5290cae14add017ca258770b2ee2) @@ -1,17 +1,17 @@ /************************************************************************** * -* Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. +* Copyright (c) 2020-2022 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 +* @file Utilities.h * -* @author (last) Sean Nash -* @date (last) 04-Sep-2020 +* @author (last) Sean Nash +* @date (last) 13-Aug-2021 * -* @author (original) Sean -* @date (original) 17-Feb-2020 +* @author (original) Sean +* @date (original) 17-Feb-2020 * ***************************************************************************/ @@ -36,7 +36,6 @@ { TIME_WINDOWED_COUNT_BAD_MSG_CRC = 0, ///< Bad message CRC TIME_WINDOWED_COUNT_CAN_WARNING, ///< CAN warning - TIME_WINDOWED_COUNT_CAN_PASSIVE, ///< CAN passive mode TIME_WINDOWED_COUNT_CAN_OFF, ///< CAN off TIME_WINDOWED_COUNT_CAN_PARITY, ///< CAN parity error TIME_WINDOWED_COUNT_FPGA_UART_FRAME_ERROR, ///< FPGA UART frame error @@ -81,7 +80,8 @@ } CRITICAL_DATA_T; // ********** public function prototypes ********** - + +U32 crc32( U32 const initialValue, const U08 *address, U32 len ); U16 crc16( const U08 *address, U32 len ); U08 crc8( const U08 *address, U32 len ); U32 u32DiffWithWrap( U32 start, U32 end ); @@ -94,7 +94,8 @@ BOOL setCriticalData( CRITICAL_DATA_T *data, CRITICAL_DATAS_T value ); BOOL isCriticalDataInRange( CRITICAL_DATA_T *data ); void resetCriticalData( CRITICAL_DATA_T *data ); -U32 hexStrToDec( U08 const * const valuePtr, U08 size ); +U32 hexStrToDec( U08 const * const valuePtr, U08 size ); +BOOL isCriticalDataSet( CRITICAL_DATA_T *data ); ///< Determines if critcal data has been set. /**@}*/