wiki:spec/LinIf
LIN Interface


概要

  • API一覧
API ID
[Dec]
ID
[Hex]
R4.2.2
LinIf_Init 1 0x01
LinIf_GetVersionInfo 3 0x03
LinIf_Transmit 4 0x04
LinIf_ScheduleRequest 5 0x05
LinIf_GotoSleep 6 0x06
LinIf_Wakeup 7 0x07
LinIf_SetTrcvMode 8 0x08
LinIf_GetTrcvMode 9 0x09
LinIf_GetTrcvWakeupReason 10 0x0A
LinIf_SetTrcvWakeupMode 11 0x0B
LinIf_CancelTransmit 12 0x0C
LinTp_Init 64 0x40
LinTp_Transmit 65 0x41
LinTp_GetVersionInfo 66 0x42
LinTp_Shutdown 67 0x43
LinTp_CancelTransmit 70 0x46
LinTp_ChangeParameter 68 0x44
LinIf_CheckWakeup 96 0x60
LinTp_CancelReceive 71 0x47
LinIf_WakeupConfirmation 97 0x61
LinIf_MainFunction 128 0x80
<User>_ScheduleRequestConfirmation - --
<User>_GotoSleepConfirmation - --
<User>_WakeupConfirmation - --
<User_TriggerTransmit> - --
<User_TxConfirmation> - --
<User_RxIndication> - --
  • エラーコード一覧
エラーコード Dec Hex R4.2.2
LINIF_E_UNINIT 0 0x00
LINIF_E_ALREADY_INITIALIZED 16 0x10
LINIF_E_NONEXISTENT_CHANNEL 32 0x20
LINIF_E_PARAMETER 48 0x30
LINIF_E_PARAM_POINTER 64 0x40
LINIF_E_SCHEDULE_REQUEST_ERROR 81 0x51
LINIF_E_TRCV_INV_MODE 83 0x53
LINIF_E_TRCV_NOT_NORMAL 84 0x54
LINIF_E_PARAM_WAKEUPSOURCE 85 0x55
LINIF_E_RESPONSE 96 0x60
LINIF_E_NC_NO_RESPONSE 97 0x61

API仕様

LinIf_Init

void LinIf_Init(const LinIf_ConfigType* ConfigPtr)

LinIf_GetVersionInfo

void LinIf_GetVersionInfo(Std_VersionInfoType* versioninfo)

LinIf_Transmit

Std_ReturnType LinIf_Transmit(PduIdType LinTxPduId, const PduInfoType* PduInfoPtr)

LinIf_ScheduleRequest

Std_ReturnType LinIf_ScheduleRequest(NetworkHandleType Channel, LinIf_SchHandleType Schedule)

LinIf_GotoSleep

Std_ReturnType LinIf_GotoSleep(NetworkHandleType Channel)

LinIf_Wakeup

Std_ReturnType LinIf_Wakeup(NetworkHandleType Channel)

LinIf_SetTrcvMode

Std_ReturnType LinIf_SetTrcvMode(NetworkHandleType Channel, LinTrcv_TrcvModeType TransceiverMode)

LinIf_GetTrcvMode

Std_ReturnType LinIf_GetTrcvMode(NetworkHandleType Channel, LinTrcv_TrcvModeType* TransceiverModePtr)

LinIf_GetTrcvWakeupReason

Std_ReturnType LinIf_GetTrcvWakeupReason(NetworkHandleType Channel, LinTrcv_TrcvWakeupReasonType* TrcvWuReasonPtr)

LinIf_SetTrcvWakeupMode

Std_ReturnType LinIf_SetTrcvWakeupMode(NetworkHandleType Channel,  LinTrcv_TrcvWakeupModeType LinTrcvWakeupMode)

LinIf_CancelTransmit

Std_ReturnType LinIf_CancelTransmit(PduIdType LinTxPduId)

LinTp_Init

void LinTp_Init(const LinTp_ConfigType* ConfigPtr)

LinTp_Transmit

Std_ReturnType LinTp_Transmit(PduIdType LinTpTxSduId, const PduInfoType* LinTpTxInfoPtr)

