143 #ifndef ti_drivers_timer_GPTIMERCC26XX__include 144 #define ti_drivers_timer_GPTIMERCC26XX__include 150 #include <ti/drivers/dpl/HwiP.h> 152 #include <ti/devices/DeviceFamily.h> 153 #include DeviceFamily_constructPath(inc/hw_gpt.h) 154 #include DeviceFamily_constructPath(driverlib/event.h) 155 #include DeviceFamily_constructPath(driverlib/ioc.h) 156 #include DeviceFamily_constructPath(driverlib/timer.h) 163 #define GPT_MODE_ONESHOT_UP GPT_MODE_ONESHOT 164 #define GPT_MODE_PERIODIC_UP GPT_MODE_PERIODIC 165 #define GPT_MODE_EDGE_COUNT_UP GPT_MODE_EDGE_COUNT 166 #define GPT_MODE_EDGE_TIME_UP GPT_MODE_EDGE_TIME 198 GPT_MODE_PWM = GPT_TAMR_TAMR_PERIODIC | GPT_TAMR_TAPWMIE_EN | GPT_TAMR_TAAMS_PWM | GPT_TAMR_TACM_EDGCNT |
199 GPT_TAMR_TAPLO_CCP_ON_TO,
217 #define GPT_NUM_INTS 4 231 #define GPT_PARTS_COUNT 2 600 GPTimerCC26XX_IntMask intMask);
uint32_t GPTimerCC26XX_Value
Definition: GPTimerCC26XX.h:311
void GPTimerCC26XX_setArg(GPTimerCC26XX_Handle handle, void *arg)
Function to set a custom argument.
GPTimerCC26XX_DebugMode debugStallMode
Definition: GPTimerCC26XX.h:425
ADC_Params params
Definition: Driver_Init.h:11
Definition: GPTimerCC26XX.h:195
GPTimerCC26XX_DebugMode
Definitions for controlling timer debug stall mode.
Definition: GPTimerCC26XX.h:257
Definition: GPTimerCC26XX.h:212
Definition: GPTimerCC26XX.h:270
Definition: GPTimerCC26XX.h:174
struct GPTimerCC26XX_Object GPTimerCC26XX_Object
GPTimer26XX Object.
Definition: GPTimerCC26XX.h:228
uint8_t intNum
Definition: GPTimerCC26XX.h:341
uint32_t arg
Definition: GPTimerCC26XX.h:381
Definition: GPTimerCC26XX.h:260
uint8_t intPriority
Definition: GPTimerCC26XX.h:351
GPTimerCC26XX Parameters.
Definition: GPTimerCC26XX.h:419
void GPTimerCC26XX_configureDebugStall(GPTimerCC26XX_Handle handle, GPTimerCC26XX_DebugMode mode)
Function to control timer debug stall mode. When enabled, the timer will stop when the debugger halts...
GPTimerCC26XX_Mode
Definitions for supported GPTimer modes. Driver code assumes only modes using prescaler as timer exte...
Definition: GPTimerCC26XX.h:186
Definition: GPTimerCC26XX.h:213
void GPTimerCC26XX_setLoadValue(GPTimerCC26XX_Handle handle, GPTimerCC26XX_Value loadValue)
Function to set load value of the specified GPTimer. Function can be called while GPTimer is running...
Definition: GPTimerCC26XX.h:271
uint16_t GPTimerCC26XX_IntMask
Definition: GPTimerCC26XX.h:308
Definition: GPTimerCC26XX.h:191
void GPTimerCC26XX_disableInterrupt(GPTimerCC26XX_Handle handle, GPTimerCC26XX_IntMask interruptMask)
Function to disable a set of GPTimer interrupt sources.
GPTimerCC26XX_Direction
Definitions for controlling timer counting direction. Setting the Direction for PWM operation has no ...
Definition: GPTimerCC26XX.h:268
void GPTimerCC26XX_unregisterInterrupt(GPTimerCC26XX_Handle handle)
Function to disable a CPU interrupt for a given timer handle and disable all interrupt sources for co...
static GPTimerCC26XX_PinMux GPTimerCC26XX_getPinMux(GPTimerCC26XX_Handle handle)
Function to return the PIN mux used by the GPTimer identified by handle. This is used to connect a GP...
Definition: GPTimerCC26XX.h:700
void GPTimerCC26XX_registerInterrupt(GPTimerCC26XX_Handle handle, GPTimerCC26XX_HwiFxn callback, GPTimerCC26XX_IntMask intMask)
Function to register a CPU interrupt for a given timer handle and enable a set of timer interrupt sou...
Definition: GPTimerCC26XX.h:247
uint8_t powerMngrId
Definition: GPTimerCC26XX.h:353
GPTimerCC26XX_PinMux
Definitions for input / output ports in IO controller to connect GPTimer to a pin. Used in gptimerCC26xxHWAttrs for static timer configuration PIN driver is used to mux a pin to the timer.
Definition: GPTimerCC26XX.h:241
Definition: GPTimerCC26XX.h:246
GPTimerCC26XX_Config * GPTimerCC26XX_Handle
Definition: GPTimerCC26XX.h:305
void GPTimerCC26XX_setCaptureEdge(GPTimerCC26XX_Handle handle, GPTimerCC26XX_Edge edge)
Function to set which input edge the GPTimer capture should use. Applies to edge-count and edge-time ...
Definition: GPTimerCC26XX.h:245
void GPTimerCC26XX_close(GPTimerCC26XX_Handle handle)
Function to close a GPTimer peripheral specified by the GPTimer handle. Closing timer will releae dep...
Definition: GPTimerCC26XX.h:298
uint32_t baseAddr
Definition: GPTimerCC26XX.h:339
Definition: GPTimerCC26XX.h:248
Definition: GPTimerCC26XX.h:286
struct GPTimerCC26XX_HWAttrs GPTimerCC26XX_HWAttrs
GPTimer26XX Hardware attributes.
GPTimerCC26XX_Mode mode
Definition: GPTimerCC26XX.h:422
Definition: GPTimerCC26XX.h:250
struct GPTimerCC26XX_Params GPTimerCC26XX_Params
GPTimerCC26XX Parameters.
GPTimerCC26XX_Value GPTimerCC26XX_getFreeRunValue(GPTimerCC26XX_Handle handle)
Function to retrieve the current free-running value of timer.
Definition: GPTimerCC26XX.h:259
Definition: GPTimerCC26XX.h:211
GPTimerCC26XX_SetMatchTiming matchTiming
Definition: GPTimerCC26XX.h:423
Definition: GPTimerCC26XX.h:296
Definition: GPTimerCC26XX.h:244
GPTimer26XX Object.
Definition: GPTimerCC26XX.h:374
GPTimerCC26XX_Part timer
Definition: GPTimerCC26XX.h:355
GPTimerCC26XX_Direction direction
Definition: GPTimerCC26XX.h:424
GPTimer Global configuration.
Definition: GPTimerCC26XX.h:404
#define GPT_PARTS_COUNT
Definition: GPTimerCC26XX.h:231
Definition: GPTimerCC26XX.h:193
Definition: GPTimerCC26XX.h:175
GPTimerCC26XX_Edge
Definitions for controlling edges used for timer capture. Used in GPTimer edge-time and edge-count mo...
Definition: GPTimerCC26XX.h:294
GPTimerCC26XX_Width width
Definition: GPTimerCC26XX.h:376
Definition: GPTimerCC26XX.h:198
GPTimer26XX Hardware attributes.
Definition: GPTimerCC26XX.h:336
void GPTimerCC26XX_start(GPTimerCC26XX_Handle handle)
Function to start the specified GPTimer with current settings.
GPTimerCC26XX_Value GPTimerCC26XX_getValue(GPTimerCC26XX_Handle handle)
Function to retrieve the current value of timer This returns the value of the timer in all modes exce...
void GPTimerCC26XX_setMatchValue(GPTimerCC26XX_Handle handle, GPTimerCC26XX_Value matchValue)
Function to set match value of the specified GPTimer. Function can be called while GPTimer is running...
Definition: GPTimerCC26XX.h:249
GPTimerCC26XX_Handle GPTimerCC26XX_open(unsigned int index, const GPTimerCC26XX_Params *params)
This function opens a given GPTimer peripheral. Will set dependency on timer and configure it into sp...
GPTimerCC26XX_PinMux pinMux
Definition: GPTimerCC26XX.h:357
GPTimerCC26XX_Part
Definitions for GPTimer parts (Timer A / Timer B). Used in GPTimer configuration structure GPTimerCC2...
Definition: GPTimerCC26XX.h:225
Definition: GPTimerCC26XX.h:297
Definition: GPTimerCC26XX.h:227
void(* GPTimerCC26XX_HwiFxn)(GPTimerCC26XX_Handle handle, GPTimerCC26XX_IntMask interruptMask)
Definition: GPTimerCC26XX.h:314
GPTimerCC26XX_Interrupt
Definitions for supported GPTimer interrupts. GPTimerCC26XX_IntMask arguments should be a bit vector ...
Definition: GPTimerCC26XX.h:208
void GPTimerCC26XX_stop(GPTimerCC26XX_Handle handle)
Function to stop the specified GPTimer.
GPTimerCC26XX_Part timerPart
Definition: GPTimerCC26XX.h:408
GPTimerCC26XX_Width
Definitions for specifying the GPTimer configuration (width)
Definition: GPTimerCC26XX.h:172
GPTimerCC26XX_Width width
Definition: GPTimerCC26XX.h:421
Definition: GPTimerCC26XX.h:243
GPTimerCC26XX_Object * object
Definition: GPTimerCC26XX.h:406
void GPTimerCC26XX_Params_init(GPTimerCC26XX_Params *params)
Function to initialize the GPTimerCC26XX_Params struct to its default values.
Definition: GPTimerCC26XX.h:210
Definition: GPTimerCC26XX.h:285
const GPTimerCC26XX_HWAttrs * hwAttrs
Definition: GPTimerCC26XX.h:407
void GPTimerCC26XX_enableInterrupt(GPTimerCC26XX_Handle handle, GPTimerCC26XX_IntMask interruptMask)
Function to enable a set of GPTimer interrupt sources. The interrupt to the CPU must be enabled using...
Definition: GPTimerCC26XX.h:189
uint32_t GPTimerCC26XX_getArg(GPTimerCC26XX_Handle handle)
Function to get a custom argument.
GPTimerCC26XX_SetMatchTiming
Definitions for new value loading behaviour.
Definition: GPTimerCC26XX.h:283