wiki:spec/Nm

Version 7 (modified by fujisft-shigihara, 13 months ago) ( diff )

--

Network Management Interface


概要

  • API一覧
API ID
[Dec]
ID
[Hex]
R4.0.3 R4.2.2
Nm_Init 0 0x00
Nm_PassiveStartUp 1 0x01
Nm_NetworkRequest 2 0x02
Nm_NetworkRelease 3 0x03
Nm_DisableCommunication 4 0x04
Nm_EnableCommunication 5 0x05
Nm_SetUserData 6 0x06
Nm_GetUserData 7 0x07
Nm_GetPduData 8 0x08
Nm_RepeatMessageRequest 9 0x09
Nm_GetNodeIdentifier 10 0x0A
Nm_GetLocalNodeIdentifier 11 0x0B
Nm_CheckRemoteSleepIndication 13 0x0D
Nm_GetState 14 0x0E
Nm_GetVersionInfo 15 0x0F
Nm_NetworkStartIndication 17 0x11
Nm_NetworkMode 18 0x12
Nm_BusSleepMode 20 0x14
Nm_PrepareBusSleepMode 19 0x13
Nm_RemoteSleepIndication 23 0x17
Nm_RemoteSleepCancellation 24 0x18
Nm_SynchronizationPoint 25 0x19
Nm_PduRxIndication 21 0x15
Nm_StateChangeNotification 22 0x16
Nm_RepeatMessageIndication 26 0x1A
Nm_TxTimeoutException 27 0x1B
Nm_CarWakeUpIndication 29 0x1D
Nm_CoordReadyToSleepIndication 30 0x1E
Nm_CoordReadyToSleepCancellation 31 0x1F -
Nm_MainFunction 16 0x10
  • エラーコード一覧
エラーコード Dec Hex R4.0.3 R4.2.2
NM_E_UNINIT 0 0x00
NM_E_HANDLE_UNDEF 1 0x01
NM_E_PARAM_POINTER 2 0x02

API仕様

Nm_Init

R4.0.3: void Nm_Init(void)
R4.2.2: void Nm_Init(const Nm_ConfigType* ConfigPtr)

Nm_PassiveStartUp

R4.0.3: Std_ReturnType Nm_PassiveStartUp(const NetworkHandleType NetworkHandle)
R4.2.2: Std_ReturnType Nm_PassiveStartUp(NetworkHandleType NetworkHandle)

Nm_NetworkRequest

R4.0.3: Std_ReturnType Nm_NetworkRequest(const NetworkHandleType NetworkHandle)
R4.2.2: Std_ReturnType Nm_NetworkRequest(NetworkHandleType NetworkHandle)

Nm_NetworkRelease

R4.0.3: Std_ReturnType Nm_NetworkRelease(const NetworkHandleType NetworkHandle)
R4.2.2: Std_ReturnType Nm_NetworkRelease(NetworkHandleType NetworkHandle)

Nm_DisableCommunication

R4.0.3: Std_ReturnType Nm_DisableCommunication(const NetworkHandleType NetworkHandle)
R4.2.2: Std_ReturnType Nm_DisableCommunication(NetworkHandleType NetworkHandle)

Nm_EnableCommunication

R4.0.3: Std_ReturnType Nm_EnableCommunication(const NetworkHandleType NetworkHandle)
R4.2.2: Std_ReturnType Nm_EnableCommunication(NetworkHandleType NetworkHandle)

Nm_SetUserData

R4.0.3: Std_ReturnType Nm_SetUserData(const NetworkHandleType NetworkHandle, const uint8 * const nmUserDataPtr)
R4.2.2: Std_ReturnType Nm_SetUserData(NetworkHandleType NetworkHandle, const uint8* nmUserDataPtr)

Nm_GetUserData

R4.0.3: Std_ReturnType Nm_GetUserData(const NetworkHandleType NetworkHandle, uint8 * const nmUserDataPtr)
R4.2.2: Std_ReturnType Nm_GetUserData(NetworkHandleType NetworkHandle, uint8* nmUserDataPtr)

Nm_GetPduData

R4.0.3: Std_ReturnType Nm_GetPduData(const NetworkHandleType NetworkHandle, uint8 * const nmPduData)
R4.2.2: Std_ReturnType Nm_GetPduData(NetworkHandleType NetworkHandle, uint8* nmPduData)

