1.5.21.31 RTC_Timer16CounterSet Function
C
void RTC_Timer16CounterSet ( uint16_t count )
Summary
Set the 16-bit Timer Counter Value.
Description
This function sets the 16-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_Timer16Start must have been called for the associated RTC instance. The RTC peripheral should have been configured in 16-bit Timer Counter mode
Parameters
Param | Description |
---|---|
count | 16-bit value to be loaded in the counter |
Returns
None.
Example
// Refer to the description of the RTC_Timer16CounterHasOverflowed() // function for example usage of the RTC_Timer16CounterSet() function.
Remarks
None.