wiki:spec_CANNetworkManagement
CAN Network Management


概要

  • API一覧
API ID
[Dec]
ID
[Hex]
CanNm_Init 0 0x00
CanNm_PassiveStartUp 1 0x01
CanNm_NetworkRequest 2 0x02
CanNm_NetworkRelease 3 0x03
CanNm_DisableCommunication 12 0x0C
CanNm_EnableCommunication 13 0x0D
CanNm_SetUserData 4 0x04
CanNm_GetUserData 5 0x05
CanNm_Transmit 20 0x14
CanNm_GetNodeIdentifier 6 0x06
CanNm_GetLocalNodeIdentifier 7 0x07
CanNm_RepeatMessageRequest 8 0x08
CanNm_GetPduData 10 0x0A
CanNm_GetState 11 0x0B
CanNm_GetVersionInfo 241 0xF1
CanNm_RequestBusSynchronization 192 0xC0
CanNm_CheckRemoteSleepIndication 208 0xD0
CanNm_SetSleepReadyBit 23 0x17
CanNm_TxConfirmation 64 0x40
CanNm_RxIndication 66 0x42
CanNm_ConfirmPnAvailability 22 0x16
CanNm_MainFunction 19 0x13
  • エラーコード一覧
エラーコード Dec Hex
CANNM_E_NO_INIT 1 0x01
CANNM_E_INVALID_CHANNEL 2 0x02
CANNM_E_INVALID_PDUID 3 0x03
CANNM_E_NET_START_IND 4 0x04
CANNM_E_INIT_FAILED 5 0x05
CANNM_E_NETWORK_TIMEOUT 17 0x11
CANNM_E_NULL_POINTER 18 0x12

API仕様

CanNm_Init

void CanNm_Init(const CanNm_ConfigType* const cannmConfigPtr)

CanNm_PassiveStartUp

Std_ReturnType CanNm_PassiveStartUp(const NetworkHandleType nmChannelHandle)

CanNm_NetworkRequest

Std_ReturnType CanNm_NetworkRequest(const NetworkHandleType nmChannelHandle)

CanNm_NetworkRelease

Std_ReturnType CanNm_NetworkRelease(const NetworkHandleType nmChannelHandle)

CanNm_DisableCommunication

Std_ReturnType CanNm_DisableCommunication(const NetworkHandleType nmChannelHandle)

CanNm_EnableCommunication

Std_ReturnType CanNm_EnableCommunication(const NetworkHandleType nmChannelHandle)

CanNm_SetUserData

Std_ReturnType CanNm_SetUserData(const NetworkHandleType nmChannelHandle, const uint8* const nmUserDataPtr)

CanNm_GetUserData

Std_ReturnType CanNm_GetUserData(const NetworkHandleType nmChannelHandle, uint8* const nmUserDataPtr)

CanNm_Transmit

Std_ReturnType CanNm_Transmit(PduIdType CanNmTxPduId, const PduInfoType* PduInfoPtr )

CanNm_GetNodeIdentifier

Std_ReturnType CanNm_GetNodeIdentifier(const NetworkHandleType nmChannelHandle, uint8* const nmNodeIdPtr)

CanNm_GetLocalNodeIdentifier

Std_ReturnType CanNm_GetLocalNodeIdentifier(const NetworkHandleType nmChannelHandle, uint8* const nmNodeIdPtr)

CanNm_RepeatMessageRequest

Std_ReturnType CanNm_RepeatMessageRequest(const NetworkHandleType nmChannelHandle)

CanNm_GetPduData

Std_ReturnType CanNm_GetPduData(const NetworkHandleType nmChannelHandle, uint8* const nmPduDataPtr)

CanNm_GetState

Std_ReturnType CanNm_GetState(const NetworkHandleType nmChannelHandle, Nm_StateType* const nmStatePtr, Nm_ModeType* const nmModePtr)

CanNm_GetVersionInfo

void CanNm_GetVersionInfo(Std_VersionInfoType* versioninfo)

CanNm_RequestBusSynchronization

Std_ReturnType CanNm_RequestBusSynchronization(const NetworkHandleType nmChannelHandle)

CanNm_CheckRemoteSleepIndication

Std_ReturnType CanNm_CheckRemoteSleepIndication(const NetworkHandleType nmChannelHandle, boolean* const nmRemoteSleepIndPtr)

CanNm_SetSleepReadyBit

