AUTOSAR - 接口

Application Port Interface,Service Port Interface,除了IS-SERVICE字段外,其余都相同。

ClientServer

        支持IsService

<CLIENT-SERVER-INTERFACE UUID="523b6eb5-6814-4b10-893e-de3aa9b68b90">
  <SHORT-NAME>app_cs_1</SHORT-NAME>
  <IS-SERVICE>false</IS-SERVICE>
  <OPERATIONS>
    <CLIENT-SERVER-OPERATION UUID="28ffbc0d-ae6f-46bd-8a30-4dcafe483869">
      <SHORT-NAME>op1</SHORT-NAME>
      <ARGUMENTS>
        <ARGUMENT-DATA-PROTOTYPE UUID="0841c0e0-cde8-413a-838b-9cedbbaf4fad">
          <SHORT-NAME>arg1</SHORT-NAME>
          <SW-DATA-DEF-PROPS>
            <SW-DATA-DEF-PROPS-VARIANTS>
              <SW-DATA-DEF-PROPS-CONDITIONAL>
                <SW-CALIBRATION-ACCESS>NOT-ACCESSIBLE</SW-CALIBRATION-ACCESS>
              </SW-DATA-DEF-PROPS-CONDITIONAL>
            </SW-DATA-DEF-PROPS-VARIANTS>
          </SW-DATA-DEF-PROPS>
          <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/ImplementationDataTypes/boolean</TYPE-TREF>
          <DIRECTION>IN</DIRECTION>
          <SERVER-ARGUMENT-IMPL-POLICY>USE-ARGUMENT-TYPE</SERVER-ARGUMENT-IMPL-POLICY>
        </ARGUMENT-DATA-PROTOTYPE>
      </ARGUMENTS>
      <POSSIBLE-ERROR-REFS>
        <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/PortInterfaces/app_cs_1/error1</POSSIBLE-ERROR-REF>
        <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/PortInterfaces/app_cs_1/error3</POSSIBLE-ERROR-REF>
      </POSSIBLE-ERROR-REFS>
    </CLIENT-SERVER-OPERATION>
  </OPERATIONS>
  <POSSIBLE-ERRORS>
    <APPLICATION-ERROR UUID="d894fc6a-8067-4726-bc17-104023d0eb5d">
      <SHORT-NAME>error1</SHORT-NAME>
      <ERROR-CODE>1</ERROR-CODE>
    </APPLICATION-ERROR>
    <APPLICATION-ERROR UUID="56e95a0f-8578-464a-b4b4-f9bf19184583">
      <SHORT-NAME>error2</SHORT-NAME>
      <ERROR-CODE>2</ERROR-CODE>
    </APPLICATION-ERROR>
    <APPLICATION-ERROR UUID="75f9f9d2-d84e-40ba-9df0-1f4bcf521e79">
      <SHORT-NAME>error3</SHORT-NAME>
      <ERROR-CODE>3</ERROR-CODE>
    </APPLICATION-ERROR>
  </POSSIBLE-ERRORS>
</CLIENT-SERVER-INTERFACE>
字段约束介绍

IS-SERVICE

false/true表示其是否是service接口

OPERATIONS

 CLIENT-SERVER-OPERATION

定义方法

ARGUMENTS

  ARGUMENT-DATA-PROTOTYPE

定义方法中参数

SW-CALIBRATION-ACCESS

NotAccessible

ReadOnly

ReadWrite

TYPE-TREF

引用IDT ADT

DIRECTION

IN

OUT

INOUT

SERVER-ARGUMENT-IMPL-POLICY

UseArgumentType

UseVoid

POSSIBLE-ERROR-REFS

 POSSIBLE-ERROR-REF

本接口内定义引用异常

POSSIBLE-ERRORS

 APPLICATION-ERROR

定义异常

SHORT-NAME

异常名

ERROR-CODE

0~63,0表示E_OK

异常值

        UML

SenderReceiver

        支持IsService

<SENDER-RECEIVER-INTERFACE UUID="0f101725-2a72-492b-96e3-7d8824002f1a">
  <SHORT-NAME>app_sr_1</SHORT-NAME>
  <IS-SERVICE>false</IS-SERVICE>
  <DATA-ELEMENTS>
    <VARIABLE-DATA-PROTOTYPE UUID="42e38dc4-b0c9-4789-ad8f-77460b69d8d9">
      <SHORT-NAME>element1</SHORT-NAME>
      <SW-DATA-DEF-PROPS>
        <SW-DATA-DEF-PROPS-VARIANTS>
          <SW-DATA-DEF-PROPS-CONDITIONAL>
            <SW-CALIBRATION-ACCESS>NOT-ACCESSIBLE/READ-ONLY/READ-WRITE</SW-CALIBRATION-ACCESS>
            <DATA-CONSTR-REF DEST="DATA-CONSTR">/DataConstrs/data_contraint_1</DATA-CONSTR-REF>
            <SW-IMPL-POLICY>STANDARD/QUEUED</SW-IMPL-POLICY>
          </SW-DATA-DEF-PROPS-CONDITIONAL>
        </SW-DATA-DEF-PROPS-VARIANTS>
      </SW-DATA-DEF-PROPS>
      <TYPE-TREF DEST="APPLICATION-PRIMITIVE-DATA-TYPE">/ApplicationDataTypes/adt_value_1</TYPE-TREF>
    </VARIABLE-DATA-PROTOTYPE>
  </DATA-ELEMENTS>
  <INVALIDATION-POLICYS>
    <INVALIDATION-POLICY>
      <DATA-ELEMENT-REF DEST="VARIABLE-DATA-PROTOTYPE">/PortInterfaces/app_sr_1/element1</DATA-ELEMENT-REF>
      <HANDLE-INVALID>KEEP/REPLACE/DONT-INVALIDATE</HANDLE-INVALID>
    </INVALIDATION-POLICY>
  </INVALIDATION-POLICYS>
</SENDER-RECEIVER-INTERFACE>
字段约束介绍

IS-SERVICE

