wiki:spec/ComM
COM Manager


概要

  • API一覧
API ID
[Dec]
ID
[Hex]
R4.0.3 R4.2.2
ComM_Init 1 0x01
ComM_DeInit 2 0x02
ComM_GetState 52 0x34
ComM_GetStatus 3 0x03
ComM_GetInhibitionStatus 4 0x04
ComM_RequestComMode 5 0x05
ComM_GetMaxComMode 6 0x06
ComM_GetRequestedComMode 7 0x07
ComM_GetCurrentComMode 8 0x08
ComM_PreventWakeUp 9 0x09
ComM_LimitChannelToNoComMode 11 0x0B
ComM_LimitECUToNoComMode 12 0x0C
ComM_ReadInhibitCounter 13 0x0D
ComM_ResetInhibitCounter 14 0x0E
ComM_SetECUGroupClassification 15 0x0F
ComM_GetVersionInfo 16 0x10
ComM_Nm_NetworkStartIndication 21 0x15
ComM_Nm_NetworkMode 24 0x18
ComM_Nm_PrepareBusSleepMode 25 0x19
ComM_Nm_BusSleepMode 26 0x1A
ComM_Nm_RestartIndication 27 0x1B
ComM_DCM_ActiveDiagnostic 31 0x1F
ComM_DCM_InactiveDiagnostic 32 0x20
ComM_EcuM_WakeUpIndication 42 0x2A
ComM_CommunicationAllowed 53 0x35
ComM_BusSM_ModeIndication 51 0x33
ComM_MainFunction_<Channel_Id> 96 0x60
  • エラーコード一覧
エラーコード Dec Hex R4.0.3 R4.2.2
COMM_E_NOT_INITED 1 0x01
COMM_E_WRONG_PARAMETERS 2 0x02
COMM_E_PARAM_POINTER 3 0x03 -
COMM_E_INIT_FAILED 4 0x04 -

API仕様

ComM_Init

R4.0.3: void ComM_Init(void)
R4.2.2: void ComM_Init(const ComM_ConfigType* ConfigPtr)

ComM_DeInit

void ComM_DeInit(void)

ComM_GetState

Std_ReturnType ComM_GetState(NetworkHandleType Channel, ComM_StateType* State)

ComM_GetStatus

Std_ReturnType ComM_GetStatus(ComM_InitStatusType* Status)

ComM_GetInhibitionStatus

Std_ReturnType ComM_GetInhibitionStatus(NetworkHandleType Channel, ComM_InhibitionStatusType* Status)

ComM_RequestComMode

Std_ReturnType ComM_RequestComMode(ComM_UserHandleType User, ComM_ModeType ComMode)

ComM_GetMaxComMode

Std_ReturnType ComM_GetMaxComMode(ComM_UserHandleType User, ComM_ModeType* ComMode)

ComM_GetRequestedComMode

Std_ReturnType ComM_GetRequestedComMode(ComM_UserHandleType User, ComM_ModeType* ComMode)

ComM_GetCurrentComMode

Std_ReturnType ComM_GetCurrentComMode(ComM_UserHandleType User, ComM_ModeType* ComMode)

ComM_PreventWakeUp

Std_ReturnType ComM_PreventWakeUp(NetworkHandleType Channel, boolean Status)

ComM_LimitChannelToNoComMode

Std_ReturnType ComM_LimitChannelToNoComMode(NetworkHandleType Channel, boolean Status)

ComM_LimitECUToNoComMode

Std_ReturnType ComM_LimitECUToNoComMode(boolean Status)

ComM_ReadInhibitCounter

Std_ReturnType ComM_ReadInhibitCounter(uint16* CounterValue)

ComM_ResetInhibitCounter

Std_ReturnType ComM_ResetInhibitCounter(void)

ComM_SetECUGroupClassification

Std_ReturnType ComM_SetECUGroupClassification(ComM_InhibitionStatusType Status)

ComM_GetVersionInfo

void ComM_GetVersionInfo(Std_VersionInfoType* Versioninfo)

ComM_Nm_NetworkStartIndication

void ComM_Nm_NetworkStartIndication(NetworkHandleType Channel)

ComM_Nm_NetworkMode

void ComM_Nm_NetworkMode(NetworkHandleType Channel)

ComM_Nm_PrepareBusSleepMode

void ComM_Nm_PrepareBusSleepMode(NetworkHandleType Channel)

ComM_Nm_BusSleepMode

void ComM_Nm_BusSleepMode(NetworkHandleType Channel)

ComM_Nm_RestartIndication

void ComM_Nm_RestartIndication(NetworkHandleType Channel)

ComM_DCM_ActiveDiagnostic

void ComM_DCM_ActiveDiagnostic(NetworkHandleType Channel)