Nm_RepeatMessageRequest

R4.0.3: Std_ReturnType Nm_RepeatMessageRequest(const NetworkHandleType NetworkHandle)
R4.2.2: Std_ReturnType Nm_RepeatMessageRequest(NetworkHandleType NetworkHandle)

Nm_GetNodeIdentifier

R4.0.3: Std_ReturnType Nm_GetNodeIdentifier(const NetworkHandleType NetworkHandle, uint8 * const nmNodeIdPtr)
R4.2.2: Std_ReturnType Nm_GetNodeIdentifier(NetworkHandleType NetworkHandle, uint8* nmNodeIdPtr)

Nm_GetLocalNodeIdentifier

R4.0.3: Std_ReturnType Nm_GetLocalNodeIdentifier(const NetworkHandleType NetworkHandle, uint8 * const nmNodeIdPtr)
R4.2.2: Std_ReturnType Nm_GetLocalNodeIdentifier(NetworkHandleType NetworkHandle, uint8* nmNodeIdPtr)

Nm_CheckRemoteSleepIndication

R4.0.3: Std_ReturnType Nm_CheckRemoteSleepIndication(const NetworkHandleType nmNetworkHandle, boolean * const nmRemoteSleepIndPtr)
R4.2.2: Std_ReturnType Nm_CheckRemoteSleepIndication(NetworkHandleType nmNetworkHandle, boolean* nmRemoteSleepIndPtr)

Nm_GetState

R4.0.3: Std_ReturnType Nm_GetState(const NetworkHandleType nmNetworkHandle, Nm_StateType* const nmStatePtr, Nm_ModeType* const nmModePtr)
R4.2.2: Std_ReturnType Nm_GetState(NetworkHandleType nmNetworkHandle, Nm_StateType* nmStatePtr, Nm_ModeType* nmModePtr)

Nm_GetVersionInfo

void Nm_GetVersionInfo(Std_VersionInfoType* nmVerInfoPtr)

Nm_NetworkStartIndication

R4.0.3: void Nm_NetworkStartIndication(const NetworkHandleType nmNetworkHandle)
R4.2.2: void Nm_NetworkStartIndication(NetworkHandleType nmNetworkHandle)

Nm_NetworkMode

R4.0.3: void Nm_NetworkMode(const NetworkHandleType nmNetworkHandle)
R4.2.2: void Nm_NetworkMode(NetworkHandleType nmNetworkHandle)

Nm_BusSleepMode

R4.0.3: void Nm_BusSleepMode(const NetworkHandleType nmNetworkHandle)
R4.2.2: void Nm_BusSleepMode(NetworkHandleType nmNetworkHandle)

Nm_PrepareBusSleepMode

R4.0.3: void Nm_PrepareBusSleepMode(const NetworkHandleType nmNetworkHandle)
R4.2.2: void Nm_PrepareBusSleepMode(NetworkHandleType nmNetworkHandle)

Nm_RemoteSleepIndication

R4.0.3: void Nm_RemoteSleepIndication(const NetworkHandleType nmNetworkHandle)
R4.2.2: void Nm_RemoteSleepIndication(NetworkHandleType nmNetworkHandle)

Nm_RemoteSleepCancellation

R4.0.3: void Nm_RemoteSleepCancellation(const NetworkHandleType nmNetworkHandle)
R4.2.2: void Nm_RemoteSleepCancellation(NetworkHandleType nmNetworkHandle)

Nm_SynchronizationPoint

R4.0.3: void Nm_SynchronizationPoint(const NetworkHandleType nmNetworkHandle)
R4.2.2: void Nm_SynchronizationPoint(NetworkHandleType nmNetworkHandle)

Nm_PduRxIndication

R4.0.3: void Nm_PduRxIndication(const NetworkHandleType nmNetworkHandle)
R4.2.2: void Nm_PduRxIndication(NetworkHandleType nmNetworkHandle)

Nm_StateChangeNotification

R4.0.3: void Nm_StateChangeNotification(const NetworkHandleType nmNetworkHandle, const Nm_StateType nmPreviousState, const Nm_StateType nmCurrentState)
R4.2.2: void Nm_StateChangeNotification(NetworkHandleType nmNetworkHandle, Nm_StateType nmPreviousState, Nm_StateType nmCurrentState)

Nm_RepeatMessageIndication