false/true表示其是否是service接口

DATA-ELEMENTS

  VARIABLE-DATA-PROTOTYPE

DATA-CONSTR-REF

引用 IDT ADT

SW-IMPL-POLICY

STANDARD

QUEUED

队列方式接收/以最后收到的为准,勾选后下列两项不可选择

SW-CALIBRATION-ACCESS

NOT-ACCESSIBLE

READ-ONLY

READ-WRITE

INVALIDATION-POLICY

DATA-ELEMENT-REF

HANDLE-INVALID

KEEP

REPLACE

DONT-INVALIDATE

继续交给SWC处理

用初始值替换

不做检测

ModeSwitch

        支持IsService,一般BswM和EcuM用

<MODE-SWITCH-INTERFACE UUID="9298E917-3159-408C-B1EA-39B5803F2EA5">
  <SHORT-NAME>mode_app</SHORT-NAME>
  <IS-SERVICE>false</IS-SERVICE>
  <MODE-GROUP UUID="20E5B70B-F210-4F72-8501-5D5016862E69">
    <SHORT-NAME>Mode</SHORT-NAME>
    <TYPE-TREF DEST="MODE-DECLARATION-GROUP">/ModeDclrGroups/B</TYPE-TREF>
  </MODE-GROUP>
</MODE-SWITCH-INTERFACE>
字段约束介绍

IS-SERVICE

false/true表示其是否是service接口

TYPE-TREF

引用Mode Group

Calibration

        不支持IsService

<ELEMENTS>
  <PARAMETER-INTERFACE UUID="77DA1A76-EB4F-4584-9801-5FB32EB6A19E">
    <SHORT-NAME>calibration</SHORT-NAME>
    <IS-SERVICE>false</IS-SERVICE>
    <PARAMETERS>
      <PARAMETER-DATA-PROTOTYPE UUID="4D17494E-5577-4C95-9D73-98F2417DDC5E">
        <SHORT-NAME>Element</SHORT-NAME>
        <SW-DATA-DEF-PROPS>
          <SW-DATA-DEF-PROPS-VARIANTS>
            <SW-DATA-DEF-PROPS-CONDITIONAL>
              <SW-ADDR-METHOD-REF DEST="SW-ADDR-METHOD">/SwAddrMethods/calibration</SW-ADDR-METHOD-REF>
              <SW-CALIBRATION-ACCESS>READ-WRITE</SW-CALIBRATION-ACCESS>
              <DATA-CONSTR-REF DEST="DATA-CONSTR">/AUTOSAR_Platform/DataConstrs/boolean_DataConstr</DATA-CONSTR-REF>
            </SW-DATA-DEF-PROPS-CONDITIONAL>
          </SW-DATA-DEF-PROPS-VARIANTS>
        </SW-DATA-DEF-PROPS>
        <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/Predefined_DEV/ImplementationDataTypes/Dem_UdsStatusByteType</TYPE-TREF>
      </PARAMETER-DATA-PROTOTYPE>
    </PARAMETERS>
  </PARAMETER-INTERFACE>
  <SW-ADDR-METHOD UUID="23CA4DB7-3F3E-4585-92D5-1DDA480F1EDA">
    <SHORT-NAME>calibration</SHORT-NAME>
    <MEMORY-ALLOCATION-KEYWORD-POLICY>ADDR-METHOD-SHORT-NAME</MEMORY-ALLOCATION-KEYWORD-POLICY>
    <SECTION-INITIALIZATION-POLICY>CLEARED</SECTION-INITIALIZATION-POLICY>
    <SECTION-TYPE>CALIBRATION-OFFLINE</SECTION-TYPE>
  </SW-ADDR-METHOD>
</ELEMENTS>
字段约束介绍

IS-SERVICE

false

PARAMETERS

 PARAMETER-DATA-PROTOTYPE

SW-ADDR-METHOD-REF

SW-CALIBRATION-ACCESS

DATA-CONSTR-REF

TYPE-TREF

NV Data

<NV-DATA-INTERFACE UUID="0CB747B9-15D4-4EB9-BEC6-6D8DE38196F5">
  <SHORT-NAME>nv_data</SHORT-NAME>
  <IS-SERVICE>false</IS-SERVICE>
  <NV-DATAS>
    <VARIABLE-DATA-PROTOTYPE UUID="5A17E7DF-027A-4C7A-AF9A-35CEA7B59F7D">
      <SHORT-NAME>Element</SHORT-NAME>
      <SW-DATA-DEF-PROPS>
        <SW-DATA-DEF-PROPS-VARIANTS>
          <SW-DATA-DEF-PROPS-CONDITIONAL>
            <SW-ADDR-METHOD-REF DEST="SW-ADDR-METHOD">/SwAddrMethods/calibration</SW-ADDR-METHOD-REF>
            <SW-CALIBRATION-ACCESS>READ-WRITE</SW-CALIBRATION-ACCESS>
            <DATA-CONSTR-REF DEST="DATA-CONSTR">/AUTOSAR_Platform/DataConstrs/float32_DataConstr</DATA-CONSTR-REF>
          </SW-DATA-DEF-PROPS-CONDITIONAL>
        </SW-DATA-DEF-PROPS-VARIANTS>
      </SW-DATA-DEF-PROPS>
      <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/Predefined_DEV/ImplementationDataTypes/NvM_RequestResultType</TYPE-TREF>
    </VARIABLE-DATA-PROTOTYPE>
  </NV-DATAS>
</NV-DATA-INTERFACE>
字段约束介绍

IS-SERVICE

false

NV-DATAS

  VARIABLE-DATA-PROTOTYPE

SW-ADDR-METHOD-REF

SW-CALIBRATION-ACCESS

DATA-CONSTR-REF

TYPE-TREF

Trigger

        支持IsService

待补充

Diagnostic Communication Manager, DCM

SenderReceiver

Port Interface

IsService

Type

DataServices_{Data}

R

P

PR

boolean

sint8

sint16

sint32

uint32

uint8

uint16

