1.2.24.52 1.3.24.52 1.4.25.52 1.5.23.52 1.6.25.52 1.7.26.52 1.29.27.52 1.30.17.52 1.31.17.52 1.33.19.52 1.37.17.52 1.40.24.52 TCCx_CaptureFrequencyGet Function

C

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

Summary

Provides the given timer's counter-increment frequency.

Description

This function provides the frequency at which the given counter increments. It can be used to convert differences between counter values to real time or real-time intervals to timer period values.

Precondition

TCCx_CaptureInitialize() function must have been called first.

Parameters

None.

Returns

Frequency (in Hz) at which the timer's counter increments.

Example

uint32_t frequency = 0;
TCC0_CaptureInitialize();
frequency = TCC0_CaptureFrequencyGet();

Remarks

None.