1.3.23.30 1.4.24.30 1.5.22.30 1.6.24.30 1.7.25.30 1.29.26.30 1.30.16.30 1.31.16.30 1.32.29.30 1.33.18.30 1.37.16.30 1.38.24.30 1.39.21.30 1.40.23.30 TCx_Compare16bitPeriodGet Function
C
/* x = TC instance number */
uint16_t TCx_Compare16bitPeriodGet( void );
Summary
Reads the period value of given timer.
Description
This function reads the value of period.
Precondition
TCx_CompareInitialize() function must have been called first.
Parameters
None.
Returns
Timer's period value
Example
uint16_t period = 0;
TC0_CompareInitialize();
period = TC0_Compare16bitPeriodGet();
Remarks
The caller must know the number of significant bytes of timer. Period value is right-aligned.