wiki:spec/CanSM
CAN State Manager


概要

  • API一覧
API ID
[Dec]
ID
[Hex]
R4.0.3 R4.2.2
CanSM_Init 0 0x00
CanSM_GetVersionInfo 1 0x01
CanSM_RequestComMode 2 0x02
CanSM_GetCurrentComMode 3 0x03
CanSM_CheckBaudrate 12 0x0C -
CanSM_ChangeBaudrate 14 0x0E -
CanSM_StartWakeupSource 17 0x11 -
CanSM_StopWakeupSource 18 0x12 -
CanSM_SetBaudrate 13 0x0D -
CanSM_SetIcomConfiguration 15 0x0F -
CanSM_SetEcuPassive 19 0x13 -
CanSM_ControllerBusOff 4 0x04
CanSM_ControllerModeIndication 7 0x07
CanSM_TransceiverModeIndication 9 0x09
CanSM_TxTimeoutException 11 0x0B
CanSM_ClearTrcvWufFlagIndication 8 0x08
CanSM_CheckTransceiverWakeFlagIndication 10 0x0A
CanSM_ConfirmPnAvailability 6 0x06
CanSM_CurrentIcomConfiguration 16 0x10 -
CanSM_MainFunction 5 0x05
  • エラーコード一覧
    • "--"はDemにより決定される
エラーコード Dec Hex R4.0.3 R4.2.2
CANSM_E_UNINIT 1 0x01
CANSM_E_PARAM_POINTER 2 0x02
CANSM_E_INVALID_NETWORK_HANDLE 3 0x03
CANSM_E_PARAM_CONTROLLER 4 0x04
CANSM_E_PARAM_TRANSCEIVER 5 0x05
CANSM_E_BUSOFF_RECOVERY_ACTIVE 6 0x06 -
CANSM_E_WAIT_MODE_INDICATION 7 0x07
CANSM_E_INVALID_COMM_REQUEST 8 0x08 -
CANSM_E_PARAM_INVALID_BAUDRATE 9 0x09 -
CANSM_E_MODE_REQUEST_TIMEOUT 10 0x0A
CANSM_E_BUS_OFF -- --

API仕様

CanSM_Init

void CanSM_Init(const CanSM_ConfigType* ConfigPtr)

CanSM_GetVersionInfo

void CanSM_GetVersionInfo(Std_VersionInfoType* VersionInfo)

CanSM_RequestComMode

Std_ReturnType CanSM_RequestComMode(NetworkHandleType network, ComM_ModeType ComM_Mode)

CanSM_GetCurrentComMode

Std_ReturnType CanSM_GetCurrentComMode(NetworkHandleType network, ComM_ModeType* ComM_ModePtr)

CanSM_CheckBaudrate

Std_ReturnType CanSM_CheckBaudrate(NetworkHandleType network, const uint16 Baudrate)

CanSM_ChangeBaudrate

Std_ReturnType CanSM_ChangeBaudrate(NetworkHandleType network, const uint16 Baudrate)

CanSM_StartWakeupSource

Std_ReturnType CanSM_StartWakeupSource(NetworkHandleType network )

CanSM_StopWakeupSource

Std_ReturnType CanSM_StopWakeupSource(NetworkHandleType network)

CanSM_SetBaudrate

Std_ReturnType CanSM_SetBaudrate(NetworkHandleType Network, uint16 BaudRateConfigID)

CanSM_SetIcomConfiguration

Std_ReturnType CanSM_SetIcomConfiguration(NetworkHandleType Network, IcomConfigIdType ConfigurationId)

CanSM_SetEcuPassive

Std_ReturnType CanSM_SetEcuPassive(boolean CanSM_Passive)

CanSM_ControllerBusOff

void CanSM_ControllerBusOff(uint8 ControllerId)

CanSM_ControllerModeIndication

void CanSM_ControllerModeIndication(uint8 ControllerId, CanIf_ControllerModeType ControllerMode)

CanSM_TransceiverModeIndication

void CanSM_TransceiverModeIndication(uint8 TransceiverId, CanTrcv_TrcvModeType TransceiverMode)

CanSM_TxTimeoutException

void CanSM_TxTimeoutException(NetworkHandleType Channel)

CanSM_ClearTrcvWufFlagIndication

void CanSM_ClearTrcvWufFlagIndication(uint8 Transceiver)

CanSM_CheckTransceiverWakeFlagIndication

void CanSM_CheckTransceiverWakeFlagIndication(uint8 Transceiver)

CanSM_ConfirmPnAvailability

void CanSM_ConfirmPnAvailability(uint8 TransceiverId)

CanSM_CurrentIcomConfiguration

void CanSM_CurrentIcomConfiguration(uint8 ControllerId, IcomConfigIdType ConfigurationId,  IcomSwitch_ErrorType Error)

CanSM_MainFunction

void CanSM_MainFunction(void)

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

CanSMConfiguration

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration
  • 型:Container
  • 多重度:1