R4.0.3: void Nm_RepeatMessageIndication(const NetworkHandleType nmNetworkHandle)
R4.2.2: void Nm_RepeatMessageIndication(NetworkHandleType nmNetworkHandle)

Nm_TxTimeoutException

R4.0.3: void Nm_TxTimeoutException(const NetworkHandleType nmNetworkHandle)
R4.2.2: void Nm_TxTimeoutException(NetworkHandleType nmNetworkHandle)

Nm_CarWakeUpIndication

R4.0.3: void Nm_CarWakeUpIndication(const NetworkHandleType nmChannelHandle)
R4.2.2: void Nm_CarWakeUpIndication(NetworkHandleType nmChannelHandle)

Nm_CoordReadyToSleepIndication

R4.0.3: void Nm_CoordReadyToSleepIndication(const NetworkHandleType nmChannelHandle)
R4.2.2: void Nm_CoordReadyToSleepIndication(NetworkHandleType nmChannelHandle)

Nm_CoordReadyToSleepCancellation

void Nm_CoordReadyToSleepCancellation(NetworkHandleType nmChannelHandle)

Nm_MainFunction

void Nm_MainFunction(void)

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

NmChannelConfig

/AUTOSAR/EcucDefs/Nm/NmChannelConfig
  • 型:Container
  • 多重度:1..*

NmActiveCoordinator

/AUTOSAR/EcucDefs/Nm/NmChannelConfig/NmActiveCoordinator
  • 型:BooleanParam
  • 多重度:0..1

NmChannelId

/AUTOSAR/EcucDefs/Nm/NmChannelConfig/NmChannelId
  • 型:IntegerParam
  • 多重度:1
  • 上限値:255
  • 下限値:0

NmChannelSleepMaster

/AUTOSAR/EcucDefs/Nm/NmChannelConfig/NmChannelSleepMaster
  • 型:BooleanParam
  • 多重度:1

NmCoordClusterIndex

/AUTOSAR/EcucDefs/Nm/NmChannelConfig/NmCoordClusterIndex
  • 型:IntegerParam
  • 多重度:0..1
  • 上限値:255
  • 下限値:0

NmPassiveModeEnabled

/AUTOSAR/EcucDefs/Nm/NmChannelConfig/NmPassiveModeEnabled
  • 型:BooleanParam
  • 多重度:1

NmShutdownDelayTimer

/AUTOSAR/EcucDefs/Nm/NmChannelConfig/NmShutdownDelayTimer
  • 型:FloatParam
  • 多重度:1
  • 上限値:Inf
  • 下限値:0

NmStateReportEnabled

/AUTOSAR/EcucDefs/Nm/NmChannelConfig/NmStateReportEnabled
  • 型:BooleanParam
  • 多重度:1

NmSynchronizingNetwork

/AUTOSAR/EcucDefs/Nm/NmChannelConfig/NmSynchronizingNetwork
  • 型:BooleanParam
  • 多重度:1

NmComMChannelRef

/AUTOSAR/EcucDefs/Nm/NmChannelConfig/NmComMChannelRef
  • 型:Reference
  • 多重度:1
  • 参照先:/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel

NmStateReportSignalRef

/AUTOSAR/EcucDefs/Nm/NmChannelConfig/NmStateReportSignalRef
  • 型:Reference
  • 多重度:0..1
  • 参照先:/AUTOSAR/EcucDefs/Com/ComConfig/ComSignal

NmBusType

/AUTOSAR/EcucDefs/Nm/NmChannelConfig/NmBusType
  • 型:Container
  • 多重度:1

NmGenericBusNmConfig

/AUTOSAR/EcucDefs/Nm/NmChannelConfig/NmBusType/NmGenericBusNmConfig
  • 型:Container
  • 多重度:
    • R4.0.3:1
    • R4.2.2:0..1

NmGenericBusNmPrefix

/AUTOSAR/EcucDefs/Nm/NmChannelConfig/NmBusType/NmGenericBusNmConfig/NmGenericBusNmPrefix
  • 型:StringParam
  • 多重度:1

NmGenericBusNmShutdownTime

/AUTOSAR/EcucDefs/Nm/NmChannelConfig/NmBusType/NmGenericBusNmConfig/NmGenericBusNmShutdownTime
  • 型:FloatParam
  • 多重度:1
  • 上限値:Inf
  • 下限値:0

