1.3.23.12 1.4.24.12 1.5.22.12 1.6.24.12 1.7.25.12 1.29.26.12 1.30.16.12 1.31.16.12 1.32.29.12 1.33.18.12 1.37.16.12 1.38.24.12 1.39.21.12 1.40.23.12 TCx_Timer32bitPeriodGet Function
C
/* x = TC instance number */
uint32_t TCx_Timer32bitPeriodGet( 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
Param | Description |
---|---|
period - The timer's period value |
Example
uint32_t period = 0;
TC0_TimerInitialize();
period = TC0_Timer32bitPeriodGet();
Remarks
The caller must know the number of significant bytes of timer. Period value is right-aligned.