1.3.23.17 1.4.24.17 1.5.22.17 1.6.24.17 1.7.25.17 1.29.26.17 1.30.16.17 1.31.16.17 1.32.29.17 1.33.18.17 1.37.16.17 1.38.24.17 1.39.21.17 1.40.23.17 TCx_Timer8bitPeriodGet Function

C

/* x = TC instance number */
uint8_t TCx_Timer8bitPeriodGet( 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

Timer's period value.

Example

uint8_t period = 0;
TCx_TimerInitialize();
period = TCx_Timer8bitPeriodGet();

Remarks

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