NmStandardBusNmConfig

/AUTOSAR/EcucDefs/Nm/NmChannelConfig/NmBusType/NmStandardBusNmConfig
  • 型:Container
  • 多重度:
    • R4.0.3:1
    • R4.2.2:0..1

NmStandardBusType

/AUTOSAR/EcucDefs/Nm/NmChannelConfig/NmBusType/NmStandardBusNmConfig/NmStandardBusType
  • 型:EnumerationParam
  • 多重度:1
  • 選択肢:
    • R4.0.3:
      • NM_BUSNM_CANNM
      • NM_BUSNM_FRNM
      • NM_BUSNM_LINNM
      • NM_BUSNM_UDPNM
    • R4.2.2:
      • NM_BUSNM_CANNM
      • NM_BUSNM_FRNM
      • NM_BUSNM_J1939NM
      • NM_BUSNM_LINNM
      • NM_BUSNM_UDPNM

NmGlobalConfig

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig
  • 型:Container
  • 多重度:1

NmGlobalConstants

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalConstants
  • 型:Container
  • 多重度:1

NmNumberOfChannels

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalConstants/NmNumberOfChannels
  • 型:IntegerParam
  • 多重度:1
  • 上限値:255
  • 下限値:1

NmGlobalFeatures

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalFeatures
  • 型:Container
  • 多重度:1

NmBusSynchronizationEnabled

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalFeatures/NmBusSynchronizationEnabled
  • 型:BooleanParam
  • 多重度:1

NmCarWakeUpCallback

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalFeatures/NmCarWakeUpCallback
  • 型:FunctionName
  • 多重度:0..1

NmCarWakeUpCallout

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalFeatures/NmCarWakeUpCallout
  • 型:FunctionName
  • 多重度:0..1

NmCarWakeUpRxEnabled

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalFeatures/NmCarWakeUpRxEnabled
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

NmComControlEnabled

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalFeatures/NmComControlEnabled
  • 型:BooleanParam
  • 多重度:1

NmComUserDataSupport

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalFeatures/NmComUserDataSupport
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

NmCoordinatorSupportEnabled

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalFeatures/NmCoordinatorSupportEnabled
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

NmCoordinatorSyncSupport

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalFeatures/NmCoordinatorSyncSupport
  • 型:BooleanParam
  • 多重度:1

NmGlobalCoordinatorTime

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalFeatures/NmGlobalCoordinatorTime
  • 型:FloatParam
  • 多重度:0..1
  • 上限値:Inf
  • 下限値:0

NmNodeDetectionEnabled

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalFeatures/NmNodeDetectionEnabled
  • 型:BooleanParam
  • 多重度:1

NmNodeIdEnabled

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalFeatures/NmNodeIdEnabled
  • 型:BooleanParam
  • 多重度:1

NmPassiveModeEnabled

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalFeatures/NmPassiveModeEnabled
  • 型:BooleanParam
  • 多重度:1

NmPduRxIndicationEnabled

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalFeatures/NmPduRxIndicationEnabled
  • 型:BooleanParam
  • 多重度:1

NmRemoteSleepIndEnabled

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalFeatures/NmRemoteSleepIndEnabled
  • 型:BooleanParam
  • 多重度:1

NmRepeatMsgIndEnabled

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalFeatures/NmRepeatMsgIndEnabled
  • 型:BooleanParam
  • 多重度:1

NmStateChangeIndEnabled

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalFeatures/NmStateChangeIndEnabled
  • 型:BooleanParam
  • 多重度:1

NmUserDataEnabled

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalFeatures/NmUserDataEnabled
  • 型:BooleanParam
  • 多重度:1

NmGlobalProperties

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalProperties
  • 型:Container
  • 多重度:1

NmCycletimeMainFunction

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalProperties/NmCycletimeMainFunction
  • 型:FloatParam
  • 多重度:
    • R4.0.3:1
    • R4.2.2:0..1
  • 上限値:Inf
  • 下限値:0

NmDevErrorDetect

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalProperties/NmDevErrorDetect
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

NmVersionInfoApi

/AUTOSAR/EcucDefs/Nm/NmGlobalConfig/NmGlobalProperties/NmVersionInfoApi
  • 型:BooleanParam
  • 多重度:1
Note: See TracWiki for help on using the wiki.