MG32F10x Standard Peripherals Firmware Library
|
Functions | |
void | BKP_DeInit (void) |
Deinitializes the BKP peripheral registers to their default reset values. More... | |
void | BKP_TamperPinLevelConfig (uint16_t BKP_TamperPinLevel) |
Configures the Tamper Pin active level. More... | |
void | BKP_TamperPinCmd (FunctionalState NewState) |
Enables or disables the Tamper Pin activation. More... | |
void | BKP_ITConfig (FunctionalState NewState) |
Enables or disables the Tamper Pin Interrupt. More... | |
void | BKP_RTCOutputConfig (uint16_t BKP_RTCOutputSource) |
Select the RTC output source to output on the Tamper pin. More... | |
void | BKP_SetRTCCalibrationValue (uint8_t CalibrationValue) |
Sets RTC Clock Calibration value. More... | |
void | BKP_WriteBackupRegister (uint32_t BKP_DR, uint32_t Data) |
Writes user data to the specified Data Backup Register. More... | |
uint32_t | BKP_ReadBackupRegister (uint32_t BKP_DR) |
Reads data from the specified Data Backup Register. More... | |
FlagStatus | BKP_GetFlagStatus (void) |
Checks whether the Tamper Pin Event flag is set or not. More... | |
void | BKP_ClearFlag (void) |
Clears Tamper Pin Event pending flag. More... | |
ITStatus | BKP_GetITStatus (void) |
Checks whether the Tamper Pin Interrupt has occurred or not. More... | |
void | BKP_ClearITPendingBit (void) |
Clears Tamper Pin Interrupt pending bit. More... | |
void | BKP_RTCCLKConfig (uint32_t BKP_RTCCLKSource) |
Configures the RTC clock (RTCCLK). More... | |
void | BKP_RTCCLKCmd (FunctionalState NewState) |
Enables or disables the RTC clock. More... | |
void | BKP_LSEConfig (uint32_t BKP_LSE) |
Configures the External Low Speed oscillator (LSE). More... | |
FlagStatus | BKP_GetLSEReadyFlagStatus (void) |
Checks whether the LSE Ready flag is set or not. More... | |
void BKP_ClearFlag | ( | void | ) |
Clears Tamper Pin Event pending flag.
None |
None |
void BKP_ClearITPendingBit | ( | void | ) |
Clears Tamper Pin Interrupt pending bit.
None |
None |
void BKP_DeInit | ( | void | ) |
Deinitializes the BKP peripheral registers to their default reset values.
None |
None |
FlagStatus BKP_GetFlagStatus | ( | void | ) |
Checks whether the Tamper Pin Event flag is set or not.
None |
The | new state of the Tamper Pin Event flag (SET or RESET). |
ITStatus BKP_GetITStatus | ( | void | ) |
Checks whether the Tamper Pin Interrupt has occurred or not.
None |
The | new state of the Tamper Pin Interrupt (SET or RESET). |
FlagStatus BKP_GetLSEReadyFlagStatus | ( | void | ) |
Checks whether the LSE Ready flag is set or not.
None |
The | new state of the LSE Ready flag (SET or RESET). |
void BKP_ITConfig | ( | FunctionalState | NewState | ) |
Enables or disables the Tamper Pin Interrupt.
NewState | new state of the Tamper Pin Interrupt. This parameter can be: ENABLE or DISABLE. |
None |
void BKP_LSEConfig | ( | uint32_t | BKP_LSE | ) |
Configures the External Low Speed oscillator (LSE).
BKP_LSE | specifies the new state of the LSE. This parameter can be one of the following values:
|
uint32_t BKP_ReadBackupRegister | ( | uint32_t | BKP_DR | ) |
Reads data from the specified Data Backup Register.
BKP_DR | specifies the Data Backup Register. This parameter can be BKP_DRx where x:[1, 21] |
The | content of the specified Data Backup Register |
void BKP_RTCCLKCmd | ( | FunctionalState | NewState | ) |
Enables or disables the RTC clock.
NewState | new state of the RTC clock. This parameter can be: ENABLE or DISABLE. |
void BKP_RTCCLKConfig | ( | uint32_t | BKP_RTCCLKSource | ) |
Configures the RTC clock (RTCCLK).
BKP_RTCCLKSource | specifies the RTC clock source. This parameter can be one of the following values:
|
void BKP_RTCOutputConfig | ( | uint16_t | BKP_RTCOutputSource | ) |
Select the RTC output source to output on the Tamper pin.
BKP_RTCOutputSource | specifies the RTC output source. This parameter can be one of the following values:
|
None |
void BKP_SetRTCCalibrationValue | ( | uint8_t | CalibrationValue | ) |
Sets RTC Clock Calibration value.
CalibrationValue | specifies the RTC Clock Calibration value. This parameter must be a number between 0 and 0x7F. |
None |
void BKP_TamperPinCmd | ( | FunctionalState | NewState | ) |
Enables or disables the Tamper Pin activation.
NewState | new state of the Tamper Pin activation. This parameter can be: ENABLE or DISABLE. |
None |
void BKP_TamperPinLevelConfig | ( | uint16_t | BKP_TamperPinLevel | ) |
Configures the Tamper Pin active level.
BKP_TamperPinLevel | specifies the Tamper Pin active level. This parameter can be one of the following values:
|
None |
void BKP_WriteBackupRegister | ( | uint32_t | BKP_DR, |
uint32_t | Data | ||
) |
Writes user data to the specified Data Backup Register.
BKP_DR | specifies the Data Backup Register. This parameter can be BKP_DRx where x:[1, 21] |
Data | data to write |
None |