1.2.24.31 1.3.24.31 1.4.25.31 1.5.23.31 1.6.25.31 1.7.26.31 1.29.27.31 1.30.17.31 1.31.17.31 1.33.19.31 1.37.17.31 1.40.24.31 TCCx_Compare24bitPeriodGet Function

C

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

Summary

Reads the period value of given timer.

Description

This function reads the value of period.

Precondition

TCCx_CompareInitialize() function must have been called first.

Parameters

None.

Returns

Timer's period value.

Example

uint32_t period = 0;
TCC0_CompareInitialize();
period = TCC0_Compare24bitPeriodGet();

Remarks

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