DataArrayTypeUint8_{Data}

DataArrayTypeUint16_{Data}

DataArrayTypeUint32_{Data}

DataArrayTypeSint8_{Data}

DataArrayTypeSint16_{Data}

DataArrayTypeSint32_{Data}

IOControlRequest_{Data}

true

P

ControlMask_8

ControlMask_16

ControlMask_32

IOOperationRequest_{Data}

DataArrayTypeUint8_{Data}

IOControlResponse

true

R

IOOperationResponse

ClientServer

Port Interface

IsService

Operation

Argument

Type

Direction

Error

SecurityAccess_

{SecurityLevel}

true

R

CompareKey

Key

OpStatus

ErrorCode

KeyArrayType_{SecurityLevel}

Dcm_OpStatusType

Dcm_NegativeResponseCodeType

IN

IN

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

11: DCM_E_COMPARE_KEY_FAILED

GetSecurity

AttemptCounter

OpStatus

AttemptCounter

Dcm_OpStatusType

uint8

IN

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

GetSeed

OpStatus

Seed

ErrorCode

Dcm_OpStatusType

SeedArrayType_{SecurityLevel}

Dcm_NegativeResponseCodeType

IN

OUT

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

GetSeed

SecurityAccessDataRecord

OpStatus

Seed

ErrorCode

SecurityAccessDataRecordType_{SecurityLevel}

Dcm_OpStatusType

SeedArrayType_{SecurityLevel}

Dcm_NegativeResponseCodeType

IN

IN

OUT

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

SetSecurity

AttemptCounter

OpStatus

AttemptCounter

Dcm_OpStatusType

uint8

IN

IN

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

DataServices_

{Data}

true

R

P

PR

ConditionCheckRead

OpStatus

ErrorCode

Dcm_OpStatusType

Dcm_NegativeResponseCodeType

IN

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

ConditionCheckRead

ErrorCode

Dcm_NegativeResponseCodeType

OUT

0: E_OK

1: E_NOT_OK

FreezeCurrentState

OpStatus

ErrorCode

Dcm_OpStatusType

Dcm_NegativeResponseCodeType

IN

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

FreezeCurrentState

OpStatus

controlMask

ErrorCode

Dcm_OpStatusType

Dcm_ControlMask_{Data}

Dcm_NegativeResponseCodeType

IN

IN

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

FreezeCurrentState

ErrorCode

Dcm_NegativeResponseCodeType

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

FreezeCurrentState

controlMask

ErrorCode

Dcm_ControlMask_{Data}

Dcm_NegativeResponseCodeType

IN

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

GetScalingInformation

OpStatus

ScalingInfo

ErrorCode

Dcm_OpStatusType

ScalingInfoArrayType_{Data}

Dcm_NegativeResponseCodeType

IN

OUT

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

GetScalingInformation

ScalingInfo

ErrorCode

ScalingInfoArrayType_{Data}

Dcm_NegativeResponseCodeType

OUT

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

ReadData

OpStatus

Data

Dcm_OpStatusType

DataArrayTypeUint8_{Data}

IN

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

ReadData

OpStatus

Data

ErrorCode

Dcm_OpStatusType

DataArrayTypeUint8_{Data}

Dcm_NegativeResponseCodeType

IN

OUT

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

ReadData

Data

DataArrayTypeUint8_{Data}

OUT

0: E_OK

1: E_NOT_OK

ReadDataLength

OpStatus

DataLength

Dcm_OpStatusType

uint16

IN

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

ReadDataLength

DataLength

uint16

OUT

0: E_OK

1: E_NOT_OK

ResetToDefault

OpStatus

ErrorCode

Dcm_OpStatusType

Dcm_NegativeResponseCodeType

IN

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

ResetToDefault

OpStatus

controlMask

ErrorCode

Dcm_OpStatusType

Dcm_ControlMask_{Data}

Dcm_NegativeResponseCodeType

IN

IN

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

ResetToDefault

ErrorCode

Dcm_NegativeResponseCodeType

OUT

0: E_OK

1: E_NOT_OK

ResetToDefault

controlMask

ErrorCode

Dcm_ControlMask_{Data}

Dcm_NegativeResponseCodeType

IN

OUT

0: E_OK

1: E_NOT_OK

ReturnControlToECU

ErrorCode

Dcm_NegativeResponseCodeType

OUT

0: E_OK

1: E_NOT_OK

ReturnControlToECU

controlMask

ErrorCode

Dcm_ControlMask_{Data}

Dcm_NegativeResponseCodeType

IN

OUT

0: E_OK

1: E_NOT_OK

ShortTermAdjustment

ControlStateInfo

OpStatus

ErrorCode

DataArrayTypeUint8_{Data}

Dcm_OpStatusType

Dcm_NegativeResponseCodeType

IN

IN

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

ShortTermAdjustment

ControlStateInfo

OpStatus

controlMask

ErrorCode

DataArrayTypeUint8_{Data}

Dcm_OpStatusType

Dcm_ControlMask_{Data}

Dcm_NegativeResponseCodeType

IN

IN

IN

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

ShortTermAdjustment

ControlStateInfo

DataLength

OpStatus

ErrorCode

DataArrayTypeUint8_{Data}

uint16

Dcm_OpStatusType

Dcm_NegativeResponseCodeType

IN

IN

IN

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

ShortTermAdjustment

ControlStateInfo

DataLength

OpStatus

controlMask

ErrorCode

DataArrayTypeUint8_{Data}

uint16

Dcm_OpStatusType

Dcm_ControlMask_{Data}

Dcm_NegativeResponseCodeType

IN

IN

IN

IN

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

ShortTermAdjustment

ControlStateInfo

ErrorCode

DataArrayTypeUint8_{Data}

Dcm_NegativeResponseCodeType

IN

OUT

0: E_OK

1: E_NOT_OK

ShortTermAdjustment

ControlStateInfo

controlMask

ErrorCode

DataArrayTypeUint8_{Data}

Dcm_ControlMask_{Data}

