142 #ifndef ti_drivers_timer_GPTIMERCC26XX__include 143 #define ti_drivers_timer_GPTIMERCC26XX__include 155 #include <ti/sysbios/family/arm/m3/Hwi.h> 158 #undef DEVICE_FAMILY_PATH 159 #define DEVICE_FAMILY_PATH(x) <ti/devices/DEVICE_FAMILY/x> 161 #error "You must define DEVICE_FAMILY at the project level as one of cc26x0, cc26x0r2, cc13x0, etc." 164 #include DEVICE_FAMILY_PATH(inc/hw_gpt.h) 165 #include DEVICE_FAMILY_PATH(driverlib/event.h) 166 #include DEVICE_FAMILY_PATH(driverlib/ioc.h) 167 #include DEVICE_FAMILY_PATH(driverlib/timer.h) 197 GPT_TAMR_TACM_EDGCNT,
200 GPT_TAMR_TACM_EDGTIME,
204 GPT_TAMR_TAAMS_PWM | GPT_TAMR_TACM_EDGCNT | \
205 GPT_TAMR_TAPLO_CCP_ON_TO | GPT_TAMR_TAPWMIE_EN | \
206 GPT_TAMR_TAMRSU_CYCLEUPDATE,
224 #define GPT_NUM_INTS 4 654 static inline GPTimerCC26XX_PinMux GPTimerCC26XX_getPinMux(GPTimerCC26XX_Handle handle)
uint32_t GPTimerCC26XX_Value
Definition: GPTimerCC26XX.h:292
GPTimerCC26XX_DebugMode debugStallMode
Definition: GPTimerCC26XX.h:404
GPTimerCC26XX_DebugMode
Definitions for controlling timer debug stall mode.
Definition: GPTimerCC26XX.h:263
Definition: GPTimerCC26XX.h:219
Definition: GPTimerCC26XX.h:236
Definition: GPTimerCC26XX.h:175
struct GPTimerCC26XX_Object GPTimerCC26XX_Object
GPTimer26XX Object.
Definition: GPTimerCC26XX.h:235
uint8_t intNum
Definition: GPTimerCC26XX.h:322
Definition: GPTimerCC26XX.h:266
uint8_t intPriority
Definition: GPTimerCC26XX.h:332
GPTimerCC26XX Parameters.
Definition: GPTimerCC26XX.h:400
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:187
Definition: GPTimerCC26XX.h:220
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...
uint16_t GPTimerCC26XX_IntMask
Definition: GPTimerCC26XX.h:289
void GPTimerCC26XX_disableInterrupt(GPTimerCC26XX_Handle handle, GPTimerCC26XX_IntMask interruptMask)
Function to disable a set of GPTimer interrupt sources.
void GPTimerCC26XX_unregisterInterrupt(GPTimerCC26XX_Handle handle)
Function to disable a CPU interrupt for a given timer handle and disable all interrupt sources for co...
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:253
uint8_t powerMngrId
Definition: GPTimerCC26XX.h:334
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:247
Definition: GPTimerCC26XX.h:252
GPTimerCC26XX_Config * GPTimerCC26XX_Handle
Definition: GPTimerCC26XX.h:286
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:251
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:278
uint32_t baseAddr
Definition: GPTimerCC26XX.h:320
Definition: GPTimerCC26XX.h:254
struct GPTimerCC26XX_HWAttrs GPTimerCC26XX_HWAttrs
GPTimer26XX Hardware attributes.
GPTimerCC26XX_Mode mode
Definition: GPTimerCC26XX.h:403
Definition: GPTimerCC26XX.h:256
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:265
Definition: GPTimerCC26XX.h:218
Definition: GPTimerCC26XX.h:276
Definition: GPTimerCC26XX.h:250
GPTimer26XX Object.
Definition: GPTimerCC26XX.h:355
GPTimerCC26XX_Part timer
Definition: GPTimerCC26XX.h:336
GPTimer Global configuration.
Definition: GPTimerCC26XX.h:385
Definition: GPTimerCC26XX.h:176
GPTimerCC26XX_Edge
Definitions for controlling edges used for timer capture. Used in GPTimer edge-time and edge-count mo...
Definition: GPTimerCC26XX.h:274
GPTimerCC26XX_Width width
Definition: GPTimerCC26XX.h:357
Definition: GPTimerCC26XX.h:203
GPTimer26XX Hardware attributes.
Definition: GPTimerCC26XX.h:317
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:190
Definition: GPTimerCC26XX.h:255
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:338
GPTimerCC26XX_Part
Definitions for GPTimer parts (Timer A / Timer B). Used in GPTimer configuration structure GPTimerCC2...
Definition: GPTimerCC26XX.h:232
Definition: GPTimerCC26XX.h:277
Definition: GPTimerCC26XX.h:234
void(* GPTimerCC26XX_HwiFxn)(GPTimerCC26XX_Handle handle, GPTimerCC26XX_IntMask interruptMask)
Definition: GPTimerCC26XX.h:295
GPTimerCC26XX_Interrupt
Definitions for supported GPTimer interrupts. GPTimerCC26XX_IntMask arguments should be a bit vector ...
Definition: GPTimerCC26XX.h:215
void GPTimerCC26XX_stop(GPTimerCC26XX_Handle handle)
Function to stop the specified GPTimer.
GPTimerCC26XX_Part timerPart
Definition: GPTimerCC26XX.h:389
GPTimerCC26XX_Width
Definitions for specifying the GPTimer configuration (width)
Definition: GPTimerCC26XX.h:173
GPTimerCC26XX_Width width
Definition: GPTimerCC26XX.h:402
Definition: GPTimerCC26XX.h:199
Definition: GPTimerCC26XX.h:193
Definition: GPTimerCC26XX.h:249
GPTimerCC26XX_Object * object
Definition: GPTimerCC26XX.h:387
void GPTimerCC26XX_Params_init(GPTimerCC26XX_Params *params)
Function to initialize the GPTimerCC26XX_Params struct to its default values.
Definition: GPTimerCC26XX.h:217
const GPTimerCC26XX_HWAttrs * hwAttrs
Definition: GPTimerCC26XX.h:388
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:196