Jump to main content

##

# 2.15.29 CLOCK_GeneratorFrequencyGet Function

## C

    inline static uint32_t CLOCK_GeneratorFrequencyGet(CLOCK_GENERATOR generator);

## Summary

Returns clock generator frequency in Hz.

## Description

This inline function returns clock generator frequency in Hz.

## Precondition

None.

## Parameters

Param | Description
--- | ---
generator | Instance of clock generator from CLOCK_GENERATOR enum

## Returns

Clock frequency in Hz

## Example

    uint32_t freq;
    freq = CLOCK_GeneratorFrequencyGet(CLOCK_GENERATOR_1);
    //or
    freq = CLOCK_GeneratorFrequencyGet(CLOCK_SYSTEM);

## Remarks

None.