1.6.25.67 TCCx_PWM32bitPeriodGet Function

C

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

uint32_t period;
TCC0_PWMInitialize();
period = TCC0_PWM32bitPeriodGet();

Remarks

None.