wiki:spec_CANTransceiverDriver
CAN Transceiver Driver


概要

  • API一覧
API ID
[Dec]
ID
[Hex]
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
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

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

CanTrcvSPICommTimeout

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

CanTrcvChannel

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

CanTrcvChannelId

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvChannelId
  • 型:IntegerParam
  • 多重度:1

CanTrcvChannelUsed

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvChannelUsed
  • 型:BooleanParam
  • 多重度:1

CanTrcvControlsPowerSupply

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvControlsPowerSupply
  • 型:BooleanParam
  • 多重度:1

CanTrcvHwPnSupport

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvHwPnSupport
  • 型:BooleanParam
  • 多重度:1

CanTrcvInitState

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvInitState
  • 型:EnumerationParam
  • 多重度:1

CanTrcvMaxBaudrate

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvMaxBaudrate
  • 型:IntegerParam
  • 多重度:1

CanTrcvWakeupByBusUsed

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

CanTrcvWakeupSourceRef

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvWakeupSourceRef
  • 型:Reference
  • 多重度:0..1

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

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..*

CanTrcvPartialNetwork

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

CanTrcvBaudRate

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvBaudRate
  • 型:IntegerParam
  • 多重度:1

CanTrcvBusErrFlag

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvBusErrFlag
  • 型:BooleanParam
  • 多重度:1

CanTrcvPnCanIdIsExtended

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvPnCanIdIsExtended
  • 型:BooleanParam
  • 多重度:1

CanTrcvPnEnabled

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvPnEnabled
  • 型:BooleanParam
  • 多重度:1

CanTrcvPnFrameCanId

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvPnFrameCanId
  • 型:IntegerParam
  • 多重度:1

CanTrcvPnFrameCanIdMask

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvPnFrameCanIdMask
  • 型:IntegerParam
  • 多重度:1

CanTrcvPnFrameDlc

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvPnFrameDlc
  • 型:IntegerParam
  • 多重度:1

CanTrcvPowerOnFlag

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvPowerOnFlag
  • 型:BooleanParam
  • 多重度:1

CanTrcvPnFrameDataMaskSpec

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

CanTrcvPnFrameDataMask

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvPnFrameDataMaskSpec/CanTrcvPnFrameDataMask
  • 型:IntegerParam
  • 多重度:1

CanTrcvPnFrameDataMaskIndex

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvConfigSet/CanTrcvChannel/CanTrcvPartialNetwork/CanTrcvPnFrameDataMaskSpec/CanTrcvPnFrameDataMaskIndex
  • 型:IntegerParam
  • 多重度:1

CanTrcvGeneral

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

CanTrcvDevErrorDetect

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

CanTrcvGetVersionInfo

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

CanTrcvSPICommRetries

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

CanTrcvSPICommTimeout

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

CanTrcvWaitCount

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

CanTrcvWakeUpSupport

/AUTOSAR/EcucDefs/CanTrcv/CanTrcvGeneral/CanTrcvWakeUpSupport
  • 型:EnumerationParam
  • 多重度:1
Last modified 2 years ago Last modified on 07/01/15 18:40:11