]> rtime.felk.cvut.cz Git - arc.git/blobdiff - diagnostic/Dcm/Dcm_Internal.h
Added additions to Dcm and Dem (new tools required to use this update):
[arc.git] / diagnostic / Dcm / Dcm_Internal.h
index 590e75e09aacc3154e353e0ddaf918f8d22273cb..344036bacf3b8df9aacfd058b83c755b88ba8eae 100644 (file)
@@ -58,6 +58,7 @@
 #define SID_CLEAR_DIAGNOSTIC_INFORMATION               0x14\r
 #define SID_READ_DTC_INFORMATION                               0x19\r
 #define SID_READ_DATA_BY_IDENTIFIER                            0x22\r
+#define SID_READ_MEMORY_BY_ADDRESS                             0x23\r
 #define SID_READ_SCALING_DATA_BY_IDENTIFIER            0x24\r
 #define SID_SECURITY_ACCESS                                            0x27\r
 #define SID_READ_DATA_BY_PERIODIC_IDENTIFIER   0x2A\r
@@ -65,6 +66,7 @@
 #define SID_WRITE_DATA_BY_IDENTIFIER                   0x2E\r
 #define SID_INPUT_OUTPUT_CONTROL_BY_IDENTIFIER 0x2F\r
 #define SID_ROUTINE_CONTROL                                            0x31\r
+#define SID_WRITE_MEMORY_BY_ADDRESS                            0x3D\r
 #define SID_TESTER_PRESENT                                             0x3E\r
 #define SID_NEGATIVE_RESPONSE                                  0x7F\r
 #define SID_CONTROL_DTC_SETTING                                        0x85\r
@@ -79,6 +81,19 @@ typedef enum {
        DSD_TX_RESPONSE_SUPPRESSED\r
 } DsdProcessingDoneResultType;\r
 \r
+/*\r
+ * DCM CALLOUT\r
+ */\r
+Dcm_ReturnWriteMemoryType Dcm_WriteMemory(Dcm_OpStatusType OpStatus,\r
+                                                                                          uint8 MemoryIdentifier,\r
+                                                                                          uint32 MemoryAddress,\r
+                                                                                          uint32 MemorySize,\r
+                                                                                          uint8* MemoryData);\r
+Dcm_ReturnReadMemoryType Dcm_ReadMemory(Dcm_OpStatusType OpStatus,\r
+                                                                                          uint8 MemoryIdentifier,\r
+                                                                                          uint32 MemoryAddress,\r
+                                                                                          uint32 MemorySize,\r
+                                                                                          uint8* MemoryData);\r
 /*\r
  * DSP\r
  */\r
@@ -96,7 +111,11 @@ void DspUdsWriteDataByIdentifier(const PduInfoType *pduRxData, PduInfoType *pduT
 void DspUdsControlDtcSetting(const PduInfoType *pduRxData, PduInfoType *pduTxData);\r
 void DspUdsRoutineControl(const PduInfoType *pduRxData, PduInfoType *pduTxData);\r
 void DspDcmConfirmation(PduIdType confirmPduId);\r
-\r
+void DspUdsReadMemoryByAddress(const PduInfoType *pduRxData, PduInfoType *pduTxData);\r
+void DspUdsWriteMemoryByAddress(const PduInfoType *pduRxData, PduInfoType *pduTxData);\r
+void DspReadDataByPeriodicIdentifier(const PduInfoType *pduRxData,PduInfoType *pduTxData);\r
+void DspDynamicallyDefineDataIdentifier(const PduInfoType *pduRxData,PduInfoType *pduTxData);\r
+void DspIOControlByDataIdentifier(const PduInfoType *pduRxData,PduInfoType *pduTxData);\r
 boolean DspCheckSessionLevel(Dcm_DspSessionRowType const* const* sessionLevelRefTable);\r
 boolean DspCheckSecurityLevel(Dcm_DspSecurityRowType const* const* securityLevelRefTable);\r
 \r
@@ -130,7 +149,9 @@ void DslSetSesCtrlType(Dcm_SesCtrlType sesCtrl);
 Std_ReturnType DslGetSesCtrlType(Dcm_SesCtrlType *sesCtrlType);\r
 BufReq_ReturnType DslProvideTxBuffer(PduIdType dcmTxPduId, const PduInfoType **pduInfoPtr, PduLengthType length);\r
 void DslTxConfirmation(PduIdType dcmTxPduId, NotifResultType result);\r
+void DslInternal_ResponseOnOneDataByPeriodicId(uint8 PericodID);\r
 void DslResetSessionTimeoutTimer(void);\r
 \r
 \r
+\r
 #endif /* DCM_INTERNAL_H_ */\r