Data Fields
GPTimerWFF3_Params Struct Reference

GPTimerWFF3 Parameters. More...

#include <GPTimerWFF3.h>

Collaboration diagram for GPTimerWFF3_Params:
Collaboration graph
[legend]

Data Fields

GPTimerWFF3_HwiFxn hwiCallbackFxn
 
bool intPhaseLate
 
uint8_t prescalerDiv
 
GPTimerWFF3_DebugMode debugStallMode
 
GPTimerWFF3_ChannelCmpDir counterDirChCompare
 
GPTimerWFF3_ChannelProp channelProperty [4]
 

Detailed Description

GPTimerWFF3 Parameters.

GPTimer parameters are used by the GPTimerWFF3_open() call. Default values for these parameters are set using GPTimerWFF3_Params_init().

Note
The prescalerDiv parameter determines the division factor of the system clock being input to the timer counter:
  • 0x00: Divide by 1
  • 0x01: Divide by 2
  • ...
  • 0xFF: Divide by 256
The intPhaseLate parameter which determines if the GPTimerWFF3_INT_TGT and GPTimerWFF3_INT_ZERO interrupt status flags will be set early or late, is specified as follows:
  • false: Interrupt status flags are set one system clock cycle after counter = TARGET/ZERO.
  • true : Interrupt status flags are set one timer clock cycle after counter = TARGET/ZERO.

Please note that if the value of the intPhaseLate parameter is set to false while the prescalerDiv parameter value is high and either the GPTimerWFF3_INT_TGT or GPTimerWFF3_INT_ZERO interrupts are enabled, these interrupts might occur multiple times back-to-back when the interrupts are first triggered. While the counter is active, the timer will hold the state of the counter for one clock period of the timer clock before the counter gets updated. When the timer clock frequency is configured low by a high prescalerDiv parameter value, this hold time might be longer than it takes for the interrupt service routine to clear the interrupt status. This will cause a new interrupt to be immediatly generated. In order to avoid this situation, the intPhaseLate parameter value needs to be set to true. Then the interrupt will occur one timer clock cycle after the counter has reached the TARGET/ZERO value, meaning that the described hold time is reduced to 0.

See also
GPTimerWFF3_Params_init()

Field Documentation

§ hwiCallbackFxn

GPTimerWFF3_HwiFxn GPTimerWFF3_Params::hwiCallbackFxn

Hardware interrupt callback function. This pointer is optional and is only required if GPTimerWFF3_enableInterrupt() is called.

§ intPhaseLate

bool GPTimerWFF3_Params::intPhaseLate

Interrupt phase early or late for TGT and ZERO interrupts

§ prescalerDiv

uint8_t GPTimerWFF3_Params::prescalerDiv

Prescaler division factor

§ debugStallMode

GPTimerWFF3_DebugMode GPTimerWFF3_Params::debugStallMode

Timer debug stall mode

§ counterDirChCompare

GPTimerWFF3_ChannelCmpDir GPTimerWFF3_Params::counterDirChCompare

Timer counter direction for channel compare. Covers all channels

§ channelProperty

GPTimerWFF3_ChannelProp GPTimerWFF3_Params::channelProperty[4]

Channel action and input edge type required for triggering a channel action of capture type


The documentation for this struct was generated from the following file:
© Copyright 1995-2026, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale