wiki:spec/CanTrcv
CAN Transceiver Driver


概要

  • API一覧
API ID
[Dec]
ID
[Hex]
R4.0.3 R4.2.2
CanTrcv_Init 0 0x00
CanTrcv_SetOpMode 1 0x01
CanTrcv_GetOpMode 2 0x02
CanTrcv_GetBusWuReason 3 0x03
CanTrcv_GetVersionInfo 4 0x04
CanTrcv_SetWakeupMode 5 0x05
CanTrcv_GetTrcvSystemData 9 0x09
CanTrcv_ClearTrcvWufFlag 10 0x0A
CanTrcv_ReadTrcvTimeoutFlag 11 0x0B
CanTrcv_ClearTrcvTimeoutFlag 12 0x0C
CanTrcv_ReadTrcvSilenceFlag 13 0x0D
CanTrcv_CheckWakeup 7 0x07
CanTrcv_SetPNActivationState 15 0x0F
CanTrcv_CheckWakeFlag 14 0x0E
CanTrcv_MainFunction 6 0x06
CanTrcv_MainFunctionDiagnostics 8 0x08
  • エラーコード一覧
エラーコード Dec Hex R4.0.3 R4.2.2
CANTRCV_E_INVALID_TRANSCEIVER 1 0x01
CANTRCV_E_PARAM_POINTER 2 0x02
CANTRCV_E_UNINIT 11 0x0B
CANTRCV_E_TRCV_NOT_STANDBY 21 0x15
CANTRCV_E_TRCV_NOT_NORMAL 22 0x16
CANTRCV_E_PARAM_TRCV_WAKEUP_MODE 23 0x17
CANTRCV_E_PARAM_TRCV_OPMODE 24 0x18
CANTRCV_E_BAUDRATE_NOT_SUPPORTED 25 0x19
CANTRCV_E_NO_TRCV_CONTROL 26 0x1A
CANTRCV_E_INIT_FAILED 27 0x1B -
CANTRCV_E_BUS_ERROR - -- -

API仕様

CanTrcv_Init

void CanTrcv_Init(const CanTrcv_ConfigType* ConfigPtr)

CanTrcv_SetOpMode

Std_ReturnType CanTrcv_SetOpMode(uint8 Transceiver, CanTrcv_TrcvModeType OpMode)

CanTrcv_GetOpMode

Std_ReturnType CanTrcv_GetOpMode(uint8 Transceiver, CanTrcv_TrcvModeType* OpMode)

CanTrcv_GetBusWuReason

Std_ReturnType CanTrcv_GetBusWuReason(uint8 Transceiver, CanTrcv_TrcvWakeupReasonType* reason)

CanTrcv_GetVersionInfo

void CanTrcv_GetVersionInfo(Std_VersionInfoType* versioninfo)

CanTrcv_SetWakeupMode

Std_ReturnType CanTrcv_SetWakeupMode(uint8 Transceiver, CanTrcv_TrcvWakeupModeType TrcvWakeupMode)

CanTrcv_GetTrcvSystemData

Std_ReturnType CanTrcv_GetTrcvSystemData(uint8 Transceiver, const uint32* TrcvSysData)

CanTrcv_ClearTrcvWufFlag

Std_ReturnType CanTrcv_ClearTrcvWufFlag(uint8 Transceiver)

CanTrcv_ReadTrcvTimeoutFlag

Std_ReturnType CanTrcv_ReadTrcvTimeoutFlag(uint8 Transceiver, CanTrcv_TrcvFlagStateType* FlagState)

CanTrcv_ClearTrcvTimeoutFlag

Std_ReturnType CanTrcv_ClearTrcvTimeoutFlag(uint8 Transceiver)

CanTrcv_ReadTrcvSilenceFlag

Std_ReturnType CanTrcv_ReadTrcvSilenceFlag(uint8 Transceiver, CanTrcv_TrcvFlagStateType* FlagState)

CanTrcv_CheckWakeup

Std_ReturnType CanTrcv_CheckWakeup(uint8 Transceiver)

CanTrcv_SetPNActivationState

Std_ReturnType CanTrcv_SetPNActivationState(CanTrcv_PNActivationType ActivationState)

CanTrcv_CheckWakeFlag

Std_ReturnType CanTrcv_CheckWakeFlag(uint8 Transceiver)

CanTrcv_MainFunction

void CanTrcv_MainFunction(void)

CanTrcv_MainFunctionDiagnostics

void CanTrcv_MainFunctionDiagnostics(void)

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

CanTrcvConfigSet

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet
  • 型:Container
  • 多重度:1

