1.2.24.10 TCCx_Timer24bitPeriodGet Function

C

/* x = TCC instance number */
uint32_t TCCx_Timer24bitPeriodGet( void );

Summary

Reads the period value of given timer.

Description

This function reads the value of period.

Precondition

TCCx_TimerInitialize() function must have been called first.

Parameters

None.

Returns

Timer's period value.

Example

uint32_t period = 0;
TCC0_TimerInitialize();
period = TCC0_Timer24bitPeriodGet();

Remarks

The caller must know the number of significant bytes of timer. Period value is right-aligned.