wiki:spec/Gpt
GPT Driver


概要

  • API一覧
API ID
[Dec]
ID
[Hex]
R4.0.3 R4.2.2 R21-11
Gpt_GetVersionInfo 0 0x00
Gpt_Init 1 0x01
Gpt_DeInit 2 0x02
Gpt_GetTimeElapsed 3 0x03
Gpt_GetTimeRemaining 4 0x04
Gpt_StartTimer 5 0x05
Gpt_StopTimer 6 0x06
Gpt_EnableNotification 7 0x07
Gpt_DisableNotification 8 0x08
Gpt_SetMode 9 0x09
Gpt_DisableWakeup 10 0x0A
Gpt_EnableWakeup 11 0x0B
Gpt_CheckWakeup 12 0x0C
Gpt_GetPredefTimerValue 13 0x0D -
Gpt_Notification_<channel> -- --
  • エラーコード一覧
エラーコード Dec Hex R4.0.3 R4.2.2 R21-11
GPT_E_UNINIT 10 0x0A
GPT_E_BUSY 11 0x0B
GPT_E_MODE 12 0x0C -
GPT_E_ALREADY_INITIALIZED 13 0x0D
GPT_E_INIT_FAILED 14 0x0E -
GPT_E_PARAM_CHANNEL 20 0x14
GPT_E_PARAM_VALUE 21 0x15
GPT_E_PARAM_POINTER 22 0x16
GPT_E_PARAM_PREDEF_TIMER 23 0x17 -
GPT_E_PARAM_MODE 31 0x1F

API仕様

Gpt_GetVersionInfo

void Gpt_GetVersionInfo(Std_VersionInfoType* VersionInfoPtr)

Gpt_Init

void Gpt_Init(const Gpt_ConfigType* ConfigPtr)

Gpt_DeInit

void Gpt_DeInit(void)

Gpt_GetTimeElapsed

Gpt_ValueType Gpt_GetTimeElapsed(Gpt_ChannelType Channel)

Gpt_GetTimeRemaining

Gpt_ValueType Gpt_GetTimeRemaining(Gpt_ChannelType Channel)

Gpt_StartTimer

void Gpt_StartTimer(Gpt_ChannelType Channel, Gpt_ValueType Value)

Gpt_StopTimer

void Gpt_StopTimer(Gpt_ChannelType Channel)

Gpt_EnableNotification

void Gpt_EnableNotification(Gpt_ChannelType Channel)

Gpt_DisableNotification

void Gpt_DisableNotification(Gpt_ChannelType Channel)

Gpt_SetMode

void Gpt_SetMode(Gpt_ModeType Mode)

Gpt_DisableWakeup

void Gpt_DisableWakeup(Gpt_ChannelType Channel)

Gpt_EnableWakeup

void Gpt_EnableWakeup(Gpt_ChannelType Channel)

Gpt_CheckWakeup

void Gpt_CheckWakeup(EcuM_WakeupSourceType WakeupSource)

Gpt_GetPredefTimerValue

Std_ReturnType Gpt_GetPredefTimerValue(Gpt_PredefTimerType PredefTimer, uint32* TimeValuePtr)

Gpt_Notification_<channel>

void Gpt_Notification_<channel>(void)

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

GptChannelConfigSet

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

GptChannelConfiguration

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

GptChannelClkSrcRef

/AUTOSAR/EcucDefs/Gpt/GptChannelConfigSet/GptChannelConfiguration/GptChannelClkSrcRef

GptChannelEcucPartitionRef

/AUTOSAR/EcucDefs/Gpt/GptChannelConfigSet/GptChannelConfiguration/GptChannelEcucPartitionRef

GptChannelId

/AUTOSAR/EcucDefs/Gpt/GptChannelConfigSet/GptChannelConfiguration/GptChannelId
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
  • SWSタグ: ECUC_Gpt_00308
  • タイプ: INTEGER-PARAM
  • 多重度: 1
  • 上限値: 4294967295
  • 下限値: 0

GptChannelMode

/AUTOSAR/EcucDefs/Gpt/GptChannelConfigSet/GptChannelConfiguration/GptChannelMode
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
  • SWSタグ: ECUC_Gpt_00309
  • タイプ: ENUMERATION-PARAM
  • 多重度: 1
  • 選択肢:
    • GPT_CH_MODE_CONTINUOUS
    • GPT_CH_MODE_ONESHOT

GptChannelTickFrequency

/AUTOSAR/EcucDefs/Gpt/GptChannelConfigSet/GptChannelConfiguration/GptChannelTickFrequency
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
  • SWSタグ: ECUC_Gpt_00331
  • タイプ: FLOAT-PARAM
  • 多重度: 1
  • 上限値: INF
  • 下限値: 0

GptChannelTickValueMax

