1.10.22.7 1.11.22.7 1.12.23.7 1.13.21.7 1.14.16.7 1.15.17.7 1.16.23.7 1.17.19.7 1.18.19.7 1.19.19.7 1.20.23.7 1.21.24.7 1.22.27.7 1.23.25.7 1.24.22.7 TMRx_PeriodGet Function
C
/* x = TMR instance number */
uint16_t TMRx_PeriodGet(void);
Summary
Reads the period value of given timer.
Description
This function reads the value of period of a given timer.
Precondition
TMRx_Initialize() function must have been called first.
Parameters
None.
Returns
The timer's period value.
Example
uint16_t period; TMR2_Initialize(); period = TMR2_PeriodGet();
Remarks
If timer is operating on 32 bit mode then return value should be uint32_t type.