wiki:spec/Port
Port Driver


概要

  • API一覧
API ID
[Dec]
ID
[Hex]
R4.0.3 R4.2.2
Port_Init 0 0x00
Port_SetPinDirection 1 0x01
Port_RefreshPortDirection 2 0x02
Port_GetVersionInfo 3 0x03
Port_SetPinMode 4 0x04
  • エラーコード一覧
エラーコード Dec Hex R4.0.3 R4.2.2
PORT_E_PARAM_PIN 10 0x0A
PORT_E_DIRECTION_UNCHANGEABLE 11 0x0B
PORT_E_PARAM_CONFIG 12 0x0C -
PORT_E_INIT_FAILED 12 0x0C -
PORT_E_PARAM_INVALID_MODE 13 0x0D
PORT_E_MODE_UNCHANGEABLE 14 0x0E
PORT_E_UNINIT 15 0x0F
PORT_E_PARAM_POINTER 16 0x10

API仕様

Port_Init

void Port_Init(const Port_ConfigType* ConfigPtr)

Port_SetPinDirection

void Port_SetPinDirection(Port_PinType Pin, Port_PinDirectionType Direction)

Port_RefreshPortDirection

void Port_RefreshPortDirection(void)

Port_GetVersionInfo

void Port_GetVersionInfo(Std_VersionInfoType* versioninfo)

Port_SetPinMode

void Port_SetPinMode(Port_PinType Pin, Port_PinModeType Mode)

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

PortConfigSet

/AUTOSAR/EcucDefs/Port/PortConfigSet
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11
  • SWSタグ: ECUC_Port_00121
  • タイプ: PARAM-CONF-CONTAINER
  • 多重度: 1

PortContainer

/AUTOSAR/EcucDefs/Port/PortConfigSet/PortContainer
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11
  • SWSタグ: ECUC_Port_00122
  • タイプ: PARAM-CONF-CONTAINER
  • 多重度: 1..*

PortNumberOfPortPins

/AUTOSAR/EcucDefs/Port/PortConfigSet/PortContainer/PortNumberOfPortPins
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11
  • SWSタグ: ECUC_Port_00124
  • タイプ: INTEGER-PARAM
  • 多重度: 1
  • 上限値: 65535
  • 下限値: 1

PortPin

/AUTOSAR/EcucDefs/Port/PortConfigSet/PortContainer/PortPin
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11
  • SWSタグ: ECUC_Port_00118
  • タイプ: PARAM-CONF-CONTAINER
  • 多重度: 1..*

PortPinDirection

/AUTOSAR/EcucDefs/Port/PortConfigSet/PortContainer/PortPin/PortPinDirection
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11
  • SWSタグ: ECUC_Port_00125
  • タイプ: ENUMERATION-PARAM
  • 多重度: 1
  • 選択肢:
    • PORT_PIN_IN
    • PORT_PIN_OUT

PortPinDirectionChangeable

/AUTOSAR/EcucDefs/Port/PortConfigSet/PortContainer/PortPin/PortPinDirectionChangeable
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11
  • SWSタグ: ECUC_Port_00126
  • タイプ: BOOLEAN-PARAM
  • 多重度: 1

PortPinEcucPartitionRef

/AUTOSAR/EcucDefs/Port/PortConfigSet/PortContainer/PortPin/PortPinEcucPartitionRef

PortPinId

/AUTOSAR/EcucDefs/Port/PortConfigSet/PortContainer/PortPin/PortPinId
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11
  • SWSタグ: ECUC_Port_00127
  • タイプ: INTEGER-PARAM
  • 多重度: 1
  • 上限値: 65535
  • 下限値: 1

PortPinInitialMode

/AUTOSAR/EcucDefs/Port/PortConfigSet/PortContainer/PortPin/PortPinInitialMode
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11
  • SWSタグ: ECUC_Port_00128
  • タイプ: ENUMERATION-PARAM
  • 多重度: 1
  • 選択肢:
    • PORT_PIN_MODE_ADC
    • PORT_PIN_MODE_CAN
    • PORT_PIN_MODE_DIO
    • PORT_PIN_MODE_DIO_GPT
    • PORT_PIN_MODE_DIO_WDG
    • PORT_PIN_MODE_FLEXRAY
    • PORT_PIN_MODE_ICU
    • PORT_PIN_MODE_LIN
    • PORT_PIN_MODE_MEM
    • PORT_PIN_MODE_PWM
    • PORT_PIN_MODE_SPI

PortPinLevelValue

/AUTOSAR/EcucDefs/Port/PortConfigSet/PortContainer/PortPin/PortPinLevelValue
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11
  • SWSタグ: ECUC_Port_00129
  • タイプ: ENUMERATION-PARAM
  • 多重度: 1
  • 選択肢:
    • PORT_PIN_LEVEL_HIGH
    • PORT_PIN_LEVEL_LOW

PortPinMode

/AUTOSAR/EcucDefs/Port/PortConfigSet/PortContainer/PortPin/PortPinMode
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11
  • SWSタグ: ECUC_Port_00130
  • タイプ: ENUMERATION-PARAM
  • 多重度: 1..*
  • 選択肢:
    • PORT_PIN_MODE_ADC
    • PORT_PIN_MODE_CAN
    • PORT_PIN_MODE_DIO
    • PORT_PIN_MODE_DIO_GPT
    • PORT_PIN_MODE_DIO_WDG
    • PORT_PIN_MODE_FLEXRAY
    • PORT_PIN_MODE_ICU
    • PORT_PIN_MODE_LIN
    • PORT_PIN_MODE_MEM
    • PORT_PIN_MODE_PWM
    • PORT_PIN_MODE_SPI

PortPinModeChangeable

/AUTOSAR/EcucDefs/Port/PortConfigSet/PortContainer/PortPin/PortPinModeChangeable
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11
  • SWSタグ: ECUC_Port_00134
  • タイプ: BOOLEAN-PARAM
  • 多重度: 1

PortGeneral

/AUTOSAR/EcucDefs/Port/PortGeneral
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11
  • SWSタグ: ECUC_Port_00117
  • タイプ: PARAM-CONF-CONTAINER
  • 多重度: 1

PortDevErrorDetect

/AUTOSAR/EcucDefs/Port/PortGeneral/PortDevErrorDetect
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11
  • SWSタグ: ECUC_Port_00123
  • タイプ: BOOLEAN-PARAM
  • 多重度: 1
  • デフォルト値:
    • R4.3.1/R4.4.0/R19-11/R20-11: false

PortEcucPartitionRef

/AUTOSAR/EcucDefs/Port/PortGeneral/PortEcucPartitionRef

PortSetPinDirectionApi

/AUTOSAR/EcucDefs/Port/PortGeneral/PortSetPinDirectionApi
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11
  • SWSタグ: ECUC_Port_00131
  • タイプ: BOOLEAN-PARAM
  • 多重度: 1

PortSetPinModeApi

/AUTOSAR/EcucDefs/Port/PortGeneral/PortSetPinModeApi
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11
  • SWSタグ: ECUC_Port_00132
  • タイプ: BOOLEAN-PARAM
  • 多重度: 1

PortVersionInfoApi

/AUTOSAR/EcucDefs/Port/PortGeneral/PortVersionInfoApi
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11
  • SWSタグ: ECUC_Port_00133
  • タイプ: BOOLEAN-PARAM
  • 多重度: 1
  • デフォルト値:
    • R4.3.1/R4.4.0/R19-11/R20-11: false
Last modified 8 months ago Last modified on Dec 21, 2020, 3:29:28 PM
Note: See TracWiki for help on using the wiki.