/AUTOSAR/EcucDefs/Gpt/GptChannelConfigSet/GptChannelConfiguration/GptChannelTickValueMax
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
  • SWSタグ: ECUC_Gpt_00332
  • タイプ: INTEGER-PARAM
  • 多重度: 1
  • 上限値: 18446744073709551615
  • 下限値: 0

GptEnableWakeup

/AUTOSAR/EcucDefs/Gpt/GptChannelConfigSet/GptChannelConfiguration/GptEnableWakeup
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
  • SWSタグ: ECUC_Gpt_00311
  • タイプ: BOOLEAN-PARAM
  • 多重度: 1

GptNotification

/AUTOSAR/EcucDefs/Gpt/GptChannelConfigSet/GptChannelConfiguration/GptNotification
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
  • SWSタグ: ECUC_Gpt_00312
  • タイプ: FUNCTION-NAME
  • 多重度: 0..1

GptWakeupConfiguration

/AUTOSAR/EcucDefs/Gpt/GptChannelConfigSet/GptChannelConfiguration/GptWakeupConfiguration
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
  • SWSタグ: ECUC_Gpt_00235
  • タイプ: PARAM-CONF-CONTAINER
  • 多重度: 0..1

GptWakeupSourceRef

/AUTOSAR/EcucDefs/Gpt/GptChannelConfigSet/GptChannelConfiguration/GptWakeupConfiguration/GptWakeupSourceRef

GptConfigurationOfOptApiServices

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

GptDeinitApi

/AUTOSAR/EcucDefs/Gpt/GptConfigurationOfOptApiServices/GptDeinitApi
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
  • SWSタグ: ECUC_Gpt_00314
  • タイプ: BOOLEAN-PARAM
  • 多重度: 1

GptEnableDisableNotificationApi

/AUTOSAR/EcucDefs/Gpt/GptConfigurationOfOptApiServices/GptEnableDisableNotificationApi
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
  • SWSタグ: ECUC_Gpt_00315
  • タイプ: BOOLEAN-PARAM
  • 多重度: 1

GptTimeElapsedApi

/AUTOSAR/EcucDefs/Gpt/GptConfigurationOfOptApiServices/GptTimeElapsedApi
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
  • SWSタグ: ECUC_Gpt_00317
  • タイプ: BOOLEAN-PARAM
  • 多重度: 1

GptTimeRemainingApi

/AUTOSAR/EcucDefs/Gpt/GptConfigurationOfOptApiServices/GptTimeRemainingApi
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
  • SWSタグ: ECUC_Gpt_00318
  • タイプ: BOOLEAN-PARAM
  • 多重度: 1

GptVersionInfoApi

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

GptWakeupFunctionalityApi

/AUTOSAR/EcucDefs/Gpt/GptConfigurationOfOptApiServices/GptWakeupFunctionalityApi
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
  • SWSタグ: ECUC_Gpt_00320
  • タイプ: BOOLEAN-PARAM
  • 多重度: 1

GptDriverConfiguration

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

GptClockReferencePoint

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

GptClockReference

/AUTOSAR/EcucDefs/Gpt/GptDriverConfiguration/GptClockReferencePoint/GptClockReference

GptDevErrorDetect

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

GptEcucPartitionRef

/AUTOSAR/EcucDefs/Gpt/GptDriverConfiguration/GptEcucPartitionRef

GptKernelEcucPartitionRef

/AUTOSAR/EcucDefs/Gpt/GptDriverConfiguration/GptKernelEcucPartitionRef

GptPredefTimer100us32bitEnable

/AUTOSAR/EcucDefs/Gpt/GptDriverConfiguration/GptPredefTimer100us32bitEnable
  • 対象リビジョン: R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
  • SWSタグ: ECUC_Gpt_00335
  • タイプ: BOOLEAN-PARAM
  • 多重度: 1

GptPredefTimer1usEnablingGrade

/AUTOSAR/EcucDefs/Gpt/GptDriverConfiguration/GptPredefTimer1usEnablingGrade
  • 対象リビジョン: R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
  • SWSタグ: ECUC_Gpt_00334
  • タイプ: ENUMERATION-PARAM
  • 多重度: 1
  • 選択肢:
    • GPT_PREDEF_TIMER_1US_16BIT_ENABLED
    • GPT_PREDEF_TIMER_1US_16_24BIT_ENABLED
    • GPT_PREDEF_TIMER_1US_16_24_32BIT_ENABLED
    • GPT_PREDEF_TIMER_1US_DISABLED

GptReportWakeupSource

/AUTOSAR/EcucDefs/Gpt/GptDriverConfiguration/GptReportWakeupSource
  • 対象リビジョン: R4.0.3/R4.1.3/R4.2.2/R4.3.1/R4.4.0/R19-11/R20-11/R21-11
  • SWSタグ: ECUC_Gpt_00322
  • タイプ: BOOLEAN-PARAM
  • 多重度: 1
Last modified 17 months ago Last modified on Dec 6, 2022, 9:38:22 AM
Note: See TracWiki for help on using the wiki.