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 199 GPT_TAMR_TAAMS_PWM | GPT_TAMR_TACM_EDGCNT | \
200 GPT_TAMR_TAPLO_CCP_ON_TO,
218 #define GPT_NUM_INTS 4 232 #define GPT_PARTS_COUNT 2 uint32_t GPTimerCC26XX_Value
Definition: GPTimerCC26XX.h:313
void GPTimerCC26XX_setArg(GPTimerCC26XX_Handle handle, void *arg)
Function to set a custom argument.
GPTimerCC26XX_DebugMode debugStallMode
Definition: GPTimerCC26XX.h:428
ADC_Params params
Definition: Driver_Init.h:11
Definition: GPTimerCC26XX.h:195
GPTimerCC26XX_DebugMode
Definitions for controlling timer debug stall mode.
Definition: GPTimerCC26XX.h:258
Definition: GPTimerCC26XX.h:213
Definition: GPTimerCC26XX.h:271
Definition: GPTimerCC26XX.h:174
struct GPTimerCC26XX_Object GPTimerCC26XX_Object
GPTimer26XX Object.
Definition: GPTimerCC26XX.h:229
uint8_t intNum
Definition: GPTimerCC26XX.h:343
uint32_t arg
Definition: GPTimerCC26XX.h:383
Definition: GPTimerCC26XX.h:261
uint8_t intPriority
Definition: GPTimerCC26XX.h:353
GPTimerCC26XX Parameters.
Definition: GPTimerCC26XX.h:422
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:214
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:272
uint16_t GPTimerCC26XX_IntMask
Definition: GPTimerCC26XX.h:310
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:269
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:704
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:248
uint8_t powerMngrId
Definition: GPTimerCC26XX.h:355
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:242
Definition: GPTimerCC26XX.h:247
GPTimerCC26XX_Config * GPTimerCC26XX_Handle
Definition: GPTimerCC26XX.h:307
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:246
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:299
uint32_t baseAddr
Definition: GPTimerCC26XX.h:341
Definition: GPTimerCC26XX.h:249
Definition: GPTimerCC26XX.h:287
struct GPTimerCC26XX_HWAttrs GPTimerCC26XX_HWAttrs
GPTimer26XX Hardware attributes.
GPTimerCC26XX_Mode mode
Definition: GPTimerCC26XX.h:425
Definition: GPTimerCC26XX.h:251
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:260
Definition: GPTimerCC26XX.h:212
GPTimerCC26XX_SetMatchTiming matchTiming
Definition: GPTimerCC26XX.h:426
Definition: GPTimerCC26XX.h:297
Definition: GPTimerCC26XX.h:245
GPTimer26XX Object.
Definition: GPTimerCC26XX.h:376
GPTimerCC26XX_Part timer
Definition: GPTimerCC26XX.h:357
GPTimerCC26XX_Direction direction
Definition: GPTimerCC26XX.h:427
GPTimer Global configuration.
Definition: GPTimerCC26XX.h:407
#define GPT_PARTS_COUNT
Definition: GPTimerCC26XX.h:232
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:295
GPTimerCC26XX_Width width
Definition: GPTimerCC26XX.h:378
Definition: GPTimerCC26XX.h:198
GPTimer26XX Hardware attributes.
Definition: GPTimerCC26XX.h:338
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:250
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:359
GPTimerCC26XX_Part
Definitions for GPTimer parts (Timer A / Timer B). Used in GPTimer configuration structure GPTimerCC2...
Definition: GPTimerCC26XX.h:226
Definition: GPTimerCC26XX.h:298
Definition: GPTimerCC26XX.h:228
void(* GPTimerCC26XX_HwiFxn)(GPTimerCC26XX_Handle handle, GPTimerCC26XX_IntMask interruptMask)
Definition: GPTimerCC26XX.h:316
GPTimerCC26XX_Interrupt
Definitions for supported GPTimer interrupts. GPTimerCC26XX_IntMask arguments should be a bit vector ...
Definition: GPTimerCC26XX.h:209
void GPTimerCC26XX_stop(GPTimerCC26XX_Handle handle)
Function to stop the specified GPTimer.
GPTimerCC26XX_Part timerPart
Definition: GPTimerCC26XX.h:411
GPTimerCC26XX_Width
Definitions for specifying the GPTimer configuration (width)
Definition: GPTimerCC26XX.h:172
GPTimerCC26XX_Width width
Definition: GPTimerCC26XX.h:424
Definition: GPTimerCC26XX.h:244
GPTimerCC26XX_Object * object
Definition: GPTimerCC26XX.h:409
void GPTimerCC26XX_Params_init(GPTimerCC26XX_Params *params)
Function to initialize the GPTimerCC26XX_Params struct to its default values.
Definition: GPTimerCC26XX.h:211
Definition: GPTimerCC26XX.h:286
const GPTimerCC26XX_HWAttrs * hwAttrs
Definition: GPTimerCC26XX.h:410
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:284