Jump to main content

##

# 2.99.17 RTC_Timer32CounterSet Function

## C

    void RTC_Timer32CounterSet ( uint32_t count )

## Summary

Set the 32-bit Timer Counter Value.

## Description

This function sets the 32-bit timer counter value. The counter will start to count up from this count value. The application may typically set the counter to 0 before starting a timing or counting operation. Calling this function when the timer is running will overwrite the current counter value.

## Precondition

RTC_Initialize, RTC_Timer32Start must have been called for the associated RTC instance. The RTC peripheral should have been configured in 32-bit Timer Counter mode

## Parameters

Param | Description
--- | ---
count | 32-bit value to be loaded in the counter

## Returns

None.

## Example

    // Refer to the description of the RTC_Timer32CounterHasOverflowed()
    // function for example usage of the RTC_Timer32CounterSet() function.

## Remarks

None.