wiki:spec_DiagnosticLogAndTrace
Diagnostic Log And Trace


概要

  • API一覧
API ID
[Dec]
ID
[Hex]
Dlt_Init 1 0x01
Dlt_GetVersionInfo 2 0x02
Dlt_SendLogMessage 3 0x03
Dlt_SendTraceMessage 4 0x04
Dlt_RegisterContext 5 0x05
Dlt_DemTriggerOnEventStatus 21 0x15
Dlt_DetForwardErrorTrace 7 0x07
Dlt_ActivateEvent 17 0x11
Dlt_ReadData 8 0x08
Dlt_ReadDataLength 9 0x09
Dlt_WriteData 10 0x0A
Dlt_ConditionCheckRead 11 0x0B
Dlt_ComProvideRxBuffer 13 0x0D
Dlt_ComProvideTxBuffer 14 0x0E
Dlt_ComRxIndication 15 0x0F
Dlt_ComTxConfirmation 16 0x10
Dlt_SetLogLevel_<SESSION> 17 0x11
Dlt_SetTraceStatus_<SESSION> 18 0x12
Dlt_SetVerboseMode_<SESSION> 19 0x13
Dlt_InjectCall_<SESSION> 20 0x14
Dlt_ComTransmit 18 0x12
Dlt_ComCancelTransmitRequest 19 0x13
Dlt_ComSetInterfaceStatus 20 0x14
  • エラーコード一覧
エラーコード Dec Hex
DLT_E_WRONG_PARAMETERS 1 0x01
DLT_E_ERROR_IN_PROV_SERVICE 2 0x02
DLT_E_COM_FAILURE 3 0x03
DLT_E_ERROR_TO_MANY_CONTEXT 4 0x04
DLT_E_MSG_LOOSE 5 0x05
DLT_E_PARAM_POINTER 6 0x06

API仕様

Dlt_Init

void Dlt_Init(const Dlt_ConfigType* config)

Dlt_GetVersionInfo

void Dlt_GetVersionInfo(Std_VersionInfoType* versioninfo)

Dlt_SendLogMessage

Dlt_ReturnType Dlt_SendLogMessage(Dlt_SessionIDType session_id, const Dlt_MessageLogInfoType* log_info, const uint8* log_data, uint16 log_data_length)

Dlt_SendTraceMessage

Dlt_ReturnType Dlt_SendTraceMessage(Dlt_SessionIDType session_id, const Dlt_MessageTraceInfoType* trace_info, const uint8* trace_data, uint16 trace_data_length)

Dlt_RegisterContext

Dlt_ReturnType Dlt_RegisterContext(Dlt_SessionIDType session_id, Dlt_ApplicationIDType app_id, Dlt_ContextIDType context_id, const uint8* app_description, uint8 len_app_description, const uint8* context_description, uint8 len_context_description)

Dlt_DemTriggerOnEventStatus

void Dlt_DemTriggerOnEventStatus(Dem_EventIdType EventId, Dem_EventStatusExtendedType EventStatusOld, Dem_EventStatusExtendedType EventStatusNew)

Dlt_DetForwardErrorTrace

void Dlt_DetForwardErrorTrace(uint16 ModuleId, uint8 InstanceId, uint16 ApiId, uint8 ErrorId)

Dlt_ActivateEvent

Std_ReturnType Dlt_ActivateEvent(uint8 RoeEventID, Dcm_RoeStateType RoeState)

Dlt_ReadData

Std_ReturnType Dlt_ReadData(Dcm_OpStatusType OpStatus, uint8* data)

Dlt_ReadDataLength

Std_ReturnType Dlt_ReadDataLength(uint16* DataLength)

Dlt_WriteData

Std_ReturnType Dlt_WriteData(uint8* data, uint16 dataLength, Dcm_OpStatusType OpStatus, Dcm_NegativeResponseCodeType* ErrorCode)

Dlt_ConditionCheckRead

Std_ReturnType Dlt_ConditionCheckRead(Dcm_OpStatusType OpStatus, Dcm_NegativeResponseCodeType* ErrorCode)

Dlt_ComProvideRxBuffer

BufReq_ReturnType Dlt_ComProvideRxBuffer(PduIdType DltRxPduId, PduLengthType TpSduLength, PduInfoType** PduInfoPtr)