CanTrcvSPICommRetries

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvSPICommRetries
  • 型:IntegerParam
  • 多重度:1
  • 上限値:255
  • 下限値:0
  • デフォルト値:0

CanTrcvSPICommTimeout

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvSPICommTimeout
  • 型:IntegerParam
  • 多重度:1
  • 上限値:100
  • 下限値:0
  • デフォルト値:0

CanTrcvChannel

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel
  • 型:Container
  • 多重度:1..*

CanTrcvChannelId

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvChannelId
  • 型:IntegerParam
  • 多重度:1
  • 上限値:255
  • 下限値:0

CanTrcvChannelUsed

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvChannelUsed
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:true

CanTrcvControlsPowerSupply

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvControlsPowerSupply
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

CanTrcvHwPnSupport

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvHwPnSupport
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

CanTrcvInitState

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvInitState
  • 型:EnumerationParam
  • 多重度:1
  • 選択肢:
    • CANTRCV_OP_MODE_NORMAL
    • CANTRCV_OP_MODE_SLEEP
    • CANTRCV_OP_MODE_STANDBY
  • デフォルト値:
    • R4.2.2:CANTRCV_OP_MODE_NORMAL

CanTrcvMaxBaudrate

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvMaxBaudrate
  • 型:IntegerParam
  • 多重度:1
  • 上限値:1000
  • 下限値:0

CanTrcvWakeupByBusUsed

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvWakeupByBusUsed
  • 型:BooleanParam
  • 多重度:0..1
  • デフォルト値:false

CanTrcvIcuChannelRef

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvIcuChannelRef
  • 型:Reference
  • 多重度:0..1
  • 参照先:/AUTOSAR/EcucDefs/Icu/IcuConfigSet/IcuChannel

CanTrcvWakeupSourceRef

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvWakeupSourceRef
  • 型:Reference
  • 多重度:0..1
  • 参照先:/AUTOSAR/EcucDefs/EcuM/EcuMConfiguration/EcuMCommonConfiguration/EcuMWakeupSource

CanTrcvPorWakeupSourceRef

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPorWakeupSourceRef
  • 型:Reference
  • 多重度:0..1
  • 参照先:/AUTOSAR/EcucDefs/EcuM/EcuMConfiguration/EcuMCommonConfiguration/EcuMWakeupSource

CanTrcvSyserrWakeupSourceRef

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvSyserrWakeupSourceRef
  • 型:Reference
  • 多重度:0..1
  • 参照先:/AUTOSAR/EcucDefs/EcuM/EcuMConfiguration/EcuMCommonConfiguration/EcuMWakeupSource

CanTrcvAccess

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvAccess
  • 型:Container
  • 多重度:1

CanTrcvDioAccess

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvAccess/CanTrcvDioAccess
  • 型:Container
  • 多重度:0..1

CanTrcvDioChannelAccess

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvAccess/CanTrcvDioAccess/CanTrcvDioChannelAccess
  • 型:Container
  • 多重度:1..*

CanTrcvHardwareInterfaceName

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvAccess/CanTrcvDioAccess/CanTrcvDioChannelAccess/CanTrcvHardwareInterfaceName
  • 型:StringParam
  • 多重度:1

CanTrcvDioSymNameRef

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvAccess/CanTrcvDioAccess/CanTrcvDioChannelAccess/CanTrcvDioSymNameRef
  • 型:Reference
  • 多重度:1
  • 参照先:
    • /AUTOSAR/EcucDefs/Dio/DioConfig/DioPort/DioChannel
    • /AUTOSAR/EcucDefs/Dio/DioConfig/DioPort/DioChannelGroup
    • /AUTOSAR/EcucDefs/Dio/DioConfig/DioPort

CanTrcvSpiSequence

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvAccess/CanTrcvSpiSequence
  • 型:Container
  • 多重度:0..*

CanTrcvSpiAccessSynchronous

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvAccess/CanTrcvSpiSequence/CanTrcvSpiAccessSynchronous
  • 型:BooleanParam
  • 多重度:0..1

CanTrcvSpiSequenceName

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvAccess/CanTrcvSpiSequence/CanTrcvSpiSequenceName
  • 型:Reference
  • 多重度:0..*

CanTrcvSpiAccess

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvAccess/CanTrcvSpiAccess
  • 型:Container
  • 多重度:0..1

CanTrcvSpiSequence(2)

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvAccess/CanTrcvSpiAccess/CanTrcvSpiSequence
  • 型:Container
  • 多重度:1..*

