Index: firmware/App/Services/SystemCommTD.c =================================================================== diff -u -r01892698468068bb97a80a84c96a6d7c5d6fde9b -r3b3713c0d5445b83f339021972728ff58bd3e6e5 --- firmware/App/Services/SystemCommTD.c (.../SystemCommTD.c) (revision 01892698468068bb97a80a84c96a6d7c5d6fde9b) +++ firmware/App/Services/SystemCommTD.c (.../SystemCommTD.c) (revision 3b3713c0d5445b83f339021972728ff58bd3e6e5) @@ -293,6 +293,23 @@ /*********************************************************************//** * @brief + * The checkTooManyBadMsgCRCs function checks for too many bad message CRCs + * within a set period of time. Assumed function is being called when a new + * bad CRC is detected so a new bad CRC will be added to the list. + * @details Inputs: badCRCTimeStamps[], badCRCListIdx, badCRCListCount + * @details Outputs: possibly a "too many bad CRCs" alarm + * @return none + *************************************************************************/ +void checkTooManyBadMsgCRCs( void ) +{ + if ( TRUE == incTimeWindowedCount( TIME_WINDOWED_COUNT_BAD_MSG_CRC ) ) + { + SET_ALARM_WITH_1_U32_DATA( ALARM_ID_TD_COMM_TOO_MANY_BAD_CRCS, (U32)ALARM_SOURCE_TD ); + } +} + +/*********************************************************************//** + * @brief * The getInBufferID function gets the buffer ID for a given buffer index. * @details Inputs: CAN_IN_BUFFERS[] * @details Outputs: none