Dcm_NegativeResponseCodeType

IN

IN

OUT

0: E_OK

1: E_NOT_OK

ShortTermAdjustment

ControlStateInfo

DataLength

ErrorCode

DataArrayTypeUint8_{Data}

uint16

Dcm_NegativeResponseCodeType

IN

IN

OUT

0: E_OK

1: E_NOT_OK

ShortTermAdjustment

ControlStateInfo

DataLength

controlMask

ErrorCode

DataArrayTypeUint8_{Data}

uint16

Dcm_ControlMask_{Data}

Dcm_NegativeResponseCodeType

IN

IN

IN

OUT

0: E_OK

1: E_NOT_OK

WriteData

Data

OpStatus

ErrorCode

DataArrayTypeUint8_{Data}

Dcm_OpStatusType

Dcm_NegativeResponseCodeType

IN

IN

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

WriteData

Data

DataLength

OpStatus

ErrorCode

DataArrayTypeUint8_{Data}

uint16

Dcm_OpStatusType

Dcm_NegativeResponseCodeType

IN

IN

IN

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

WriteData

Data

ErrorCode

DataArrayTypeUint8_{Data}

Dcm_NegativeResponseCodeType

IN

OUT

0: E_OK

1: E_NOT_OK

WriteData

Data

DataLength

ErrorCode

DataArrayTypeUint8_{Data}

uint16

Dcm_NegativeResponseCodeType

IN

IN

OUT

0: E_OK

1: E_NOT_OK

DataServices_

DIDRange_

{Range}

true

R

IsDidAvailable

DID

OpStatus

supported

uint16

Dcm_OpStatusType

Dcm_DidSupportedType

IN

IN

OUT

0: E_OK

10: DCM_E_PENDING

ReadDidData

DID

Data

OpStatus

DataLength

ErrorCode

uint16

DcmDspDidRangeArrayType_{Range}

Dcm_OpStatusType

uint16

Dcm_NegativeResponseCodeType

IN

OUT

IN

OUT

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

ReadDid

RangeDataLength

DID

OpStatus

DataLength

uint16

Dcm_OpStatusType

uint16

IN

IN

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

WriteDidData

DID

Data

OpStatus

DataLength

ErrorCode

uint16

DcmDspDidRangeArrayType_{Range}

Dcm_OpStatusType

uint16

Dcm_NegativeResponseCodeType

IN

IN

IN

IN

OUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

InfotypeServices_

{VehInfoData}

true

R

GetInfotypeValueData

OpStatus

DataValueBuffer

DataValueBufferSize

Dcm_OpStatusType

InfoTypeServicesArrayType_{VehInfoData}

uint8

IN

OUT

INOUT

0: E_OK

1: E_NOT_OK

10: DCM_E_PENDING

RoutineServices_

{RoutineName}

true

R

RequestResults

OpStatus

DataOut_{Signal}

ErrorCode

Dcm_OpStatusType

RequestDataOutType_{Routine}_{Signal}

Dcm_NegativeResponseCodeType

IN

OUT

OUT

0:E_OK

1:E_NOT_OK

10:DCM_E_PENDING

12:DCM_E_FORCE_RCRRP

Request

ControlServices_

{Tid}

true

R

RequestControl

OutBuffer

InBuffer

RequestControlServicesOutArrayType_{Tid}

RequestControlServicesInArrayType_{Tid}

OUT

IN

0:E_OK

1:E_NOT_OK

Callback

DCMRequest

Services

true

R

StartProtocol

ProtocolID

Dcm_ProtocolType

IN

0:E_OK

1:E_NOT_OK

5:E_PROTOCOL_NOT_ALLOWED

StopProtocol

ProtocolID

Dcm_ProtocolType

IN

0:E_OK

1:E_NOT_OK

Service

Request

Notification

true

R

Confirmation

SID

ReqType

SourceAddress

ConfirmationStatus

uint8

uint8

uint16

Dcm_ConfirmationStatusType

IN

IN

IN

IN

0:E_OK

1:E_NOT_OK

Indication

SID

RequestData

DataSize

ReqType

SourceAddress

ErrorCode

uint8

RequestDataArray

uint16

uint8

uint16

Dcm_NegativeResponseCodeType

IN

IN

IN

IN

IN

OUT

0:E_OK

1:E_NOT_OK

8:E_REQUEST_NOT_ACCEPTED

DCMServices

true

P

GetActiveProtocol

ActiveProtocol

Dcm_ProtocolType

OUT

0:E_OK

GetSecurityLevel

SecLevel

Dcm_SecLevelType

OUT

0:E_OK

1:E_NOT_OK

GetSesCtrlType

SesCtrlType

Dcm_SesCtrlType

OUT

0:E_OK

1:E_NOT_OK

ResetToDefaultSession

0:E_OK

1:E_NOT_OK

SetActiveDiagnostic

active

boolean

IN

0:E_OK

DCM_Roe

true

P

TriggerOnEvent

0:E_OK

1:E_NOT_OK

Diagnostic Event Manager, DEM

SenderReceiver

Port Interface

IsService

Type

DataServices_{Data}

false

boolean

sint8

sint16

sint32

uint32

uint8

uint16

ClientServer

Port Interface

IsService

Operation

Argument

Type

Direction

Error

AgingCycle

true

P

SetAgingCycleState

0: E_OK

1: E_NOT_OK

CallbackClearEventAllowed

true

ClearEventAllowed

Allowed

boolean

OUT

0: E_OK

1: E_NOT_OK

CallbackEventStatusChange

true

R

EventStatusChanged

EventStatusByteOld

EventStatusByteNew

Dem_UdsStatusByteType

Dem_UdsStatusByteType

IN

IN

CallbackEventDataChanged

true

R

EventDataChanged

CallbackGetFaultDetectCounter

true

R

GetFaultDetectionCounter

FaultDetectionCounter

sint8

OUT

0: E_OK

1: E_NOT_OK

CallbackInitMonitorForEvent

true

R

InitMonitorForEvent

InitMonitorReason

