1.2.24.59 1.3.24.59 1.4.25.59 1.5.23.59 1.6.25.59 1.7.26.59 1.29.27.59 1.30.17.59 1.31.17.59 1.33.19.59 1.37.17.59 1.40.24.59 TCCx_PWM16bitPeriodGet Function

C

/* x = TCC instance number */
uint16_t TCCx_PWM16bitPeriodGet ( void );

Summary

Reads the period value of a given TCC instance.

Description

This function reads the period value.

Precondition

TCCx_PWMInitialize function must have been called first for the given channel.

Parameters

None

Returns

Period value of TCC instance

Example

uint16_t period;
TCC0_PWMInitialize();
period = TCC0_PWM16bitPeriodGet();

Remarks

None