1.3.23.36 1.4.24.36 1.5.22.36 1.6.24.36 1.7.25.36 1.29.26.36 1.30.16.36 1.31.16.36 1.32.29.36 1.33.18.36 1.37.16.36 1.38.24.36 1.39.21.36 1.40.23.36 TCx_Compare32bitPeriodGet Function
C
/* x = TC instance number */
uint32_t TCx_Compare32bitPeriodGet( 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
uint32_t period = 0;
TC0_CompareInitialize();
period = TC0_Compare32bitPeriodGet();
Remarks
The caller must know the number of significant bytes of timer. Period value is right-aligned.