LinTp_GetVersionInfo

void LinTp_GetVersionInfo(Std_VersionInfoType* versioninfo)

LinTp_Shutdown

void LinTp_Shutdown(void)

LinTp_CancelTransmit

Std_ReturnType LinTp_CancelTransmit(PduIdType LinTpTxSduId)

LinTp_ChangeParameter

Std_ReturnType LinTp_ChangeParameter(PduIdType id, TPParameterType parameter, uint16 value)

LinIf_CheckWakeup

Std_ReturnType LinIf_CheckWakeup(EcuM_WakeupSourceType WakeupSource)

LinTp_CancelReceive

Std_ReturnType LinTp_CancelReceive(PduIdType LinTpRxSduId)

LinIf_WakeupConfirmation

void LinIf_WakeupConfirmation(EcuM_WakeupSourceType WakeupSource)

LinIf_MainFunction

void LinIf_MainFunction(void)

<User>_ScheduleRequestConfirmation

void <User>_ScheduleRequestConfirmation(NetworkHandleType channel, LinIf_SchHandleType schedule)

<User>_GotoSleepConfirmation

void <User>_GotoSleepConfirmation(NetworkHandleType channel, boolean success)

<User>_WakeupConfirmation

void <User>_WakeupConfirmation(NetworkHandleType channel, boolean success)

<User_TriggerTransmit>

Std_ReturnType <User_TriggerTransmit>(PduIdType TxPduId, PduInfoType* PduInfoPtr)

<User_TxConfirmation>

void <User_TxConfirmation>(PduIdType TxPduId)

<User_RxIndication>

void <User_RxIndication>(PduIdType RxPduId, const PduInfoType* PduInfoPtr)

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

LinIfGeneral

/AUTOSAR/EcucDefs/LinIf/LinIfGeneral
  • 型:Container
  • 多重度:1

LinIfCancelTransmitSupported

/AUTOSAR/EcucDefs/LinIf/LinIfGeneral/LinIfCancelTransmitSupported
  • 型:BooleanParam
  • 多重度:1

LinIfDevErrorDetect

/AUTOSAR/EcucDefs/LinIf/LinIfGeneral/LinIfDevErrorDetect
  • 型:BooleanParam
  • 多重度:1

LinIfMultipleDriversSupported

/AUTOSAR/EcucDefs/LinIf/LinIfGeneral/LinIfMultipleDriversSupported
  • 型:BooleanParam
  • 多重度:1

LinIfMultipleTrcvDriverSupported

/AUTOSAR/EcucDefs/LinIf/LinIfGeneral/LinIfMultipleTrcvDriverSupported
  • 型:BooleanParam
  • 多重度:1

LinIfNcOptionalRequestSupported

/AUTOSAR/EcucDefs/LinIf/LinIfGeneral/LinIfNcOptionalRequestSupported
  • 型:BooleanParam
  • 多重度:1

LinIfPublicCddHeaderFile

/AUTOSAR/EcucDefs/LinIf/LinIfGeneral/LinIfPublicCddHeaderFile
  • 型:StringParam
  • 多重度:0..*

LinIfTpSupported

/AUTOSAR/EcucDefs/LinIf/LinIfGeneral/LinIfTpSupported
  • 型:BooleanParam
  • 多重度:1

LinIfTrcvDriverSupported

/AUTOSAR/EcucDefs/LinIf/LinIfGeneral/LinIfTrcvDriverSupported
  • 型:BooleanParam
  • 多重度:1

LinIfVersionInfoApi

/AUTOSAR/EcucDefs/LinIf/LinIfGeneral/LinIfVersionInfoApi
  • 型:BooleanParam
  • 多重度:1

LinIfGlobalConfig

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig
  • 型:Container
  • 多重度:1

LinIfTimeBase

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfTimeBase
  • 型:FloatParam
  • 多重度:1
  • 上限値:0.255
  • 下限値:0

LinIfChannel

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel
  • 型:Container
  • 多重度:1..*

