18#define GPT_ID_GET_VERSION_INFO 0x00u
19#define GPT_ID_INIT 0x01u
20#define GPT_ID_DEINIT 0x02u
21#define GPT_ID_GET_TIME_ELAPSED 0x03u
22#define GPT_ID_GET_TIME_REMAINING 0x04u
23#define GPT_ID_START_TIMER 0x05u
24#define GPT_ID_STOP_TIMER 0x06u
25#define GPT_ID_ENABLE_NOTIFICATION 0x07u
26#define GPT_ID_DISABLE_NOTIFICATION 0x08u
35#define GPT_E_UNINIT 0x0Au
36#define GPT_E_ALREADY_INITIALIZED 0x0Du
37#define GPT_E_INIT_FAILED 0x0Eu
38#define GPT_E_PARAM_CHANNEL 0x14u
39#define GPT_E_PARAM_VALUE 0x15u
40#define GPT_E_PARAM_POINTER 0x16u
41#define GPT_E_PARAM_PREDEF_TIMER 0x17u
42#define GPT_E_PARAM_MODE 0x1Fu
51#define GPT_STATIC static
struct _Gpt_ChannelType Gpt_ChannelConfigType
Config Elements of a GPT
Gpt_ChannelType
Numeric ID of a GPT channel
Definition Gpt_Types.h:96
@ GPT_CHANNEL_0
Definition Gpt_Types.h:97
@ GPT_CHANNEL_1
Definition Gpt_Types.h:98
struct _Gpt_HwUnit Gpt_HwUnit
Hardware control unit structure
struct _Gpt_ConfigType Gpt_ConfigType
Definition of the external data structure containing the initialization data
enum _Gpt_StatusType Gpt_StatusType
Hardware unit status datatype
uint32 Gpt_ValueType
Type for reading and setting the timer values (in number of ticks).
Definition Gpt_Types.h:106
_Gpt_StatusType
Hardware unit status datatype
Definition Gpt_Types.h:115
@ GPT_STATE_INIT
Definition Gpt_Types.h:117
@ GPT_STATE_UNINIT
Definition Gpt_Types.h:116
This file contains definitions and configurations for the NVIC.
Config Elements of a GPT
Definition Gpt_Types.h:64
uint8 GptReference
Definition Gpt_Types.h:66
uint8 GptChannelMode
Definition Gpt_Types.h:67
uint16 GptChannelPrescaler
Definition Gpt_Types.h:68
void(* GptNotification)(void)
Definition Gpt_Types.h:69
uint8 GptChannelId
Definition Gpt_Types.h:65
Definition of the external data structure containing the initialization data
Definition Gpt_Types.h:85
uint8 NumberOfChannels
Definition Gpt_Types.h:87
const Gpt_ChannelConfigType * Channels
Definition Gpt_Types.h:86
Hardware control unit structure
Definition Gpt_Types.h:127
const Gpt_ConfigType * Config
Definition Gpt_Types.h:128
Gpt_StatusType HwUnitState
Definition Gpt_Types.h:129