文档介绍
目的
适用范围
读者对象
参考文档
术语和缩写
DCM模块
功能概述
输入条件
模块关系图
文件组成
内核文件
Dcm.h
Dcm _Types.h
Dcm.c
Dcm_Cbk.h
Dcm_Cbk.c
配置文件
Dcm_Cfg.h
Dcm_Cfg.c
Dcm_Lcfg.c
应用程序回调函数文件
App_Dcm.h
App_Dcm.c
资源占用
接口函数使用说明
DCM与CanTp接口
Dcm_StartOfReception
Dcm_CopyRxData
Dcm_CopyTxData
Dcm_RxIndication
Dcm_TxConfirmation
DCM与应用程序接口
Dcm_Init
Dcm_MainFunction
DsdInternal_ProcessingDone
DsdInternal_SetNegResponse
DslInternal_RCRResponsePending
DsdInternal_ProcessingDoneNoResponse
Dcm_GetSecurityLevel
Dcm_GetSesCtrlType
Dcm_ResetToDefaultSession
DsdInternal_SecurityAccessKeyCompared
DsdInternal_RoutineStarted
应用程序回调函数接口
App_DiagnosticActive
App_DefaultSession
App_DefaultSessionPost
App_ExtendedSession
App_ExtendedSessionPost
App_HardReset
App_HardResetPost
App_ClearDiagnosticInformation
App_ReportNumberOfDTCByStatusMask
App_ReportDTCByStatusMask
App_ReportDTCSnapshortRecordByDTCNumber
App_ReportDTCExtendedDataRecordByDTCNumber
App_ReportSupportedDTC
App_Read<0xF010>
App_GetSeed_L<1>
App_CompareKey_L<1>
App_EnableRxAndTx
App_EnableRxAndDisableTx
App_DisableRxAndTx
App_Write<0xF010>
AppRoutinControlStart<0x5800>
AppRoutinControlStop<0x5800>
AppRoutinControlResult<0x5800>
App_DTCRecordOn
App_DTCRecordOff
App_ShortTermAdjustment_<0x5001>
App_ReturnControlToEcu_<0x5001>
配置参数使用说明
Pre-Compile配置参数(宏)表
Pre-Compile配置参数(变量)
const uint8* gCurrentSidMap
const DcmDsdServiceTable* gCurrentDcmDsdServiceTable
const uint32 gCurentDcmDsdServiceTableSize
const DcmDsdSubService gDcmDsdSubService
Link-Time配置参数
const uint32 gDcmDspNonDefaultSessionS3Server
const DcmDspSessionRow gDcmDspSessionRow
const DcmDspSecurityRow gDcmDspSecurityRow
const uint16 DcmDspMaxDidToRead
const Dcm_22_ServiceInfoType gDcmDsdSubService_22
const uint8 gMemoryAddressFormat
const uint8 gMemorySizeFormat
const DcmDspReadMemoryRangeInfo gDcmDspReadMemoryRangeInfo_23
const Dcm_24_ServiceInfoType gDcmDsdSubService_24
const Dcm_2A_ServiceInfoType gDcmDsdSubService_2A
const Dcm_2C_ServiceInfoType gDcmDsdSubService_2C
const Dcm_2E_ServiceInfoType gDcmDsdSubService_2E
const Dcm_2F_ServiceInfoType gDcmDsdSubService_2F
const DcmDspRoutine DcmDspRoutineIdentifierTable_31
const DcmDspWriteMemoryRangeInfo gDcmDspWriteMemoryRangeInfo_3D
时序图
单帧请求单帧肯定响应
单帧请求否定响应
单帧请求多帧肯定响应
多帧请求单帧肯定响应
多帧请求否定响应
多帧请求多帧肯定响应
需要较长处理时间的诊断回调函数
注意事项
源代码示例
软件局限性