1.2.24.26 1.3.24.26 1.4.25.26 1.5.23.26 1.6.25.26 1.7.26.26 1.29.27.26 1.30.17.26 1.31.17.26 1.33.19.26 1.37.17.26 1.40.24.26 TCCx_Compare16bitPeriodGet Function

C

/* x = TCC instance number */
uint16_t TCCx_Compare16bitPeriodGet( 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

uint16_t period = 0;
TCC0_CompareInitialize();
period = TCC0_Compare16bitPeriodGet();

Remarks

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