CanTrcvSpiAccessSynchronous(2)

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvAccess/CanTrcvSpiAccess/CanTrcvSpiSequence/CanTrcvSpiAccessSynchronous
  • 型:BooleanParam
  • 多重度:0..1
  • デフォルト値:false

CanTrcvSpiSequenceName(2)

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvAccess/CanTrcvSpiAccess/CanTrcvSpiSequence/CanTrcvSpiSequenceName
  • 型:Reference
  • 多重度:0..*
  • 参照先:/AUTOSAR/EcucDefs/Spi/SpiDriver/SpiSequence

CanTrcvDemEventParameterRefs

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvDemEventParameterRefs
  • 型:Container
  • 多重度:0..1

CANTRCV_E_BUS_ERROR

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvDemEventParameterRefs/CANTRCV_E_BUS_ERROR
  • 型:Reference
  • 多重度:0..1
  • 参照先:/AUTOSAR/EcucDefs/Dem/DemConfigSet/DemEventParameter

CanTrcvPartialNetwork

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork
  • 型:Container
  • 多重度:0..1

CanTrcvBaudRate

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvBaudRate
  • 型:IntegerParam
  • 多重度:1
  • 上限値:1000
  • 下限値:0

CanTrcvBusErrFlag

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvBusErrFlag
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

CanTrcvPnCanIdIsExtended

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvPnCanIdIsExtended
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

CanTrcvPnEnabled

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvPnEnabled
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

CanTrcvPnFrameCanId

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvPnFrameCanId
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

CanTrcvPnFrameCanIdMask

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvPnFrameCanIdMask
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

CanTrcvPnFrameDlc

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvPnFrameDlc
  • 型:IntegerParam
  • 多重度:1
  • 上限値:8
  • 下限値:0

CanTrcvPowerOnFlag

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvPowerOnFlag
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

CanTrcvPnFrameDataMaskSpec

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvPnFrameDataMaskSpec
  • 型:Container
  • 多重度:0..8

CanTrcvPnFrameDataMask

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvPnFrameDataMaskSpec/CanTrcvPnFrameDataMask
  • 型:IntegerParam
  • 多重度:1
  • 上限値:255
  • 下限値:0

CanTrcvPnFrameDataMaskIndex

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvPnFrameDataMaskSpec/CanTrcvPnFrameDataMaskIndex
  • 型:IntegerParam
  • 多重度:1
  • 上限値:7
  • 下限値:0

CanTrcvGeneral

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvGeneral
  • 型:Container
  • 多重度:1

CanTrcvDevErrorDetect

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvGeneral/CanTrcvDevErrorDetect
  • 型:BooleanParam
  • 多重度:1

CanTrcvGetVersionInfo

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvGeneral/CanTrcvGetVersionInfo
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

CanTrcvSPICommRetries

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvGeneral/CanTrcvSPICommRetries
  • 型:IntegerParam
  • 多重度:1
  • 上限値:255
  • 下限値:0

CanTrcvSPICommTimeout

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvGeneral/CanTrcvSPICommTimeout
  • 型:IntegerParam
  • 多重度:1
  • 上限値:100
  • 下限値:0

CanTrcvWaitCount

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvGeneral/CanTrcvWaitCount
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

CanTrcvIndex

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvGeneral/CanTrcvIndex
  • 型:IntegerParam
  • 多重度:1
  • 上限値:255
  • 下限値:0

CanTrcvMainFunctionDiagnosticsPeriod

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvGeneral/CanTrcvMainFunctionDiagnosticsPeriod
  • 型:FloatParam
  • 多重度:0..1
  • 上限値:65.535
  • 下限値:0.001

CanTrcvMainFunctionPeriod

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvGeneral/CanTrcvMainFunctionPeriod
  • 型:FloatParam
  • 多重度:0..1
  • 上限値:65.535
  • 下限値:0.001

CanTrcvTimerType

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvGeneral/CanTrcvTimerType
  • 型:EnumerationParam
  • 多重度:0..1
  • 選択肢:
    • None
    • Timer_1us16bit

CanTrcvWaitTime

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvGeneral/CanTrcvWaitTime
  • 型:FloatParam
  • 多重度:0..1
  • 上限値:2.55E-4
  • 下限値:0

CanTrcvWakeUpSupport

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvGeneral/CanTrcvWakeUpSupport
  • 型:EnumerationParam
  • 多重度:1
  • 選択肢:
    • CANTRCV_WAKEUP_BY_POLLING
    • CANTRCV_WAKEUP_NOT_SUPPORTED
Last modified 12 months ago Last modified on Aug 19, 2020, 10:10:48 AM
Note: See TracWiki for help on using the wiki.