Dlt_ComProvideTxBuffer

BufReq_ReturnType Dlt_ComProvideTxBuffer(PduIdType DltTxPduId, PduInfoType** PduInfoPtr, uint16 Length)

Dlt_ComRxIndication

void Dlt_ComRxIndication(PduIdType DltRxPduId, NotifResultType Result)

Dlt_ComTxConfirmation

void Dlt_ComTxConfirmation(PduIdType DltTxPduId, NotifResultType Result)

Dlt_SetLogLevel_<SESSION>

void Dlt_SetLogLevel_<SESSION>(Dlt_ApplicationIDType app_id, Dlt_ContextIDType context_id, Dlt_MessageLogLevelType loglevel)

Dlt_SetTraceStatus_<SESSION>

void Dlt_SetTraceStatus_<SESSION>(Dlt_ApplicationIDType app_id, Dlt_ContextIDType context_id, boolean new_trace_status)

Dlt_SetVerboseMode_<SESSION>

void Dlt_SetVerboseMode_<SESSION>(Dlt_ApplicationIDType app_id, Dlt_ContextIDType context_id, boolean is_verbose_mode)

Dlt_InjectCall_<SESSION>

void Dlt_InjectCall_<SESSION>(Dlt_ApplicationIDType app_id, Dlt_ContextIDType context_id, uint32 service_id, uint32 data_length, const uint8* data)

Dlt_ComTransmit

Std_ReturnType Dlt_ComTransmit(PduIdType DltTxPduId, PduInfoType* PduInfoPtr)

Dlt_ComCancelTransmitRequest

Std_ReturnType Dlt_ComCancelTransmitRequest(PduIdType PduId)

Dlt_ComSetInterfaceStatus

Dlt_ReturnType Dlt_ComSetInterfaceStatus(uint8[4] com_interface, uint8 new_status)

コンフィギュレーション仕様

DltGeneral

/AUTOSAR/EcucDefs/Dlt/DltGeneral
  • 型:Container
  • 多重度:1

DltDevErrorDetect

/AUTOSAR/EcucDefs/Dlt/DltGeneral/DltDevErrorDetect
  • 型:BooleanParam
  • 多重度:1

DltImplementAppIdContextIdQuery

/AUTOSAR/EcucDefs/Dlt/DltGeneral/DltImplementAppIdContextIdQuery
  • 型:BooleanParam
  • 多重度:1

DltImplementExtendedHeader

/AUTOSAR/EcucDefs/Dlt/DltGeneral/DltImplementExtendedHeader
  • 型:BooleanParam
  • 多重度:1

DltImplementFilterMessages

/AUTOSAR/EcucDefs/Dlt/DltGeneral/DltImplementFilterMessages
  • 型:BooleanParam
  • 多重度:1

DltImplementNVRamStorage

/AUTOSAR/EcucDefs/Dlt/DltGeneral/DltImplementNVRamStorage
  • 型:BooleanParam
  • 多重度:1

DltImplementSWCInjection

/AUTOSAR/EcucDefs/Dlt/DltGeneral/DltImplementSWCInjection
  • 型:BooleanParam
  • 多重度:1

DltImplementTimestamp

/AUTOSAR/EcucDefs/Dlt/DltGeneral/DltImplementTimestamp
  • 型:BooleanParam
  • 多重度:1

DltImplementVerboseMode

/AUTOSAR/EcucDefs/Dlt/DltGeneral/DltImplementVerboseMode
  • 型:BooleanParam
  • 多重度:1

DltImplementVfbTrace

/AUTOSAR/EcucDefs/Dlt/DltGeneral/DltImplementVfbTrace
  • 型:BooleanParam
  • 多重度:1

DltVfbTraceLogLevel

/AUTOSAR/EcucDefs/Dlt/DltGeneral/DltVfbTraceLogLevel
  • 型:IntegerParam
  • 多重度:1

DltGptChannel

/AUTOSAR/EcucDefs/Dlt/DltGeneral/DltGptChannel
  • 型:Reference
  • 多重度:1

DltMemory

/AUTOSAR/EcucDefs/Dlt/DltMemory
  • 型:Container
  • 多重度:1

DltInitBufferSize

