1.3.23.7 1.4.24.7 1.5.22.7 1.6.24.7 1.7.25.7 1.29.26.7 1.30.16.7 1.31.16.7 1.32.29.7 1.33.18.7 1.37.16.7 1.38.24.7 1.39.21.7 1.40.23.7 TCx_Timer16bitPeriodGet Function
C
/* x = TC instance number */
uint16_t TCx_Timer16bitPeriodGet( void );
Summary
Reads the period value of given timer.
Description
This function reads the value of period.
Precondition
TCx_TimerInitialize() function must have been called first.
Parameters
None.
Returns
The timer's period value.
Example
uint16_t period = 0;
TC0_TimerInitialize();
period = TC0_Timer16bitPeriodGet();
Remarks
The caller must know the number of significant bytes of timer. Period value is right-aligned.