CanSMModeRequestRepetitionMax

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMModeRequestRepetitionMax
  • 型:IntegerParam
  • 多重度:1
  • 上限値:255
  • 下限値:0

CanSMModeRequestRepetitionTime

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMModeRequestRepetitionTime
  • 型:FloatParam
  • 多重度:1
  • 上限値:65.535
  • 下限値:0

CanSMManagerNetwork

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork
  • 型:Container
  • 多重度:1..*

CanSMBorCounterL1ToL2

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork/CanSMBorCounterL1ToL2
  • 型:IntegerParam
  • 多重度:1
  • 上限値:255
  • 下限値:0

CanSMBorTimeL1

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork/CanSMBorTimeL1
  • 型:FloatParam
  • 多重度:1
  • 上限値:65.535
  • 下限値:0

CanSMBorTimeL2

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork/CanSMBorTimeL2
  • 型:FloatParam
  • 多重度:1
  • 上限値:65.535
  • 下限値:0

CanSMBorTimeTxEnsured

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork/CanSMBorTimeTxEnsured
  • 型:FloatParam
  • 多重度:1
  • 上限値:65.535
  • 下限値:0

CanSMBorTxConfirmationPolling

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork/CanSMBorTxConfirmationPolling
  • 型:BooleanParam
  • 多重度:1

CanSMEnableBusOffDelay

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork/CanSMEnableBusOffDelay
  • 型:BooleanParam
  • 多重度:0..1
  • デフォルト値:false

CanSMComMNetworkHandleRef

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork/CanSMComMNetworkHandleRef
  • 型:Reference
  • 多重度:1
  • 参照先:/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel

CanSMTransceiverId

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork/CanSMTransceiverId
  • 型:Reference
  • 多重度:0..1
  • 参照先:/AUTOSAR/EcucDefs/CanIf/CanIfTrcvDrvCfg/CanIfTrcvCfg

CanSMController

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork/CanSMController
  • 型:Container
  • 多重度:1..*

CanSMControllerId

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork/CanSMController/CanSMControllerId
  • 型:Reference
  • 多重度:1
  • 参照先:/AUTOSAR/EcucDefs/CanIf/CanIfCtrlDrvCfg/CanIfCtrlCfg

CanSMDemEventParameterRefs

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork/CanSMDemEventParameterRefs
  • 型:Container
  • 多重度:0..1

CANSM_E_BUS_OFF

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork/CanSMDemEventParameterRefs/CANSM_E_BUS_OFF
  • 型:Reference
  • 多重度:0..1
  • 参照先:/AUTOSAR/EcucDefs/Dem/DemConfigSet/DemEventParameter

CanSMGeneral

/AUTOSAR/EcucDefs/CanSM/CanSMGeneral
  • 型:Container
  • 多重度:1

CanSMDevErrorDetect

/AUTOSAR/EcucDefs/CanSM/CanSMGeneral/CanSMDevErrorDetect
  • 型:BooleanParam
  • 多重度:1

CanSMGetBusOffDelayFunction

/AUTOSAR/EcucDefs/CanSM/CanSMGeneral/CanSMGetBusOffDelayFunction
  • 型:FunctionName
  • 多重度:0..1

CanSMGetBusOffDelayHeader

/AUTOSAR/EcucDefs/CanSM/CanSMGeneral/CanSMGetBusOffDelayHeader
  • 型:StringParam
  • 多重度:0..1

CanSMIcomSupport

/AUTOSAR/EcucDefs/CanSM/CanSMGeneral/CanSMIcomSupport
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

CanSMMainFunctionTimePeriod

/AUTOSAR/EcucDefs/CanSM/CanSMGeneral/CanSMMainFunctionTimePeriod
  • 型:FloatParam
  • 多重度:1
  • 上限値:65.535
  • 下限値:0.001

CanSMPncSupport

/AUTOSAR/EcucDefs/CanSM/CanSMGeneral/CanSMPncSupport
  • 型:BooleanParam
  • 多重度:0..1
  • デフォルト値:false

CanSMSetBaudrateApi

/AUTOSAR/EcucDefs/CanSM/CanSMGeneral/CanSMSetBaudrateApi
  • 型:BooleanParam
  • 多重度:0..1
  • デフォルト値:false

CanSMTxOfflineActiveSupport

/AUTOSAR/EcucDefs/CanSM/CanSMGeneral/CanSMTxOfflineActiveSupport
  • 型:BooleanParam
  • 多重度:0..1

CanSMVersionInfoApi

/AUTOSAR/EcucDefs/CanSM/CanSMGeneral/CanSMVersionInfoApi
  • 型:BooleanParam
  • 多重度:1

CanSmChangeBaudrateApi

/AUTOSAR/EcucDefs/CanSM/CanSMGeneral/CanSmChangeBaudrateApi
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false
Last modified 15 months ago Last modified on Sep 10, 2020, 9:47:31 AM
Note: See TracWiki for help on using the wiki.