DTC Management
Description
The ramn_dtc module contains various function to generate and access DTCs (Diagnostic Trouble Codes) generated by the ECUs.
//Inits the module
RAMN_Result_t RAMN_DTC_Init();
//This function Enable/Disables the recording of new DTC. Required by UDS to prevent warnings during diagnostics.
void RAMN_DTC_SetRecordingStatus(RAMN_Bool_t status);
//Clears all DTC
RAMN_Result_t RAMN_DTC_ClearAll();
//Retrieve the DTC at specified index
RAMN_Result_t RAMN_DTC_GetIndex(uint32_t dtc_index, uint32_t* pval);
//Add a New DTC
RAMN_Result_t RAMN_DTC_AddNew(uint32_t dtc_val);
//Returns the current number of DTC in memory
RAMN_Result_t RAMN_DTC_GetNumberOfDTC(uint32_t* pDtcNum);