wiki:spec_CANStateManager
CAN State Manager


概要

  • API一覧
API ID
[Dec]
ID
[Hex]
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_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_MainFunction 5 0x05
  • エラーコード一覧
    • "--"はDemにより決定される
エラーコード Dec Hex
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_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_MainFunction

void CanSM_MainFunction(void)

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

CanSMConfiguration

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

CanSMModeRequestRepetitionMax

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

CanSMModeRequestRepetitionTime

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

CanSMManagerNetwork

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

CanSMBorCounterL1ToL2

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork/CanSMBorCounterL1ToL2
  • 型:IntegerParam
  • 多重度:1

CanSMBorTimeL1

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork/CanSMBorTimeL1
  • 型:FloatParam
  • 多重度:1

CanSMBorTimeL2

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork/CanSMBorTimeL2
  • 型:FloatParam
  • 多重度:1

CanSMBorTimeTxEnsured

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork/CanSMBorTimeTxEnsured
  • 型:FloatParam
  • 多重度:1

CanSMBorTxConfirmationPolling

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

CanSMComMNetworkHandleRef

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork/CanSMComMNetworkHandleRef
  • 型:Reference
  • 多重度:1

CanSMTransceiverId

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork/CanSMTransceiverId
  • 型:Reference
  • 多重度:0..1

CanSMController

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

CanSMControllerId

/AUTOSAR/EcucDefs/CanSM/CanSMConfiguration/CanSMManagerNetwork/CanSMController/CanSMControllerId
  • 型:Reference
  • 多重度:1

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

CanSMGeneral

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

CanSMDevErrorDetect

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

CanSMMainFunctionTimePeriod

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

CanSMVersionInfoApi

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

CanSmChangeBaudrateApi

/AUTOSAR/EcucDefs/CanSM/CanSMGeneral/CanSmChangeBaudrateApi
  • 型:BooleanParam
  • 多重度:1
Last modified 2 years ago Last modified on 07/01/15 18:39:41