![]() |
![]() |
GPTimerWFF3 Parameters. More...
#include <GPTimerWFF3.h>

GPTimerWFF3 Parameters.
GPTimer parameters are used by the GPTimerWFF3_open() call. Default values for these parameters are set using GPTimerWFF3_Params_init().
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.
| GPTimerWFF3_HwiFxn GPTimerWFF3_Params::hwiCallbackFxn |
Hardware interrupt callback function. This pointer is optional and is only required if GPTimerWFF3_enableInterrupt() is called.
| bool GPTimerWFF3_Params::intPhaseLate |
Interrupt phase early or late for TGT and ZERO interrupts
| uint8_t GPTimerWFF3_Params::prescalerDiv |
Prescaler division factor
| GPTimerWFF3_DebugMode GPTimerWFF3_Params::debugStallMode |
Timer debug stall mode
| GPTimerWFF3_ChannelCmpDir GPTimerWFF3_Params::counterDirChCompare |
Timer counter direction for channel compare. Covers all channels
| GPTimerWFF3_ChannelProp GPTimerWFF3_Params::channelProperty[4] |
Channel action and input edge type required for triggering a channel action of capture type