Dem_InitMonitorReasonType

IN

0: E_OK

1: E_NOT_OK

CallbackDTCStatusChange

true

R

DTCStatusChanged

DTC

DTCStatusOld

DTCStatusNew

uint32

Dem_UdsStatusByteType

Dem_UdsStatusByteType

IN

IN

IN

0: E_OK

1: E_NOT_OK

GeneralCallbackEventDataChanged

true

R

EventDataChanged

EventId

Dem_EventIdType

IN

GeneralCallbackEventStatusChange

true

R

EventStatusChanged

EventId

EventStatusByteOld

EventStatusByteNew

Dem_EventIdType

Dem_UdsStatusByteType

Dem_UdsStatusByteType

IN

IN

IN

CallbackComponentStatusChanged

true

R

ComponentStatusChanged

ComponentFailedStatus

boolean

IN

CddIf

true

P

ClearDTC

DTC

DTCFormat

DTCOrigin

uint32

Dem_DTCFormatType

Dem_DTCOriginType

IN

IN

IN

0: E_OK

1: DEM_CLEAR_WRONG_DTC

2: DEM_CLEAR_WRONG_DTCORIGIN

3: DEM_CLEAR_FAILED

4: DEM_CLEAR_PENDING

5: DEM_CLEAR_BUSY

6: DEM_CLEAR_MEMORY_ERROR

DTCSuppression

true

P

SetDTCSuppression

DTC

DTCFormat

SuppressionStatus

uint32

Dem_DTCFormatType

boolean

IN

IN

IN

0: E_OK

1: E_NOT_OK

DataServices_{Data}

true

R

ReadData

Data

DataArrayType_{Data}

OUT

0: E_OK

1: E_NOT_OK

DcmIf

true

P

DcmClearDTC

DTC

DTCFormat

DTCOrigin

uint32

Dem_DTCFormatType

Dem_DTCOriginType

IN

IN

IN

0: E_OK

1: DEM_CLEAR_WRONG_DTC

2: DEM_CLEAR_WRONG_DTCORIGIN

3: DEM_CLEAR_FAILED

4: DEM_CLEAR_PENDING

5: DEM_CLEAR_BUSY

6: DEM_CLEAR_MEMORY_ERROR

DcmEnableDTCSetting

DTCGroup

DTCKind

uint32

Dem_DTCKindType

IN

IN

0: E_OK

1: DEM_CONTROL_DTC_SETTING_N_OK

2: DEM_CONTROL_DTC_WRONG_DTCGROUP

DTRCentralReport

true

P

SetDTR

TestResult

LowerLimit

UpperLimit

Ctrlval

sint32

sint32

sint32

Dem_DTRControlType

IN

IN

IN

IN

0: E_OK

1: E_NOT_OK

EnableCondition

true

P

SetEnableCondition

ConditionFulfifilled

boolean

IN

0: E_OK

1: E_NOT_OK

DiagnosticMonitor

true

P

ClearPrestoredFreezeFrame

0: E_OK

1: E_NOT_OK

PrestoreFreezeFrame

0: E_OK

1: E_NOT_OK

ResetEventDebounceStatus

DebounceResetStatus

Dem_DebounceResetStatusType

IN

0: E_OK

1: E_NOT_OK

ResetEventStatus

0: E_OK

1: E_NOT_OK

SetEventDisabled

0: E_OK

1: E_NOT_OK

SetEventStatus

EventStatus

Dem_EventStatusType

IN

0: E_OK

1: E_NOT_OK

EventStatus

true

P

SetWIRStatus

WIRStatus

boolean

IN

0: E_OK

1: E_NOT_OK

EventAvailable

true

P

SetEventAvailable

AvailableStatus

boolean

IN

0: E_OK

1: E_NOT_OK

DiagnosticInfo

true

P

Operations

DTCFormat

DTCOfEvent

Dem_DTCFormatType

uint32

IN

OUT

0: E_OK

1: E_NOT_OK

2: DEM_E_NO_DTC_AVAILABLE

GetDebouncingOfEvent

DebouncingState

Dem_DebouncingStateType

OUT

0: E_OK

1: E_NOT_OK

GetEventExtendedDataRecord

RecordNumber

DestBuffer

uint8

Dem_MaxDataValueType

IN

OUT

0: E_OK

1: E_NOT_OK

48: DEM_E_NODATAAVAILABLE

49: DEM_E_WRONG_RECORDNUMBER

GetEventExtendedDataRecordEx

RecordNumber

DestBuffer

Bufsize

uint8

Dem_MaxDataValueType

uint16

IN

OUT

INOUT

0: E_OK

1: E_NOT_OK

21: DEM_E_WRONG_BUFFERSIZE

48: DEM_E_NODATAAVAILABLE

49: DEM_E_WRONG_RECORDNUMBER

GetEventFailed

EventFailed

boolean

OUT

0: E_OK

1: E_NOT_OK

GetEventFreezeFrameData

RecordNumber

ReportTotalRecord

DataId

DestBuffer

uint8

boolean

uint16

Dem_MaxDataValueType

IN

IN

IN

OUT

0: E_OK

1: E_NOT_OK

48: DEM_E_NODATAAVAILABLE

49: DEM_E_WRONG_RECORDNUMBER

50: DEM_E_WRONG_DIDNUMBER

GetEventFreezeFrameDataEx

RecordNumber

DataId

DestBuffer

BufSize

uint8

uint16

Dem_MaxDataValueType

uint16

IN

IN

OUT

INOUT

0: E_OK

1: E_NOT_OK

21: DEM_E_WRONG_BUFFERSIZE

48: DEM_E_NODATAAVAILABLE

49: DEM_E_WRONG_RECORDNUMBER

50: DEM_E_WRONG_DIDNUMBER

GetEventStatus

EventStatusByte

Dem_UdsStatusByteType

OUT

0: E_OK

1: E_NOT_OK

GetEventTested

EventTested

boolean

OUT

0: E_OK

1: E_NOT_OK

GetFaultDetectionCounter