Std_ReturnType CanNm_SetSleepReadyBit(const NetworkHandleType nmChannelHandle, const boolean nmSleepReadyBit)

CanNm_TxConfirmation

void CanNm_TxConfirmation(PduIdType TxPduId)

CanNm_RxIndication

void CanNm_RxIndication(PduIdType RxPduId, const PduInfoType* PduInfoPtr)

CanNm_ConfirmPnAvailability

void CanNm_ConfirmPnAvailability(const NetworkHandleType nmChannelHandle)

CanNm_MainFunction

void CanNm_MainFunction(void)

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

CanNmGlobalConfig

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig
  • 型:Container
  • 多重度:1

CanNmBusLoadReductionEnabled

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmBusLoadReductionEnabled
  • 型:BooleanParam
  • 多重度:1

CanNmBusSynchronizationEnabled

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmBusSynchronizationEnabled
  • 型:BooleanParam
  • 多重度:1

CanNmComControlEnabled

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmComControlEnabled
  • 型:BooleanParam
  • 多重度:1

CanNmComUserDataSupport

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmComUserDataSupport
  • 型:BooleanParam
  • 多重度:1

CanNmCoordinatorSyncSupport

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmCoordinatorSyncSupport
  • 型:BooleanParam
  • 多重度:1

CanNmDevErrorDetect

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmDevErrorDetect
  • 型:BooleanParam
  • 多重度:1

CanNmImmediateRestartEnabled

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmImmediateRestartEnabled
  • 型:BooleanParam
  • 多重度:1

CanNmImmediateTxconfEnabled

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmImmediateTxconfEnabled
  • 型:BooleanParam
  • 多重度:1

CanNmMainFunctionPeriod

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmMainFunctionPeriod
  • 型:FloatParam
  • 多重度:1

CanNmNodeDetectionEnabled

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmNodeDetectionEnabled
  • 型:BooleanParam
  • 多重度:1

CanNmNumberOfChannels

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmNumberOfChannels
  • 型:IntegerParam
  • 多重度:1

CanNmPassiveModeEnabled

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmPassiveModeEnabled
  • 型:BooleanParam
  • 多重度:1

CanNmPduRxIndicationEnabled

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmPduRxIndicationEnabled
  • 型:BooleanParam
  • 多重度:1

CanNmPnEiraCalcEnabled

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmPnEiraCalcEnabled
  • 型:BooleanParam
  • 多重度:0..1

CanNmPnResetTime

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmPnResetTime
  • 型:FloatParam
  • 多重度:0..1

CanNmRemoteSleepIndEnabled

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmRemoteSleepIndEnabled
  • 型:BooleanParam
  • 多重度:1

CanNmRepeatMsgIndEnabled

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmRepeatMsgIndEnabled
  • 型:BooleanParam
  • 多重度:1

CanNmStateChangeIndEnabled

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmStateChangeIndEnabled
  • 型:BooleanParam
  • 多重度:1

CanNmUserDataEnabled

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmUserDataEnabled
  • 型:BooleanParam
  • 多重度:1

CanNmVersionInfoApi

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmVersionInfoApi
  • 型:BooleanParam
  • 多重度:1

CanNmPnEiraRxNSduRef

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmPnEiraRxNSduRef
  • 型:Reference
  • 多重度:0..1

CanNmChannelConfig

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig
  • 型:Container
  • 多重度:1..*

CanNmAllNmMessagesKeepAwake

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmAllNmMessagesKeepAwake
  • 型:BooleanParam
  • 多重度:0..1

CanNmBusLoadReductionActive

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmBusLoadReductionActive
  • 型:BooleanParam
  • 多重度:1

CanNmCarWakeUpBitPosition

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmCarWakeUpBitPosition
  • 型:IntegerParam
  • 多重度:0..1

CanNmCarWakeUpBytePosition

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmCarWakeUpBytePosition
  • 型:IntegerParam
  • 多重度:0..1

CanNmCarWakeUpFilterEnabled

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmCarWakeUpFilterEnabled
  • 型:BooleanParam
  • 多重度:0..1

CanNmCarWakeUpFilterNodeId

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmCarWakeUpFilterNodeId
  • 型:IntegerParam
  • 多重度:0..1

CanNmCarWakeUpRxEnabled

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmCarWakeUpRxEnabled
  • 型:BooleanParam
  • 多重度:1

