This files defines GPT MCAL configuration structures
|
enum | Gpt_ModeType { GPT_MODE_NORMAL = 0U,
GPT_MODE_SLEEP = 1U,
GPT_MODE_INVALID = 0xFFU
} |
| List of process modes. More...
|
|
enum | Gpt_PrescaleValueType {
GPT_PRESCALER_CLK_DIV_BY_2 = 0x0U,
GPT_PRESCALER_CLK_DIV_BY_4 = 0x1U,
GPT_PRESCALER_CLK_DIV_BY_8 = 0x2U,
GPT_PRESCALER_CLK_DIV_BY_16 = 0x3U,
GPT_PRESCALER_CLK_DIV_BY_32 = 0x4U,
GPT_PRESCALER_CLK_DIV_BY_64 = 0x5U,
GPT_PRESCALER_CLK_DIV_BY_128 = 0x6U,
GPT_PRESCALER_CLK_DIV_BY_256 = 0x7U,
GPT_PRESCALER_NO_PRESCALE = 0xFFU
} |
| List of Prescale values for General purpose timer channels The timer counter is prescaled with the value 2^(PTV+1). Example: PTV = 3, counter increases value (if started) after 16 functional clock periods Note: Not applicable to GPT Predef timers. More...
|
|
enum | Gpt_ChannelMode { GPT_CH_MODE_CONTINUOUS = 0U,
GPT_CH_MODE_ONESHOT
} |
| GPT channel mode macros. More...
|
|
enum | Gpt_ChannelStateType {
GPT_UNINITIALIZED = 0U,
GPT_INITIALIZED,
GPT_RUNNING,
GPT_STOPPED,
GPT_EXPIRED
} |
| GPT channel state GPT will be in one of this state during its lifetime. More...
|
|
◆ GPT_PRE_COMPILE_VARIANT
#define GPT_PRE_COMPILE_VARIANT (STD_OFF) |
GPT Pre-Compile Build Variant flag. STD_ON for VariantPreCompile / STD_OFF for VariantPostBuild.
◆ GPT_DEV_ERROR_DETECT
#define GPT_DEV_ERROR_DETECT (STD_ON) |
Enable/disable GPT dev detect error.
◆ GPT_ISR_TYPE
◆ GPT_REPORT_WAKEUP_SOURCE
#define GPT_REPORT_WAKEUP_SOURCE (STD_ON) |
Enable/disable wakeup source in wakeup related APIs.
◆ GPT_VERSION_INFO_API
#define GPT_VERSION_INFO_API (STD_ON) |
Enable/disable GPT get version info API.
◆ GPT_DEINIT_API
#define GPT_DEINIT_API (STD_ON) |
Enable/disable GPT deinit API.
◆ GPT_TIME_ELAPSED_API
#define GPT_TIME_ELAPSED_API (STD_ON) |
Enable/disable GPT get time elapsed API.
◆ GPT_TIME_REMAINING_API
#define GPT_TIME_REMAINING_API (STD_ON) |
Enable/disable GPT time remaining API.
◆ GPT_ENABLE_DISABLE_NOTIFICATION_API
#define GPT_ENABLE_DISABLE_NOTIFICATION_API (STD_ON) |
Enable/disable GPT enable/disable GPT API.
◆ GPT_WAKEUP_FUNCTIONALITY_API
#define GPT_WAKEUP_FUNCTIONALITY_API (STD_ON) |
Enable/disable GPT wakeup functionality API.
◆ GPT_MAX_CHANNELS
#define GPT_MAX_CHANNELS (5U) |
No. of channels configured for GPT driver.
◆ GPT_PREDEF_TIMER_TYPE
#define GPT_PREDEF_TIMER_TYPE (GPT_PREDEF_TIMER_DISABLED) |
Macro for enabling predefined timers This is in case to disable GPT Predef Timers if timers can not be supported by hardware reasons.
◆ GPT_PREDEF_TIMER_1US_ENABLING_GRADE
#define GPT_PREDEF_TIMER_1US_ENABLING_GRADE (GPT_PREDEF_TIMER_1US_DISABLED) |
: Specifies the grade of enabling the GPT Predef Timers with 1us tick duration
◆ GPT_OS_COUNTER_ID
#define GPT_OS_COUNTER_ID ((CounterType)OsCounter_0) |
Counter ID for counter used to count wait ticks.
◆ GPT_TIMEOUT_DURATION
#define GPT_TIMEOUT_DURATION (32000U) |
ETH timeout. Each tick is 31.25us (for 32K Counter). Wait for 5s which comes to below value.
◆ DemConf_DemEventParameter_GPT_DEM_NO_EVENT
#define DemConf_DemEventParameter_GPT_DEM_NO_EVENT (0xFFFFU) |
◆ GPT_DEM_NO_EVENT
◆ GPT_E_HARDWARE_ERROR
#define GPT_E_HARDWARE_ERROR (DemConf_DemEventParameter_GPT_E_HARDWARE_ERROR) |
◆ GPT_REGISTER_READBACK_API
#define GPT_REGISTER_READBACK_API (STD_ON) |
Enable/disable GPT register read back API.
◆ GptConf_GptChannelConfiguration_TIMER1
#define GptConf_GptChannelConfiguration_TIMER1 (11U) |
Channel ID Configured channel ID(s)
Channel identifiers
◆ GptConf_GptChannelConfiguration_MCU_TIMER6
#define GptConf_GptChannelConfiguration_MCU_TIMER6 (6U) |
◆ GptConf_GptChannelConfiguration_MCU_TIMER9
#define GptConf_GptChannelConfiguration_MCU_TIMER9 (9U) |
◆ GptConf_GptChannelConfiguration_TIMER5
#define GptConf_GptChannelConfiguration_TIMER5 (15U) |
◆ GptConf_GptChannelConfiguration_TIMER19
#define GptConf_GptChannelConfiguration_TIMER19 (29U) |
◆ Gpt_ChannelType
Type describing the Gpt channel.
◆ Gpt_ValueType
Type describing the timeout value.
◆ Gpt_NotifyType
typedef void(* Gpt_NotifyType) (void) |
Notification callback function pointer.
◆ Gpt_ModeType
List of process modes.
Enumerator |
---|
GPT_MODE_NORMAL | Normal operation mode of the GPT
|
GPT_MODE_SLEEP | Operation for reduced power operation mode. In sleep mode only wakeup capable channels are available.
|
GPT_MODE_INVALID | Mode end marker
|
◆ Gpt_PrescaleValueType
List of Prescale values for General purpose timer channels The timer counter is prescaled with the value 2^(PTV+1). Example: PTV = 3, counter increases value (if started) after 16 functional clock periods Note: Not applicable to GPT Predef timers.
Enumerator |
---|
GPT_PRESCALER_CLK_DIV_BY_2 | Value used to divide timer clock by 2
|
GPT_PRESCALER_CLK_DIV_BY_4 | Value used to divide timer clock by 4
|
GPT_PRESCALER_CLK_DIV_BY_8 | Value used to divide timer clock by 8
|
GPT_PRESCALER_CLK_DIV_BY_16 | Value used to divide timer clock by 16
|
GPT_PRESCALER_CLK_DIV_BY_32 | Value used to divide timer clock by 32
|
GPT_PRESCALER_CLK_DIV_BY_64 | Value used to divide timer clock by 64
|
GPT_PRESCALER_CLK_DIV_BY_128 | Value used to divide timer clock by 128
|
GPT_PRESCALER_CLK_DIV_BY_256 | Value used to divide timer clock by 256
|
GPT_PRESCALER_NO_PRESCALE | Prescale disabled
|
◆ Gpt_ChannelMode
GPT channel mode macros.
Enumerator |
---|
GPT_CH_MODE_CONTINUOUS | GPT initialized
|
GPT_CH_MODE_ONESHOT | Normal operation mode of the GPT
|
◆ Gpt_ChannelStateType
GPT channel state GPT will be in one of this state during its lifetime.
Enumerator |
---|
GPT_UNINITIALIZED | GPT is uninitialized
|
GPT_INITIALIZED | GPT is initialized
|
GPT_RUNNING | GPT is running
|
GPT_STOPPED | GPT is stopped
|
GPT_EXPIRED | GPT is expired
|
◆ GptChannelConfiguration
const struct Gpt_ConfigType_s GptChannelConfiguration |
◆ Gpt_ChannelConfig_PC
GPT PC Configuration struct declaration.