SHARE
TWEET

RTC Time structure definition

chipant Jun 6th, 2020 585 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.   * @brief  RTC Time structure definition
  3.   */
  4. typedef struct
  5. {
  6.   uint8_t Hours;            /*!< Specifies the RTC Time Hour.
  7.                                  This parameter must be a number between Min_Data = 0 and Max_Data = 12 if the RTC_HourFormat_12 is selected.
  8.                                  This parameter must be a number between Min_Data = 0 and Max_Data = 23 if the RTC_HourFormat_24 is selected  */
  9.  
  10.   uint8_t Minutes;          /*!< Specifies the RTC Time Minutes.
  11.                                  This parameter must be a number between Min_Data = 0 and Max_Data = 59 */
  12.  
  13.   uint8_t Seconds;          /*!< Specifies the RTC Time Seconds.
  14.                                  This parameter must be a number between Min_Data = 0 and Max_Data = 59 */
  15.  
  16.   uint8_t TimeFormat;       /*!< Specifies the RTC AM/PM Time.
  17.                                  This parameter can be a value of @ref RTC_AM_PM_Definitions */
  18.  
  19.   uint32_t SubSeconds;     /*!< Specifies the RTC_SSR RTC Sub Second register content.
  20.                                  This parameter corresponds to a time unit range between [0-1] Second
  21.                                  with [1 Sec / SecondFraction +1] granularity */
  22.  
  23.   uint32_t SecondFraction;  /*!< Specifies the range or granularity of Sub Second register content
  24.                                  corresponding to Synchronous pre-scaler factor value (PREDIV_S)
  25.                                  This parameter corresponds to a time unit range between [0-1] Second
  26.                                  with [1 Sec / SecondFraction +1] granularity.
  27.                                  This field will be used only by HAL_RTC_GetTime function */
  28.  
  29.   uint32_t DayLightSaving;  /*!< Specifies RTC_DayLightSaveOperation: the value of hour adjustment.
  30.                                  This parameter can be a value of @ref RTC_DayLightSaving_Definitions */
  31.  
  32.   uint32_t StoreOperation;  /*!< Specifies RTC_StoreOperation value to be written in the BCK bit
  33.                                  in CR register to store the operation.
  34.                                  This parameter can be a value of @ref RTC_StoreOperation_Definitions */
  35. } RTC_TimeTypeDef;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top