Version 9 (modified by 17 months ago) ( diff ) | ,
---|
Diagnostic Communication Manager
概要
- DiagnosticCommunication(診断)に関する解説サイト
- API一覧
- エラーコード一覧
エラーコード Dec Hex R4.2.2 DCM_E_INTERFACE_TIMEOUT 1 0x01 ○ DCM_E_INTERFACE_RETURN_VALUE 2 0x02 ○ DCM_E_INTERFACE_BUFFER_OVERFLOW 3 0x03 ○ DCM_E_UNINIT 5 0x05 ○ DCM_E_PARAM 6 0x06 ○ DCM_E_PARAM_POINTER 7 0x07 ○ DCM_E_INIT_FAILED 8 0x08 ○ DCM_E_SET_PROG_CONDITIONS_FAIL 9 0x09 ○
API仕様
Dcm_Init
void Dcm_Init(const Dcm_ConfigType* ConfigPtr)
Dcm_GetVersionInfo
void Dcm_GetVersionInfo(Std_VersionInfoType* versionInfo)
Dcm_DemTriggerOnDTCStatus
Std_ReturnType Dcm_DemTriggerOnDTCStatus(uint32 DTC, Dem_UdsStatusByteType DTCStatusOld, Dem_UdsStatusByteType DTCStatusNew)
Dcm_GetVin
Std_ReturnType Dcm_GetVin(uint8* Data)
Dcm_GetSecurityLevel
Std_ReturnType Dcm_GetSecurityLevel(Dcm_SecLevelType* SecLevel)
Dcm_GetSesCtrlType
Std_ReturnType Dcm_GetSesCtrlType(Dcm_SesCtrlType* SesCtrlType)
Dcm_GetActiveProtocol
Std_ReturnType Dcm_GetActiveProtocol(Dcm_ProtocolType* ActiveProtocol)
Dcm_ResetToDefaultSession
Std_ReturnType Dcm_ResetToDefaultSession(void)
Dcm_TriggerOnEvent
Std_ReturnType Dcm_TriggerOnEvent(uint8 RoeEventId)
Dcm_SetActiveDiagnostic
Std_ReturnType Dcm_SetActiveDiagnostic(boolean active)
Dcm_StartOfReception
BufReq_ReturnType Dcm_StartOfReception(PduIdType id, const PduInfoType* info, PduLengthType TpSduLength, PduLengthType* bufferSizePtr)
Dcm_CopyRxData
BufReq_ReturnType Dcm_CopyRxData(PduIdType id, const PduInfoType* info, PduLengthType* bufferSizePtr)
Dcm_TpRxIndication
void Dcm_TpRxIndication(PduIdType id, Std_ReturnType result)
Dcm_CopyTxData
BufReq_ReturnType Dcm_CopyTxData(PduIdType id, const PduInfoType* info, RetryInfoType* retry, PduLengthType* availableDataPtr)
Dcm_TpTxConfirmation
void Dcm_TpTxConfirmation(PduIdType id, Std_ReturnType result)
Dcm_TxConfirmation
void Dcm_TxConfirmation(PduIdType TxPduId)
Dcm_ComM_NoComModeEntered
void Dcm_ComM_NoComModeEntered(uint8 NetworkId)
Dcm_ComM_SilentComModeEntered
void Dcm_ComM_SilentComModeEntered(uint8 NetworkId)
Dcm_ComM_FullComModeEntered
void Dcm_ComM_FullComModeEntered(uint8 NetworkId)
Dcm_ReadMemory
Dcm_ReturnReadMemoryType Dcm_ReadMemory(Dcm_OpStatusType OpStatus, uint8 MemoryIdentifier, uint32 MemoryAddress, uint32 MemorySize, uint8* MemoryData, Dcm_NegativeResponseCodeType* ErrorCode)
Dcm_WriteMemory
Dcm_ReturnWriteMemoryType Dcm_WriteMemory(Dcm_OpStatusType OpStatus, uint8 MemoryIdentifier, uint32 MemoryAddress, uint32 MemorySize, uint8* MemoryData, Dcm_NegativeResponseCodeType* ErrorCode)
Dcm_SetProgConditions
Std_ReturnType Dcm_SetProgConditions(Dcm_OpStatusType OpStatus, Dcm_ProgConditionsType * ProgConditions)
Dcm_GetProgConditions
Dcm_EcuStartModeType Dcm_GetProgConditions(Dcm_ProgConditionsType * ProgConditions)
Dcm_ProcessRequestTransferExit
Std_ReturnType Dcm_ProcessRequestTransferExit(Dcm_OpStatusType OpStatus, uint8* transferRequestParameterRecord, uint32 transferRequestParameterRecordSize, uint8* transferResponseParameterRecord, uint32* transferResponseParameterRecordSize, Dcm_NegativeResponseCodeType* ErrorCode)
Dcm_ProcessRequestUpload
Std_ReturnType Dcm_ProcessRequestUpload(Dcm_OpStatusType OpStatus, uint8 DataFormatIdentifier, uint32 MemoryAddress, uint32 MemorySize, uint32* BlockLength, Dcm_NegativeResponseCodeType* ErrorCode)
Dcm_ProcessRequestDownload
Std_ReturnType Dcm_ProcessRequestDownload(Dcm_OpStatusType OpStatus, uint8 DataFormatIdentifier, uint32 MemoryAddress, uint32 MemorySize, uint32* BlockLength, Dcm_NegativeResponseCodeType* ErrorCode)
Dcm_ProcessRequestFileTransfer
Std_ReturnType Dcm_ProcessRequestFileTransfer(Dcm_OpStatusType OpStatus, uint8 modeofOperation, uint16 fileSizeParameterLength, uint8* filePathAndName, uint8 dataFormatIdentifier, uint8* fileSizeUncompressedOrDirInfoLength, uint8* fileSizeCompressed, uint32* BlockLength, Dcm_NegativeResponseCodeType* ErrorCode)
Dcm_MainFunction
void Dcm_MainFunction(void)
Xxx_GetSeed
Std_ReturnType Xxx_GetSeed(Dcm_OpStatusType OpStatus, uint8* Seed, Dcm_NegativeResponseCodeType* ErrorCode)
Xxx_CompareKey
Std_ReturnType Xxx_CompareKey(const uint8* Key, Dcm_OpStatusType OpStatus, Dcm_NegativeResponseCodeType* ErrorCode)
Xxx_GetSecurityAttemptCounter
Std_ReturnType Xxx_GetSecurityAttemptCounter(Dcm_OpStatusType OpStatus, uint8* AttemptCounter)
Xxx_SetSecurityAttemptCounter
Std_ReturnType Xxx_SetSecurityAttemptCounter(Dcm_OpStatusType OpStatus, uint8 AttemptCounter)
Xxx_ReadData
Std_ReturnType Xxx_ReadData(Dcm_OpStatusType OpStatus, uint8* Data, Dcm_NegativeResponseCodeType* ErrorCode)
Xxx_WriteData
Std_ReturnType Xxx_WriteData(uint8* Data, uint16 DataLength, Dcm_OpStatusType OpStatus, Dcm_NegativeResponseCodeType* ErrorCode)
Xxx_ReadDataLength
Std_ReturnType Xxx_ReadDataLength(Dcm_OpStatusType OpStatus, uint16* DataLength)
Xxx_ConditionCheckRead
Std_ReturnType Xxx_ConditionCheckRead(Dcm_OpStatusType OpStatus, Dcm_NegativeResponseCodeType* ErrorCode)
Xxx_GetScalingInformation
Std_ReturnType Xxx_GetScalingInformation(Dcm_OpStatusType OpStatus, uint8* ScalingInfo, Dcm_NegativeResponseCodeType* ErrorCode)
Xxx_ReturnControlToECU
Std_ReturnType Xxx_ReturnControlToECU([Dcm_ControlMask_{Data} controlMask,] Dcm_NegativeResponseCodeType* ErrorCode)
Xxx_ResetToDefault
Std_ReturnType Xxx_ResetToDefault(Dcm_OpStatusType OpStatus, [Dcm_ControlMask_{Data} controlMask,] Dcm_NegativeResponseCodeType* ErrorCode)
Xxx_FreezeCurrentState
Std_ReturnType Xxx_FreezeCurrentState(Dcm_OpStatusType OpStatus, [Dcm_ControlMask_{Data} controlMask,] Dcm_NegativeResponseCodeType* ErrorCode)
Xxx_ShortTermAdjustment
Std_ReturnType Xxx_ShortTermAdjustment(uint8* ControlStateInfo, uint16 DataLength, Dcm_OpStatusType OpStatus, [Dcm_ControlMask_{Data} controlMask,] Dcm_NegativeResponseCodeType* ErrorCode)
Xxx_IsDidAvailable
Std_ReturnType Xxx_IsDidAvailable(uint16 DID, Dcm_OpStatusType OpStatus, Dcm_DidSupportedType* supported)
Xxx_ReadDidData
Std_ReturnType Xxx_ReadDidData(uint16 DID, uint8* Data, Dcm_OpStatusType OpStatus, uint16 DataLength, Dcm_NegativeResponseCodeType ErrorCode)
Xxx_WriteDidData
Std_ReturnType Xxx_WriteDidData(uint16 DID, uint8* Data, Dcm_OpStatusType OpStatus, uint16 DataLength, Dcm_NegativeResponseCodeType ErrorCode)
Xxx_ReadDidRangeDataLength
Std_ReturnType Xxx_ReadDidRangeDataLength(uint16 DID, Dcm_OpStatusType OpStatus, uint16* DataLength)
Xxx_Start
Std_ReturnType Xxx_Start([DcmDspRoutineSignalType dataIn_1,] ... [DcmDspRoutineSignalType dataIn_n,] [const uint8* dataInVar,] Dcm_OpStatusType OpStatus, [DcmDspRoutineSignalType dataOut_1,] ... [DcmDspRoutineSignalType dataOut_n,] [uint8* dataOutVar,] [uint16 currentLengthDataInVar,] [uint16* currentLengthDataOutVar,] Dcm_NegativeResponseCodeType ErrorCode)
Xxx_Stop
Std_ReturnType Xxx_Stop([DcmDspRoutineSignalType dataIn_1,] ... [DcmDspRoutineSignalType dataIn_n,] [const uint8* dataInVar,] [DcmDspRoutineSignalType dataOut_1,] ... [DcmDspRoutineSignalType dataOut_n,] [uint8* dataOutVar,] [uint16 currentLengthDataInVar,] [uint16* currentLengthDataOutVar,] Dcm_NegativeResponseCodeType* ErrorCode)
Xxx_RequestResults
Std_ReturnType Xxx_RequestResults(Dcm_OpStatusType OpStatus, [DcmDspRoutineSignalType* dataOut_1,] ... [DcmDspRoutineSignalType* dataOut_n,] [uint8* dataOutVar,] [uint16* currentLengthDataOutVar,] Dcm_NegativeResponseCodeType* ErrorCode)
Xxx_ClearDTCCheckFnc
Std_ReturnType Xxx_ClearDTCCheckFnc(uint32 GoDTC, Dcm_NegativeResponseCodeType* ErrorCode)
コンフィギュレーション仕様
Note:
See TracWiki
for help on using the wiki.