|
MG32L003 Standard Peripherals Firmware Library
|
Functions | |
| ErrorStatus | RTC_Init (RTC_InitTypeDef *RTC_InitStruct) |
| Initializes the RTC registers according to the specified parameters in RTC_InitStruct. More... | |
| void | RTC_WriteProtectionCmd (FunctionalState NewState) |
| Enables or disables the RTC registers write protection. More... | |
| ErrorStatus | RTC_EnterInitMode (void) |
| Enters the RTC Initialization mode. More... | |
| void | RTC_ExitInitMode (void) |
| Exits the RTC Initialization mode. More... | |
| ErrorStatus | RTC_WaitForSynchro (void) |
| Waits until the RTC Time and Date registers (RTC_TR and RTC_DR) are synchronized with RTC APB clock. More... | |
| void | RTC_BypassShadowCmd (FunctionalState NewState) |
| Enables or Disables the Bypass Shadow feature. More... | |
| ErrorStatus | RTC_SetTime (uint32_t RTC_Format, RTC_TimeTypeDef *RTC_TimeStruct) |
| Set the RTC current time. More... | |
| void | RTC_TimeStructInit (RTC_TimeTypeDef *RTC_TimeStruct) |
| Fills each RTC_TimeStruct member with its default value (Time = 00h:00min:00sec). More... | |
| void | RTC_GetTime (uint32_t RTC_Format, RTC_TimeTypeDef *RTC_TimeStruct) |
| Get the RTC current Time. More... | |
| ErrorStatus | RTC_SetDate (uint32_t RTC_Format, RTC_DateTypeDef *RTC_DateStruct) |
| Set the RTC current date. More... | |
| void | RTC_DateStructInit (RTC_DateTypeDef *RTC_DateStruct) |
| Fills each RTC_DateStruct member with its default value (Monday, January 01 xx00). More... | |
| void | RTC_GetDate (uint32_t RTC_Format, RTC_DateTypeDef *RTC_DateStruct) |
| Get the RTC current date. More... | |
| void | RTC_SetAlarm1 (uint32_t RTC_Format, RTC_AlarmTypeDef *RTC_AlarmStruct) |
| Set the specified RTC Alarm1. More... | |
| void | RTC_Alarm1StructInit (RTC_AlarmTypeDef *RTC_AlarmStruct) |
| Fills each RTC_AlarmStruct member with its default value (Time = 00h:00mn:00sec / Date = 1st day of the month/Mask = all fields are masked). More... | |
| void | RTC_GetAlarm1 (uint32_t RTC_Format, RTC_AlarmTypeDef *RTC_AlarmStruct) |
| Get the RTC Alarm value and masks. More... | |
| void | RTC_Alarm1Cmd (FunctionalState NewState) |
| Enables or disables the specified RTC Alarm. More... | |
| void | RTC_SetALARM2Period (uint32_t Period) |
| Set the specified RTC Alarm2. More... | |
| void | RTC_1HZ_Config (FunctionalState NewState) |
| Deactive the specified 1HZ out. More... | |
| void | RTC_CalibConfig (uint32_t RTC_CalibPeriod, uint32_t RTC_CalibMinusPulsesValue) |
| Configures the Calibration Settings. More... | |
| FlagStatus | RTC_GetFlagStatus (uint32_t RTC_FLAG) |
| Checks whether the specified RTC flag is set or not. More... | |
| void | RTC_ITConfig (uint32_t RTC_IT, FunctionalState NewState) |
| Enables or disables the specified RTC interrupts. More... | |
| void | RTC_ClearITPendingBit (uint32_t RTC_IT) |
| Clears the RTC's interrupt pending bits. More... | |
| void RTC_1HZ_Config | ( | FunctionalState | NewState | ) |
Deactive the specified 1HZ out.
| NewState | the 1HZ out enable or disable. This parameter can be one of the following values:
|
| None |
| void RTC_Alarm1Cmd | ( | FunctionalState | NewState | ) |
Enables or disables the specified RTC Alarm.
| NewState | new state of the specified alarm. This parameter can be: ENABLE or DISABLE. |
| None |
| void RTC_Alarm1StructInit | ( | RTC_AlarmTypeDef * | RTC_AlarmStruct | ) |
Fills each RTC_AlarmStruct member with its default value (Time = 00h:00mn:00sec / Date = 1st day of the month/Mask = all fields are masked).
| RTC_AlarmStruct | pointer to a RTC_AlarmTypeDef structure which will be initialized. |
| None |
| void RTC_BypassShadowCmd | ( | FunctionalState | NewState | ) |
Enables or Disables the Bypass Shadow feature.
| NewState | new state of the Bypass Shadow feature. This parameter can be: ENABLE or DISABLE. |
| None |
| void RTC_CalibConfig | ( | uint32_t | RTC_CalibPeriod, |
| uint32_t | RTC_CalibMinusPulsesValue | ||
| ) |
Configures the Calibration Settings.
| RTC_CalibPeriod | : |
| RTC_CalibMinusPulsesValue |
| An | ErrorStatus enumeration value:
|
| void RTC_ClearITPendingBit | ( | uint32_t | RTC_IT | ) |
Clears the RTC's interrupt pending bits.
| RTC_IT | specifies the RTC interrupt pending bit to clear. This parameter can be any combination of the following values:
|
| None |
| void RTC_DateStructInit | ( | RTC_DateTypeDef * | RTC_DateStruct | ) |
Fills each RTC_DateStruct member with its default value (Monday, January 01 xx00).
| RTC_DateStruct | pointer to a RTC_DateTypeDef structure which will be initialized. |
| None |
| ErrorStatus RTC_EnterInitMode | ( | void | ) |
Enters the RTC Initialization mode.
| None |
| An | ErrorStatus enumeration value:
|
| void RTC_ExitInitMode | ( | void | ) |
Exits the RTC Initialization mode.
| None |
| None |
| void RTC_GetAlarm1 | ( | uint32_t | RTC_Format, |
| RTC_AlarmTypeDef * | RTC_AlarmStruct | ||
| ) |
Get the RTC Alarm value and masks.
| RTC_Format | specifies the format of the output parameters. This parameter can be one of the following values:
|
| RTC_AlarmStruct | pointer to a RTC_AlarmTypeDef structure that will contains the output alarm configuration values. |
| None |
| void RTC_GetDate | ( | uint32_t | RTC_Format, |
| RTC_DateTypeDef * | RTC_DateStruct | ||
| ) |
Get the RTC current date.
| RTC_Format | specifies the format of the returned parameters. This parameter can be one of the following values:
|
| RTC_DateStruct | pointer to a RTC_DateTypeDef structure that will contain the returned current date configuration. |
| None |
| FlagStatus RTC_GetFlagStatus | ( | uint32_t | RTC_FLAG | ) |
Checks whether the specified RTC flag is set or not.
| RTC_FLAG | specifies the flag to check. This parameter can be one of the following values:
|
| The | new state of RTC_FLAG (SET or RESET). |
| void RTC_GetTime | ( | uint32_t | RTC_Format, |
| RTC_TimeTypeDef * | RTC_TimeStruct | ||
| ) |
Get the RTC current Time.
| RTC_Format | specifies the format of the returned parameters. This parameter can be one of the following values:
|
| RTC_TimeStruct | pointer to a RTC_TimeTypeDef structure that will contain the returned current time configuration. |
| None |
| ErrorStatus RTC_Init | ( | RTC_InitTypeDef * | RTC_InitStruct | ) |
Initializes the RTC registers according to the specified parameters in RTC_InitStruct.
| RTC_InitStruct | pointer to a RTC_InitTypeDef structure that contains the configuration information for the RTC peripheral. |
| An | ErrorStatus enumeration value:
|
| void RTC_ITConfig | ( | uint32_t | RTC_IT, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the specified RTC interrupts.
| RTC_IT | specifies the RTC interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:
|
| NewState | new state of the specified RTC interrupts. This parameter can be: ENABLE or DISABLE. |
| None |
| void RTC_SetAlarm1 | ( | uint32_t | RTC_Format, |
| RTC_AlarmTypeDef * | RTC_AlarmStruct | ||
| ) |
Set the specified RTC Alarm1.
| RTC_Format | specifies the format of the returned parameters. This parameter can be one of the following values:
|
| RTC_AlarmStruct | pointer to a RTC_AlarmTypeDef structure that contains the alarm configuration parameters. |
| None |
| void RTC_SetALARM2Period | ( | uint32_t | Period | ) |
Set the specified RTC Alarm2.
| Period | the Alarm2 cycle time set. This parameter can be a value of Definitions |
| None |
| ErrorStatus RTC_SetDate | ( | uint32_t | RTC_Format, |
| RTC_DateTypeDef * | RTC_DateStruct | ||
| ) |
Set the RTC current date.
| RTC_Format | specifies the format of the entered parameters. This parameter can be one of the following values:
|
| RTC_DateStruct | pointer to a RTC_DateTypeDef structure that contains the date configuration information for the RTC. |
| An | ErrorStatus enumeration value:
|
| ErrorStatus RTC_SetTime | ( | uint32_t | RTC_Format, |
| RTC_TimeTypeDef * | RTC_TimeStruct | ||
| ) |
Set the RTC current time.
| RTC_Format | specifies the format of the entered parameters. This parameter can be one of the following values:
|
| RTC_TimeStruct | pointer to a RTC_TimeTypeDef structure that contains the time configuration information for the RTC. |
| An | ErrorStatus enumeration value:
|
| void RTC_TimeStructInit | ( | RTC_TimeTypeDef * | RTC_TimeStruct | ) |
Fills each RTC_TimeStruct member with its default value (Time = 00h:00min:00sec).
| RTC_TimeStruct | pointer to a RTC_TimeTypeDef structure which will be initialized. |
| None |
| ErrorStatus RTC_WaitForSynchro | ( | void | ) |
Waits until the RTC Time and Date registers (RTC_TR and RTC_DR) are synchronized with RTC APB clock.
| None |
| An | ErrorStatus enumeration value:
|
| void RTC_WriteProtectionCmd | ( | FunctionalState | NewState | ) |
Enables or disables the RTC registers write protection.
| NewState | new state of the write protection. This parameter can be: ENABLE or DISABLE. |
| None |