FaultDetectionCounter

sint8

OUT

0: E_OK

1: E_NOT_OK

3: DEM_E_NO_FDC_AVAILABLE

GeneralDiagnosticInfo

true

P

GetDTCOfEvent

EventId

DTCFormat

DTCOfEvent

Dem_EventIdType

Dem_DTCFormatType

uint32

IN

IN

OUT

0: E_OK

1: E_NOT_OK

2: DEM_E_NO_DTC_AVAILABLE

GetDebouncingOfEvent

EventId

DebouncingState

Dem_EventIdType

Dem_DebouncingStateType

IN

OUT

0: E_OK

1: E_NOT_OK

GetEventExtendedDataRecord

EventId

RecordNumber

DestBuffer

Dem_EventIdType

uint8

Dem_MaxDataValueType

IN

IN

OUT

0: E_OK

1: E_NOT_OK

48: DEM_E_NODATAAVAILABLE

49: DEM_E_WRONG_RECORDNUMBER

GetEventExtendedDataRecordEx

RecordNumber

DestBuffer

Bufsize

uint8

Dem_MaxDataValueType

uint16

IN

OUT

INOUT

0: E_OK

1: E_NOT_OK

21: DEM_E_WRONG_BUFFERSIZE

48: DEM_E_NODATAAVAILABLE

49: DEM_E_WRONG_RECORDNUMBER

GetEventFailed

EventId

EventFailed

Dem_EventIdType

boolean

IN

OUT

0: E_OK

1: E_NOT_OK

GetEventFreezeFrameData

EventId

RecordNumber

ReportTotalRecord

DataId

DestBuffer

Dem_EventIdType

uint8

boolean

uint16

Dem_MaxDataValueType

IN

IN

IN

IN

OUT

0: E_OK

1: E_NOT_OK

48: DEM_E_NODATAAVAILABLE

49: DEM_E_WRONG_RECORDNUMBER

50: DEM_E_WRONG_DIDNUMBER

GetEventFreezeFrameDataEx

RecordNumber

DataId

DestBuffer

BufSize

uint8

uint16

Dem_MaxDataValueType

uint16

IN

IN

OUT

INOUT

0: E_OK

1: E_NOT_OK

21: DEM_E_WRONG_BUFFERSIZE

48: DEM_E_NODATAAVAILABLE

49: DEM_E_WRONG_RECORDNUMBER

50: DEM_E_WRONG_DIDNUMBER

GetEventStatus

EventId

EventStatusByte

Dem_EventIdType

Dem_UdsStatusByteType

IN

OUT

0: E_OK

1: E_NOT_OK

GetEventTested

EventId

EventTested

Dem_EventIdType

boolean

IN

OUT

0: E_OK

1: E_NOT_OK

GetFaultDetectionCounter

EventId

FaultDetectionCounter

Dem_EventIdType

sint8

IN

OUT

0: E_OK

1: E_NOT_OK

3: DEM_E_NO_FDC_AVAILABLE

IndicatorStatus

true

P

GetIndicatorStatus

IndicatorStatus

Dem_IndicatorStatusType

OUT

0: E_OK

1: E_NOT_OK

IUMPRDenominator

true

P

RepIUMPRDenLock

0: E_OK

1: E_NOT_OK

RepIUMPRDenRelease

0: E_OK

1: E_NOT_OK

IUMPRDenominatorCondition

true

P

GetIUMPRDenCondition

ConditionStatus

Dem_IumprDenomCondStatusType

OUT

0: E_OK

1: E_NOT_OK

SetIUMPRDenCondition

ConditionStatus

Dem_IumprDenomCondStatusType

IN

0: E_OK

1: E_NOT_OK

IUMPRNumerator

true

P

RepIUMPRFaultDetect

0: E_OK

1: E_NOT_OK

OperationCycle

true

P

GetOperationCycleState

CycleState

Dem_OperationCycleStateType

OUT

0: E_OK

1: E_NOT_OK

SetOperationCycleState

CycleState

Dem_OperationCycleStateType

IN

0: E_OK

1: E_NOT_OK

EvMemOverflowIndication

true

P

GetEventMemoryOverflflow

OverflflowIndMirrorMemory

OverflflowIndPermanentMemory

OverflflowIndPrimaryMemory

OverflflowIndUserDefifinedMemory_{Memory}

OverflflowIndication

boolean

OUT

0: E_OK

1: E_NOT_OK

GetNumberOfEventMemoryEntries

GetNumberOfEventMemoryEntries

uint8

OUT

0: E_OK

1: E_NOT_OK

PfcCycleQualified

true

P

GetPfcCycleQualifified

isQualifified

boolean

OUT

0: E_OK

1: E_NOT_OK

SetPfcCycleQualifified

0: E_OK

1: E_NOT_OK

PowerTakeOff

true

P

SetPtoStatus

PtoStatus

boolean

IN

0: E_OK

1: E_NOT_OK

SetClearDTC

true

P/R

SetClearDTC

SetClearDTC_dependend

SetClearDTC_master

DTC

DTCFormat

DTCOrigin

uint32

Dem_DTCFormatType

Dem_DTCOriginType

IN

IN

IN

0: E_OK

1: E_NOT_OK

GetDataOfPID21

true

P

GetDataOfPID21

PID21value

Dem_PID21valueType

OUT

0: E_OK

1: E_NOT_OK

SetDataOfPID21

true

P

SetDataOfPID21

PID21value

Dem_PID21valueType

IN

0: E_OK

1: E_NOT_OK

SetDataOfPID31

true

P

SetDataOfPID31

PID31value

Dem_PID31valueType

IN

0: E_OK

1: E_NOT_OK

StorageCondition

true

P

SetStorageCondition

ConditionFulfifilled

boolean

IN

0: E_OK

1: E_NOT_OK

Function Inhibition Manager, FIM

ClientServer

Port Interface

IsService

Operation

Argument

Type

Direction

Error

FunctionInhibition

true

P

GetFunctionPermission

Permission

boolean

OUT