CanNmImmediateNmCycleTime

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmImmediateNmCycleTime
  • 型:FloatParam
  • 多重度:0..1

CanNmImmediateNmTransmissions

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmImmediateNmTransmissions
  • 型:IntegerParam
  • 多重度:1

CanNmMsgCycleOffset

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmMsgCycleOffset
  • 型:FloatParam
  • 多重度:1

CanNmMsgCycleTime

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmMsgCycleTime
  • 型:FloatParam
  • 多重度:1

CanNmMsgReducedTime

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmMsgReducedTime
  • 型:FloatParam
  • 多重度:1

CanNmMsgTimeoutTime

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmMsgTimeoutTime
  • 型:FloatParam
  • 多重度:1

CanNmNodeId

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmNodeId
  • 型:IntegerParam
  • 多重度:1

CanNmPduCbvPosition

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmPduCbvPosition
  • 型:EnumerationParam
  • 多重度:1

CanNmPduNidPosition

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmPduNidPosition
  • 型:EnumerationParam
  • 多重度:1

CanNmPnEnabled

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmPnEnabled
  • 型:BooleanParam
  • 多重度:0..1

CanNmPnEraCalcEnabled

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmPnEraCalcEnabled
  • 型:BooleanParam
  • 多重度:0..1

CanNmPnHandleMultipleNetworkRequests

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmPnHandleMultipleNetworkRequests
  • 型:BooleanParam
  • 多重度:0..1

CanNmRemoteSleepIndTime

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmRemoteSleepIndTime
  • 型:FloatParam
  • 多重度:1

CanNmRepeatMessageTime

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmRepeatMessageTime
  • 型:FloatParam
  • 多重度:1

CanNmTimeoutTime

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmTimeoutTime
  • 型:FloatParam
  • 多重度:1

CanNmUserDataLength

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmUserDataLength
  • 型:IntegerParam
  • 多重度:1

CanNmWaitBusSleepTime

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmWaitBusSleepTime
  • 型:FloatParam
  • 多重度:1

CanNmPnEraRxNSduRef

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmPnEraRxNSduRef
  • 型:Reference
  • 多重度:0..1

CanNmComMNetworkHandleRef

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmComMNetworkHandleRef
  • 型:Reference
  • 多重度:1

CanNmRxPdu

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmRxPdu
  • 型:Container
  • 多重度:1

CanNmRxPduId

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmRxPdu/CanNmRxPduId
  • 型:IntegerParam
  • 多重度:1

CanNmRxPduRef

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmRxPdu/CanNmRxPduRef
  • 型:Reference
  • 多重度:1

CanNmTxPdu

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmTxPdu
  • 型:Container
  • 多重度:0..1

CanNmTxConfirmationPduId

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmTxPdu/CanNmTxConfirmationPduId
  • 型:IntegerParam
  • 多重度:1

CanNmTxPduRef

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmTxPdu/CanNmTxPduRef
  • 型:Reference
  • 多重度:1

CanNmUserDataTxPdu

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmUserDataTxPdu
  • 型:Container
  • 多重度:0..1

CanNmTxUserDataPduId

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmUserDataTxPdu/CanNmTxUserDataPduId
  • 型:IntegerParam
  • 多重度:1

CanNmTxUserDataPduRef

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmChannelConfig/CanNmUserDataTxPdu/CanNmTxUserDataPduRef
  • 型:Reference
  • 多重度:1

CanNmPnInfo

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmPnInfo
  • 型:Container
  • 多重度:0..1

CanNmPnInfoLength

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmPnInfo/CanNmPnInfoLength
  • 型:IntegerParam
  • 多重度:1

CanNmPnInfoOffset

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmPnInfo/CanNmPnInfoOffset
  • 型:IntegerParam
  • 多重度:1

CanNmPnFilterMaskByte

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmPnInfo/CanNmPnFilterMaskByte
  • 型:Container
  • 多重度:0..7

CanNmPnFilterMaskByteIndex

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmPnInfo/CanNmPnFilterMaskByte/CanNmPnFilterMaskByteIndex
  • 型:IntegerParam
  • 多重度:1

CanNmPnFilterMaskByteValue

/AUTOSAR/EcucDefs/CanNm/CanNmGlobalConfig/CanNmPnInfo/CanNmPnFilterMaskByte/CanNmPnFilterMaskByteValue
  • 型:IntegerParam
  • 多重度:1
Last modified 3 years ago Last modified on 07/01/15 18:39:00