LinIfGotoSleepConfirmationUL

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfGotoSleepConfirmationUL
  • 型:EnumerationParam
  • 多重度:1
  • 選択肢:
    • CDD
    • LIN_SM

LinIfMaxFrameCnt

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfMaxFrameCnt
  • 型:IntegerParam
  • 多重度:0..1
  • 上限値:65535
  • 下限値:0

LinIfScheduleRequestConfirmationUL

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfScheduleRequestConfirmationUL
  • 型:EnumerationParam
  • 多重度:1
  • 選択肢:
    • CDD
    • LIN_SM

LinIfStartupState

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfStartupState
  • 型:EnumerationParam
  • 多重度:1
  • 選択肢:
    • NORMAL
    • SLEEP

LinIfWakeupConfirmationUL

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfWakeupConfirmationUL
  • 型:EnumerationParam
  • 多重度:1
  • 選択肢:
    • CDD
    • LIN_SM

LinIfCddRef

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfCddRef
  • 型:Reference
  • 多重度:0..1

LinIfChannelRef

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfChannelRef
  • 型:Reference
  • 多重度:1
  • 参照先:/AUTOSAR/EcucDefs/Lin/LinGlobalConfig/LinChannel

LinIfComMNetworkHandleRef

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfComMNetworkHandleRef
  • 型:Reference
  • 多重度:1
  • 参照先:/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel

LinIfFrame

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame
  • 型:Container
  • 多重度:0..*

LinIfChecksumType

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfChecksumType
  • 型:EnumerationParam
  • 多重度:1
  • 選択肢:
    • CLASSIC
    • ENHANCED

LinIfFrameId

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfFrameId
  • 型:IntegerParam
  • 多重度:0..1
  • 上限値:255
  • 下限値:0

LinIfFrameType

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfFrameType
  • 型:EnumerationParam
  • 多重度:1
  • 選択肢:
    • ASSIGN
    • ASSIGN_FRAME_ID_RANGE
    • ASSIGN_NAD
    • CONDITIONAL
    • EVENT_TRIGGERED
    • FREE
    • MRF
    • SAVE_CONFIGURATION
    • SPORADIC
    • SRF
    • UNASSIGN
    • UNCONDITIONAL

LinIfFixedFrameSdu

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfFixedFrameSdu
  • 型:Container
  • 多重度:0..1

LinIfFixedFrameSduByte

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfFixedFrameSdu/LinIfFixedFrameSduByte
  • 型:Container
  • 多重度:8..8

LinIfFixedFrameSduBytePos

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfFixedFrameSdu/LinIfFixedFrameSduByte/LinIfFixedFrameSduBytePos
  • 型:IntegerParam
  • 多重度:1
  • 上限値:7
  • 下限値:0

LinIfFixedFrameSduByteVal

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfFixedFrameSdu/LinIfFixedFrameSduByte/LinIfFixedFrameSduByteVal
  • 型:IntegerParam
  • 多重度:1
  • 上限値:255
  • 下限値:0

LinIfPduDirection

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfPduDirection
  • 型:Container
  • 多重度:1

LinIfInternalPdu

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfPduDirection/LinIfInternalPdu
  • 型:Container
  • 多重度:0..1

LinIfRxPdu

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfPduDirection/LinIfRxPdu
  • 型:Container
  • 多重度:0..1

LinIfRxIndicationUL

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfPduDirection/LinIfRxPdu/LinIfRxIndicationUL
  • 型:FunctionName
  • 多重度:0..1

LinIfUserRxIndicationUL

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfPduDirection/LinIfRxPdu/LinIfUserRxIndicationUL
  • 型:EnumerationParam
  • 多重度:1
  • 選択肢:
    • CDD
    • PDUR

LinIfRxPduRef

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfPduDirection/LinIfRxPdu/LinIfRxPduRef
  • 型:Reference
  • 多重度:1
  • 参照先:/AUTOSAR/EcucDefs/EcuC/EcucConfigSet/EcucPduCollection/Pdu

LinIfSlaveToSlavePdu

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfPduDirection/LinIfSlaveToSlavePdu
  • 型:Container
  • 多重度:0..1