/AUTOSAR/EcucDefs/Dlt/DltMemory/DltInitBufferSize
  • 型:IntegerParam
  • 多重度:1

DltMaxCountAppIds

/AUTOSAR/EcucDefs/Dlt/DltMemory/DltMaxCountAppIds
  • 型:IntegerParam
  • 多重度:1

DltMaxCountContextIds

/AUTOSAR/EcucDefs/Dlt/DltMemory/DltMaxCountContextIds
  • 型:IntegerParam
  • 多重度:1

DltMaxCountContextIdsPerAppId

/AUTOSAR/EcucDefs/Dlt/DltMemory/DltMaxCountContextIdsPerAppId
  • 型:IntegerParam
  • 多重度:1

DltMessageBufferSize

/AUTOSAR/EcucDefs/Dlt/DltMemory/DltMessageBufferSize
  • 型:IntegerParam
  • 多重度:1

DltMultipleConfigurationContainer

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer
  • 型:Container
  • 多重度:1

DltNvRamBlockRef

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer/DltNvRamBlockRef
  • 型:Reference
  • 多重度:1

DltBandwidth

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer/DltBandwidth
  • 型:Container
  • 多重度:1

DltBandwidthForComModule

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer/DltBandwidth/DltBandwidthForComModule
  • 型:IntegerParam
  • 多重度:1

DltBandwidthForDiagChannel

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer/DltBandwidth/DltBandwidthForDiagChannel
  • 型:IntegerParam
  • 多重度:1

DltTimePeriodTrafficShaping

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer/DltBandwidth/DltTimePeriodTrafficShaping
  • 型:FloatParam
  • 多重度:1

DltMessageFiltering

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer/DltMessageFiltering
  • 型:Container
  • 多重度:1

DltDefaultMaxLogLevel

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer/DltMessageFiltering/DltDefaultMaxLogLevel
  • 型:IntegerParam
  • 多重度:1

DltDefaultTraceStatus

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer/DltMessageFiltering/DltDefaultTraceStatus
  • 型:BooleanParam
  • 多重度:1

DltFactoryDefaultMaxLogLevel

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer/DltMessageFiltering/DltFactoryDefaultMaxLogLevel
  • 型:IntegerParam
  • 多重度:1

DltFilterMessages

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer/DltMessageFiltering/DltFilterMessages
  • 型:BooleanParam
  • 多重度:1

DltProtocol

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer/DltProtocol
  • 型:Container
  • 多重度:1

DltEcuId

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer/DltProtocol/DltEcuId
  • 型:StringParam
  • 多重度:1

DltHeaderPayloadEndianes

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer/DltProtocol/DltHeaderPayloadEndianes
  • 型:EnumerationParam
  • 多重度:1

DltHeaderUseEcuId

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer/DltProtocol/DltHeaderUseEcuId
  • 型:BooleanParam
  • 多重度:1

DltHeaderUseExtendedHeader

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer/DltProtocol/DltHeaderUseExtendedHeader
  • 型:BooleanParam
  • 多重度:1

DltHeaderUseSessionID

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer/DltProtocol/DltHeaderUseSessionID
  • 型:BooleanParam
  • 多重度:1

DltHeaderUseTimestamp

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer/DltProtocol/DltHeaderUseTimestamp
  • 型:BooleanParam
  • 多重度:1

DltMaxMessageLength

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer/DltProtocol/DltMaxMessageLength
  • 型:IntegerParam
  • 多重度:1

DltUseVerboseMode

/AUTOSAR/EcucDefs/Dlt/DltMultipleConfigurationContainer/DltProtocol/DltUseVerboseMode
  • 型:BooleanParam
  • 多重度:1

DltVfbTrace

/AUTOSAR/EcucDefs/Dlt/DltVfbTrace
  • 型:Container
  • 多重度:0..*

DltVfbTraceFunction

/AUTOSAR/EcucDefs/Dlt/DltVfbTrace/DltVfbTraceFunction
  • 型:FunctionName
  • 多重度:1

DltBswModuleEntryRef

/AUTOSAR/EcucDefs/Dlt/DltVfbTrace/DltBswModuleEntryRef
  • 型:Reference
  • 多重度:1
Last modified 3 years ago Last modified on 12/11/14 18:21:48