1.10.22.4 1.11.22.4 1.12.23.4 1.13.21.4 1.14.16.4 1.15.17.4 1.16.23.4 1.17.19.4 1.18.19.4 1.19.19.4 1.20.23.4 1.21.24.4 1.22.27.4 1.23.25.4 1.24.22.4 TMRx_FrequencyGet Function

C

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

TMRx_Initialize() function must have been called first.

Parameters

None.

Returns

frequency - The frequency (in Hz) at which the timer's counter increments.

Example

uint32_t frequency;

TMR2_Initialize();
frequency = TMR2_FrequencyGet();

Remarks

None.