0: E_OK

1: E_NOT_OK

ControlFunctionAvailable

true

P

SetFunctionAvailable

Availability

boolean

IN

0: E_OK

1: E_NOT_OK

NVRAM Manager, NvM

ClientServer

Port Interface

IsService

Operation

Argument

Type

Direction

Error

NvMAdmin

true

P

SetBlockProtection

ProtectionEnabled

boolean

IN

0: E_OK

1: E_NOT_OK

NvM_Mirror

true

R

ReadRamBlockFromNvM

SrcPtr

ConstVoidPtr

IN

0: E_OK

1: E_NOT_OK

WriteRamBlockToNvM

DstPtr

VoidPtr

IN

0: E_OK

1: E_NOT_OK

NvM_NotifyInitBlock

true

R

InitBlock

0: E_OK

NvM_NotifyJobFinished

true

R

JobFinished

ServiceId

JobResult

uint8

NvM_RequestResultType

IN

IN

0: E_OK

NvM_Service

true

P

EraseBlock

0: E_OK

1: E_NOT_OK

GetDataIndex

DataIndexPtr

uint8

OUT

0: E_OK

1: E_NOT_OK

GetErrorStatus

RequestResultPtr

NvM_RequestResultType

OUT

0: E_OK

1: E_NOT_OK

InvalidateNvBlock

0: E_OK

1: E_NOT_OK

ReadBlock

DstPtr

VoidPtr

IN

0: E_OK

1: E_NOT_OK

ReadPRAMBlock

0: E_OK

1: E_NOT_OK

RestoreBlockDefaults

DstPtr

VoidPtr

IN

0: E_OK

1: E_NOT_OK

RestorePRAMBlockDefaults

0: E_OK

1: E_NOT_OK

SetDataIndex

DataIndex

uint8

IN

0: E_OK

1: E_NOT_OK

SetRamBlockStatus

BlockChanged

boolean

IN

0: E_OK

1: E_NOT_OK

WriteBlock

SrcPtr

ConstVoidPtr

IN

0: E_OK

1: E_NOT_OK

WritePRAMBlock

0: E_OK

1: E_NOT_OK

Communication Manager, ComM

SenderReceiver

Port Interface

IsService

Type

ComM_CurrentChannelRequest_{channel_name}

true

P

ComM_UserHandleArrayType_{channel_name}

ClientServer

Port Interface

IsService

Operation

Argument

Type

Direction

Error

ComM_ChannelLimitation

true

P

GetInhibitionStatus

Status

ComM_InhibitionStatusType

OUT

0: E_OK

1: E_NOT_OK

LimitChannelToNoComMode

Status

boolean

IN

0: E_OK

1: E_NOT_OK

ComM_ChannelWakeup

true

P

GetInhibitionStatus

Status

ComM_InhibitionStatusType

OUT

0: E_OK

1: E_NOT_OK

PreventWakeUp

Status

boolean

IN

0: E_OK

1: E_NOT_OK

ComM_ECUModeLimitation

true

P

LimitECUToNoComMode

Status

boolean

IN

0: E_OK

1: E_NOT_OK

ReadInhibitCounter

CounterValue

uint16

OUT

0: E_OK

1: E_NOT_OK

ResetInhibitCounter

0: E_OK

1: E_NOT_OK

SetECUGroupClassification

Status

ComM_InhibitionStatusType

IN

0: E_OK

1: E_NOT_OK

ComM_UserRequest

true

P

GetCurrentComMode

ComMode

ComM_ModeType

OUT

0: E_OK

1: E_NOT_OK

GetMaxComMode

ComMode

ComM_ModeType

OUT

0: E_OK

1: E_NOT_OK

GetRequestedComMode

ComMode

ComM_ModeType

OUT

0: E_OK

1: E_NOT_OK

RequestComMode

ComMode

ComM_ModeType

IN

0: E_OK

1: E_NOT_OK

2: E_MODE_LIMITATION

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/920597.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

Android Gradle自定义任务在打包任务执行完成后执行cmd命令

背景 在每次打包之后需要做某事&#xff0c;例如每次打包后我都会安装某个目录下的一个apk。这个apk是通过一堆shell命令过滤得到一个apk的地址&#xff0c;然后把执行的几个shell命令何必成一个alias指令&#xff0c;在打包后只需要执行alias指令实现功能。当然也可以直接写在…

2023AE软件、Adobe After Effects安装步骤分享教程

2023AE软件是一款由Adobe公司开发的视频编辑软件&#xff0c;也被称为Adobe After Effects。它在广告、电影、电视和网络视频等领域广泛应用&#xff0c;用于制作动态图形、特效、合成和其他视觉效果。该软件支持多种视频和音频文件格式&#xff0c;具有丰富的插件和预设&#…

Prometheus结合K8s(二)使用

上一篇介绍了如何搭建 Prometheus结合K8s&#xff08;一&#xff09;搭建-CSDN博客&#xff0c;这章介绍使用 页面访问 kubectl get svc -n prom 看promeheus和granfana的端口访问页面 Prometheus 点击status—target&#xff0c;可以看到metrics的数据来源&#xff0c;即各…

单片机学习笔记 1. 点亮一个LED灯

把基础的东西都过一下&#xff0c;用来学习记录一下。 目录 1、Keil工程 2、Keil实现代码 3、烧录程序 0、实现的功能 点亮一个LED灯 1、Keil工程 打开Keil&#xff0c;Project----New uVision Project&#xff0c;工程文件命名----OK 选择单片机类型AT89C52&#xff0c;和…

Ubuntu安装sublime Tex

Ubuntu安装sublime Text步骤_ubuntu sublime-CSDN博客 Sublime Text 3 - Sublime Text sudo dpkg -i sublime-text_build_3211_amd64.deb

基于FPGA(现场可编程门阵列)的SD NAND图片显示系统是一个复杂的项目,它涉及硬件设计、FPGA编程、SD卡接口、NAND闪存控制以及图像显示等多个方面