ComM_DCM_InactiveDiagnostic

void ComM_DCM_InactiveDiagnostic(NetworkHandleType Channel)

ComM_EcuM_WakeUpIndication

void ComM_EcuM_WakeUpIndication(NetworkHandleType Channel)

ComM_CommunicationAllowed

void ComM_CommunicationAllowed(NetworkHandleType Channel, boolean Allowed)

ComM_BusSM_ModeIndication

void ComM_BusSM_ModeIndication(NetworkHandleType Channel, ComM_ModeType* ComMode)

ComM_MainFunction_<Channel_Id>

void ComM_MainFunction_<Channel_Id>(void)

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

ComMConfigSet

/AUTOSAR/EcucDefs/ComM/ComMConfigSet
  • 型:Container
  • 多重度:1

ComMPncEnabled

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMPncEnabled
  • 型:BooleanParam
  • 多重度:0..1
  • デフォルト値:false

ComMChannel

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel
  • 型:Container
  • 多重度:
    • R4.0.3:1..*
    • R4.2.2:1..256

ComMBusType

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel/ComMBusType
  • 型:EnumerationParam
  • 多重度:1
  • 選択肢:
    • R4.0.3:
      • COMM_BUS_TYPE_CAN
      • COMM_BUS_TYPE_ETH
      • COMM_BUS_TYPE_FR
      • COMM_BUS_TYPE_INTERNAL
      • COMM_BUS_TYPE_LIN
    • R4.2.2:
      • COMM_BUS_TYPE_CAN
      • COMM_BUS_TYPE_CDD
      • COMM_BUS_TYPE_ETH
      • COMM_BUS_TYPE_FR
      • COMM_BUS_TYPE_INTERNAL
      • COMM_BUS_TYPE_LIN

ComMCDDBusPrefix

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel/ComMCDDBusPrefix
  • 型:StringParam
  • 多重度:0..1

ComMChannelId

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel/ComMChannelId
  • 型:IntegerParam
  • 多重度:1
  • 上限値:255
  • 下限値:0

ComMFullCommRequestNotificationEnabled

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel/ComMFullCommRequestNotificationEnabled
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

ComMGlobalNvmBlockDescriptor

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel/ComMGlobalNvmBlockDescriptor
  • 型:BooleanParam
  • 多重度:1

ComMMainFunctionPeriod

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel/ComMMainFunctionPeriod
  • 型:FloatParam
  • 多重度:1
  • 上限値:0.1
  • 下限値:0.001
  • デフォルト値:0.02

ComMNoCom

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel/ComMNoCom
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

ComMNoWakeUpInhibitionNvmStorage

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel/ComMNoWakeUpInhibitionNvmStorage
  • 型:BooleanParam
  • 多重度:1

ComMNoWakeup

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel/ComMNoWakeup
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

ComMPncGatewayType

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel/ComMPncGatewayType
  • 型:EnumerationParam
  • 多重度:0..1
  • 選択肢:
    • COMM_GATEWAY_TYPE_ACTIVE
    • COMM_GATEWAY_TYPE_PASSIVE

ComMNetworkManagement

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement
  • 型:Container
  • 多重度:1

ComMNmLightTimeout

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmLightTimeout
  • 型:FloatParam
  • 多重度:0..1
  • 上限値:255
  • 下限値:0
  • デフォルト値:10

ComMNmVariant

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmVariant
  • 型:EnumerationParam
  • 多重度:1
  • 選択肢:
    • FULL
    • LIGHT
    • NONE
    • PASSIVE
  • デフォルト値:
    • R4.2.2:FULL

ComMPncNmRequest

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMPncNmRequest
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

ComMUserPerChannel

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel
  • 型:Container
  • 多重度:
    • R4.0.3:0..*
    • R4.2.2:0..255

ComMUserChannel

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel/ComMUserChannel
  • 型:Reference
  • 多重度:1
  • 参照先:/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMUser

ComMPnc

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMPnc
  • 型:Container
  • 多重度:
    • R4.0.3:0..*
    • R4.2.2:0..56

ComMPncId

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMPnc/ComMPncId
  • 型:IntegerParam
  • 多重度:1
  • 上限値:
    • R4.0.3:47
    • R4.2.2:63
  • 下限値:
    • R4.0.3:0
    • R4.2.2:8

ComMChannelPerPnc

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMPnc/ComMChannelPerPnc
  • 型:Reference
  • 多重度:
    • R4.0.3:1..*
    • R4.2.2:1..256
  • 参照先:/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel

ComMUserPerPnc

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMPnc/ComMUserPerPnc
  • 型:Reference
  • 多重度:
    • R4.0.3:0..*
    • R4.2.2:0..255
  • 参照先:/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMUser

