Martin Johnson / STM32F3-Discovery

Dependents:   Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more

Embed: (wiki syntax)

« Back to documentation index

Daylight Saving configuration functions

Daylight Saving configuration functions
[RTC_Private_Functions]

Daylight Saving configuration functions. More...

Functions

void RTC_DayLightSavingConfig (uint32_t RTC_DayLightSaving, uint32_t RTC_StoreOperation)
 Adds or substract one hour from the current time.
uint32_t RTC_GetStoreOperation (void)
 Returns the RTC Day Light Saving stored operation.

Detailed Description

Daylight Saving configuration functions.

 ===============================================================================
                ##### Daylight Saving configuration functions #####
 ===============================================================================  
    [..] This section provide functions allowing to configure the RTC DayLight Saving.


Function Documentation

void RTC_DayLightSavingConfig ( uint32_t  RTC_DayLightSaving,
uint32_t  RTC_StoreOperation 
)

Adds or substract one hour from the current time.

Parameters:
RTC_DayLightSaveOperation,:the value of hour adjustment. This parameter can be one of the following values:

  • RTC_DayLightSaving_SUB1H: Substract one hour (winter time)
  • RTC_DayLightSaving_ADD1H: Add one hour (summer time)
RTC_StoreOperation,:Specifies the value to be written in the BCK bit in CR register to store the operation. This parameter can be one of the following values:

  • RTC_StoreOperation_Reset: BCK Bit Reset
  • RTC_StoreOperation_Set: BCK Bit Set
Return values:
None

Definition at line 1591 of file stm32f30x_rtc.c.

uint32_t RTC_GetStoreOperation ( void   )

Returns the RTC Day Light Saving stored operation.

Parameters:
None
Return values:
RTCDay Light Saving stored operation.

  • RTC_StoreOperation_Reset
  • RTC_StoreOperation_Set

Definition at line 1618 of file stm32f30x_rtc.c.