文章目录 0、前言 1、目标 2、图片的预处理 3、SD NAND的预处理 4、FPGA实现 4.1、详细设计 4.2、仿真 4.3、实验结果 前言 在上一篇文章《基于FPGA的SD卡的数据读写实现&#xff08;SD NAND FLASH&#xff09;》中&#xff0c;我们了解到了SD NAND Flash的相关知识&am…

Ubuntu24.04LTS设置root用户可远程登录

Ubuntu24.04LTS设置root用户可远程登录 文章目录 Ubuntu24.04LTS设置root用户可远程登录1. 设置root密码2. 设置root用户可远程登录1. 查看ssh服务是否安装2. 安装ssh服务3. 再次查看ssh服务是否安装4. 配置ssh文件5. 重启ssh服务6. root远程登录 1. 设置root密码 Ubuntu安装后…

VM虚拟机装MAC后无法联网,如何解决?

✨在vm虚拟机上&#xff0c;给虚拟机MacOS设置网络适配器。选择NAT模式用于共享主机的IP地址 ✨在MacOS设置中设置网络 以太网 使用DHCP ✨回到本地电脑上&#xff0c;打开 服务&#xff0c;找到VMware DHCP和VMware NAT&#xff0c;把这两个服务打开&#xff0c;专一般问题就…

python中的base64使用小笑话

在使用base64的时候将本地的图片转换为base64 代码如下&#xff0c;代码绝对正确 import base64 def image_to_data_uri(image_path):with open(image_path, rb) as image_file:image_data base64.b64encode(image_file.read()).decode(utf-8)file_extension image_path.sp…

bert的模型训练和使用情绪识别

bert我的理解从它的名字可以看出来&#xff0c;它是一种双向的编码器解码器结构&#xff0c;也就是说它非常的高效&#xff0c;非常的高级&#xff0c;在它非常小的麻雀腹内居然五脏俱全。所以按道理来说&#xff0c;它应该是比gpt模型更加全面。所以我们有学习它的必要。 安装…

一分钟学习数据安全——IAM系统的数据访问控制模型

数据访问控制是信息系统中至关重要的安全功能&#xff0c;通过对用户访问权限的管理&#xff0c;保护系统中的敏感数据和资源&#xff0c;防止未经授权的访问、篡改和滥用。 数据访问控制发生在身份鉴别之后&#xff0c;解决主体如何安全访问数据的问题。 实施数据访问控制一…

STARTS:一种用于自动脑电/脑磁(E/MEG)源成像的自适应时空框架|文献速递-基于深度学习的病灶分割与数据超分辨率

Title 题目 STARTS: A Self-adapted Spatio-temporal Framework for Automatic E/MEG SourceImaging STARTS&#xff1a;一种用于自动脑电/脑磁(E/MEG)源成像的自适应时空框架 01 文献速递介绍 电生理源成像&#xff08;Electrophysiological Source Imaging&#xff0c;E…

AI Large Language Model

AI 的 Large Language model LLM , 大语言模型&#xff1a; 是AI的模型&#xff0c;专门设计用来处理自然语言相关任务。它们通过深度学习和庞大的训练数据集&#xff0c;在理解和生成自然语言文本方面表现出色。常见的 LLM 包括 OpenAI 的 GPT 系列、Google 的 PaLM 和 Meta…

Spyglass:更改默认编辑器

相关阅读 Spyglasshttps://blog.csdn.net/weixin_45791458/category_12828934.html?spm1001.2014.3001.5482 Spyglass默认使用的是Vim(Small Version)作为其文本编辑器&#xff0c;如果希望使用其他文本编辑器&#xff08;比如gedit、nano、VS Code、Sublime Text&#xff09…

网络安全之接入控制

身份鉴别 ​ 定义:验证主题真实身份与其所声称的身份是否符合的过程&#xff0c;主体可以是用户、进程、主机。同时也可实现防重放&#xff0c;防假冒。 ​ 分类:单向鉴别、双向鉴别、三向鉴别。 ​ 主题身份标识信息:密钥、用户名和口令、证书和私钥 Internet接入控制过程 …

【网站推荐】the top trending open-source startups, every quarter

每季度最热门的开源初创公司 我们根据 GitHub 存储库自 2020 年以来的明星增长情况发布热门开源项目&#xff0c;并将其称为 Runa 开源初创公司 (ROSS) 指数。 una Capital actively invests in open-source startups (like Nginx and MariaDB) and considers an active deve…

java学习记录11

异常 在java中提供了处理异常的机制&#xff0c;能够帮助我们避免程序崩溃。 Throwable可以用来表示任何可以作为异常抛出的类&#xff0c;分为两种&#xff1a; Error和Exception。其中Error用来表示JVM无法处理的错误。程序被强制终止。 Exception又分为两种&#xff1a; 受…

IDEA如何导入项目,包括从git仓库(github)导入项目

前言 大家好&#xff0c;我是小徐啊。自从使用了IDEA开发Java应用后&#xff0c;我再也不想使用eclipse了。IDEA的好处真的太多了。今天小徐就来介绍下IDEA的入门知识&#xff0c;也就是如何导入一个项目。 IDEA如何导入项目 首先&#xff0c;打开IDEA&#xff0c;点击上方的…

GitLab|数据迁移

注意&#xff1a;新服务器GitLab版本需和旧版本一致 在旧服务器执行命令进行数据备份 gitlab-rake gitlab:backup:create 备份数据存储在 /var/opt/gitlab/backups/ 将备份数据传输到新服务器的/var/opt/gitlab/backups/下&#xff0c;并修改文件权限&#xff08;下载前和上传…

SSRF漏洞利用

2.漏洞利用 2.1 SSRF中URL的伪协议 file:// 从⽂件系统中获取⽂件内容&#xff0c;如&#xff0c;file:///etc/passwd dict:// 字典服务器协议&#xff0c;访问字典资源&#xff0c;如dict://ip:6379/info sftp:// ssh⽂件传输协议或安全⽂件传输协议 ldap:// 轻量级⽬录访问…