ComMPncComSignal

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMPnc/ComMPncComSignal
  • 型:Container
  • 多重度:0..*

ComMPncComSignalDirection

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMPnc/ComMPncComSignal/ComMPncComSignalDirection
  • 型:EnumerationParam
  • 多重度:1
  • 選択肢:
    • RX
    • TX

ComMPncComSignalKind

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMPnc/ComMPncComSignal/ComMPncComSignalKind
  • 型:EnumerationParam
  • 多重度:
    • R4.0.3:1
    • R4.2.2:0..1
  • 選択肢:
    • EIRA
    • ERA

ComMPncComSignalChannelRef

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMPnc/ComMPncComSignal/ComMPncComSignalChannelRef
  • 型:Reference
  • 多重度:0..1
  • 参照先:/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMChannel

ComMPncComSignalRef

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMPnc/ComMPncComSignal/ComMPncComSignalRef
  • 型:Reference
  • 多重度:1
  • 参照先:/AUTOSAR/EcucDefs/Com/ComConfig/ComSignal

ComMUser

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMUser
  • 型:Container
  • 多重度:
    • R4.0.3:1..*
    • R4.2.2:0..255

ComMUserIdentifier

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMUser/ComMUserIdentifier
  • 型:IntegerParam
  • 多重度:1
  • 上限値:
    • R4.0.3:255
    • R4.2.2:254
  • 下限値:0

ComMUserEcucPartitionRef

/AUTOSAR/EcucDefs/ComM/ComMConfigSet/ComMUser/ComMUserEcucPartitionRef
  • 型:Reference
  • 多重度:0..1
  • 参照先:/AUTOSAR/EcucDefs/EcuC/EcucPartitionCollection/EcucPartition

ComMGeneral

/AUTOSAR/EcucDefs/ComM/ComMGeneral
  • 型:Container
  • 多重度:1

ComMDevErrorDetect

/AUTOSAR/EcucDefs/ComM/ComMGeneral/ComMDevErrorDetect
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

ComMDirectUserMapping

/AUTOSAR/EcucDefs/ComM/ComMGeneral/ComMDirectUserMapping
  • 型:BooleanParam
  • 多重度:0..1
  • デフォルト値:false

ComMEcuGroupClassification

/AUTOSAR/EcucDefs/ComM/ComMGeneral/ComMEcuGroupClassification
  • 型:IntegerParam
  • 多重度:1
  • 上限値:255
  • 下限値:0
  • デフォルト値:3

ComMModeLimitationEnabled

/AUTOSAR/EcucDefs/ComM/ComMGeneral/ComMModeLimitationEnabled
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

ComMNmPassiveModeEnable

/AUTOSAR/EcucDefs/ComM/ComMGeneral/ComMNmPassiveModeEnable
  • 型:BooleanParam
  • 多重度:0..1

ComMPncGatewayEnabled

/AUTOSAR/EcucDefs/ComM/ComMGeneral/ComMPncGatewayEnabled
  • 型:BooleanParam
  • 多重度:0..1
  • デフォルト値:false

ComMPncPrepareSleepTimer

/AUTOSAR/EcucDefs/ComM/ComMGeneral/ComMPncPrepareSleepTimer
  • 型:FloatParam
  • 多重度:0..1
  • 上限値:63
  • 下限値:0

ComMPncSupport

/AUTOSAR/EcucDefs/ComM/ComMGeneral/ComMPncSupport
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

ComMResetAfterForcingNoComm

/AUTOSAR/EcucDefs/ComM/ComMGeneral/ComMResetAfterForcingNoComm
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

ComMSynchronousWakeUp

/AUTOSAR/EcucDefs/ComM/ComMGeneral/ComMSynchronousWakeUp
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:true

ComMTMinFullComModeDuration

/AUTOSAR/EcucDefs/ComM/ComMGeneral/ComMTMinFullComModeDuration
  • 型:FloatParam
  • 多重度:1
  • 上限値:65
  • 下限値:0.001
  • デフォルト値:5

ComMVersionInfoApi

/AUTOSAR/EcucDefs/ComM/ComMGeneral/ComMVersionInfoApi
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:true

ComMWakeupInhibitionEnabled

/AUTOSAR/EcucDefs/ComM/ComMGeneral/ComMWakeupInhibitionEnabled
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

ComMGlobalNvMBlockDescriptor

/AUTOSAR/EcucDefs/ComM/ComMGeneral/ComMGlobalNvMBlockDescriptor
  • 型:Reference
  • 多重度:0..1
  • 参照先:/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor
Last modified 14 months ago Last modified on Sep 11, 2020, 11:35:56 AM
Note: See TracWiki for help on using the wiki.