Parameters for TimerP_setup.
Data Fields | |
uint32_t | inputPreScaler |
uint32_t | inputClkHz |
uint32_t | periodInUsec |
uint32_t | oneshotMode |
uint32_t | enableOverflowInt |
uint32_t TimerP_Params::inputPreScaler |
input pre-scaler divisor ro apply
NOTE MUST be power of 2 and between 1 and 256 for GP Timer NOTE MAKE sure this value is not 0
uint32_t TimerP_Params::inputClkHz |
Timer input clock in unit of Hz before pre-scaler, system initialization MUST make any system level muxes, PLLs, power required to input this clock are setup properly
NOTE MAKE sure this value is not 0
uint32_t TimerP_Params::periodInUsec |
Timer period in units of usecs, internally TimerP_Params::inputClkHz and TimerP_Params.inputPreScaler is used to compute the value to be put inside the timer HW register
NOTE MAKE sure this value is not 0
uint32_t TimerP_Params::oneshotMode |
0: continous mode of operation, 1: oneshot mode of operation
uint32_t TimerP_Params::enableOverflowInt |
0: Do not enable timer overflow interrupt, 1: enable timer overflow interrupt