LinIfTxPdu

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfPduDirection/LinIfTxPdu
  • 型:Container
  • 多重度:0..1

LinIfTxConfirmationUL

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfPduDirection/LinIfTxPdu/LinIfTxConfirmationUL
  • 型:FunctionName
  • 多重度:0..1

LinIfTxPduId

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfPduDirection/LinIfTxPdu/LinIfTxPduId
  • 型:IntegerParam
  • 多重度:1
  • 上限値:65535
  • 下限値:0

LinIfTxTriggerTransmitUL

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfPduDirection/LinIfTxPdu/LinIfTxTriggerTransmitUL
  • 型:FunctionName
  • 多重度:0..1

LinIfUserTxUL

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfPduDirection/LinIfTxPdu/LinIfUserTxUL
  • 型:EnumerationParam
  • 多重度:1
  • 選択肢:
    • CDD
    • PDUR

LinIfTxPduRef

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfPduDirection/LinIfTxPdu/LinIfTxPduRef
  • 型:Reference
  • 多重度:1
  • 参照先:/AUTOSAR/EcucDefs/EcuC/EcucConfigSet/EcucPduCollection/Pdu

LinIfSubstitutionFrames

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfSubstitutionFrames
  • 型:Container
  • 多重度:0..*

LinIfFramePriority

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfSubstitutionFrames/LinIfFramePriority
  • 型:IntegerParam
  • 多重度:1
  • 上限値:255
  • 下限値:0

LinIfSubstitutionFrameRef

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame/LinIfSubstitutionFrames/LinIfSubstitutionFrameRef
  • 型:Reference
  • 多重度:1
  • 参照先:/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame

LinIfMaster

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfMaster
  • 型:Container
  • 多重度:1

LinIfJitter

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfMaster/LinIfJitter
  • 型:FloatParam
  • 多重度:1
  • 上限値:0.255
  • 下限値:0

LinIfScheduleTable

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfScheduleTable
  • 型:Container
  • 多重度:1..*

LinIfResumePosition

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfScheduleTable/LinIfResumePosition
  • 型:EnumerationParam
  • 多重度:1
  • 選択肢:
    • CONTINUE_AT_IT_POINT
    • START_FROM_BEGINNING

LinIfRunMode

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfScheduleTable/LinIfRunMode
  • 型:EnumerationParam
  • 多重度:1
  • 選択肢:
    • RUN_CONTINUOUS
    • RUN_ONCE

LinIfScheduleTableIndex

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfScheduleTable/LinIfScheduleTableIndex
  • 型:IntegerParam
  • 多重度:1
  • 上限値:255
  • 下限値:0

LinIfEntry

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfScheduleTable/LinIfEntry
  • 型:Container
  • 多重度:0..*

LinIfDelay

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfScheduleTable/LinIfEntry/LinIfDelay
  • 型:FloatParam
  • 多重度:1
  • 上限値:0.255
  • 下限値:0

LinIfEntryIndex

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfScheduleTable/LinIfEntry/LinIfEntryIndex
  • 型:IntegerParam
  • 多重度:1
  • 上限値:255
  • 下限値:0

LinIfCollisionResolvingRef

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfScheduleTable/LinIfEntry/LinIfCollisionResolvingRef
  • 型:Reference
  • 多重度:0..1
  • 参照先:/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfScheduleTable

LinIfFrameRef

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfScheduleTable/LinIfEntry/LinIfFrameRef
  • 型:Reference
  • 多重度:1
  • 参照先:/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfFrame

LinIfTransceiverDrvConfig

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfTransceiverDrvConfig
  • 型:Container
  • 多重度:0..1

LinIfTrcvIdRef

/AUTOSAR/EcucDefs/LinIf/LinIfGlobalConfig/LinIfChannel/LinIfTransceiverDrvConfig/LinIfTrcvIdRef
  • 型:Reference
  • 多重度:1
  • 参照先:/AUTOSAR/EcucDefs/LinTrcv/LinTrcvChannel
Last modified 12 months ago Last modified on Aug 17, 2020, 10:23:20 PM
Note: See TracWiki for help on using the wiki.