![]() |
![]() |
LGPTimerLPF3 Parameters. More...
#include <LGPTimerLPF3.h>
LGPTimerLPF3 Parameters.
LGPTimer parameters are used by the LGPTimerLPF3_open() call. Default values for these parameters are set using LGPTimerLPF3_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 LGPTimerLPF3_INT_TGT or LGPTimerLPF3_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.
LGPTimerLPF3_HwiFxn LGPTimerLPF3_Params::hwiCallbackFxn |
Hardware interrupt callback function. This pointer is optional and is only required if LGPTimerLPF3_enableInterrupt() is called.
bool LGPTimerLPF3_Params::intPhaseLate |
Interrupt phase early or late for TGT and ZERO interrupts
uint8_t LGPTimerLPF3_Params::prescalerDiv |
Prescaler division factor
LGPTimerLPF3_DebugMode LGPTimerLPF3_Params::debugStallMode |
Timer debug stall mode
LGPTimerLPF3_ChannelCmpDir LGPTimerLPF3_Params::counterDirChCompare |
Timer counter direction for channel compare. Covers all channels
LGPTimerLPF3_ChannelProp LGPTimerLPF3_Params::channelProperty[3] |
Channel action and input edge type required for triggering a channel action of capture type