RTC driver modules.
More...
RTC driver modules.
#define INITMODE_TIMEOUT ((uint32_t) 0x00002000) |
#define INITMODE_TIMEOUT ((uint32_t) 0x00010000) |
#define RECALPF_TIMEOUT ((uint32_t) 0x00001000) |
#define RECALPF_TIMEOUT ((uint32_t) 0x00020000) |
#define RTC_DR_RESERVED_MASK ((uint32_t)0x00FFFF3F) |
#define RTC_DR_RESERVED_MASK ((uint32_t)0x00FFFF3F) |
#define RTC_INIT_MASK ((uint32_t)0xFFFFFFFF) |
#define RTC_INIT_MASK ((uint32_t)0xFFFFFFFF) |
#define RTC_RSF_MASK ((uint32_t)0xFFFFFF5F) |
#define RTC_RSF_MASK ((uint32_t)0xFFFFFF5F) |
#define RTC_TR_RESERVED_MASK ((uint32_t)0x007F7F7F) |
#define RTC_TR_RESERVED_MASK ((uint32_t)0x007F7F7F) |
#define SHPF_TIMEOUT ((uint32_t) 0x00002000) |
#define SHPF_TIMEOUT ((uint32_t) 0x00001000) |
#define SYNCHRO_TIMEOUT ((uint32_t) 0x00008000) |
#define SYNCHRO_TIMEOUT ((uint32_t) 0x00020000) |
Enables or disables the Coarse calibration process.
- Parameters
-
NewState | new state of the Coarse calibration. This parameter can be: ENABLE or DISABLE. |
- Return values
-
An | ErrorStatus enumeration value:
- SUCCESS: RTC Coarse calibration are enabled/disabled
- ERROR: RTC Coarse calibration are not enabled/disabled
|
Definition at line 1792 of file stm32f4xx_rtc.c.
ErrorStatus RTC_CoarseCalibConfig |
( |
uint32_t |
RTC_CalibSign, |
|
|
uint32_t |
Value |
|
) |
| |
Configures the Coarse calibration parameters.
- Parameters
-
RTC_CalibSign | specifies the sign of the coarse calibration value. This parameter can be one of the following values:
- RTC_CalibSign_Positive: The value sign is positive
- RTC_CalibSign_Negative: The value sign is negative
|
Value | value of coarse calibration expressed in ppm (coded on 5 bits). |
- Note
- This Calibration value should be between 0 and 63 when using negative sign with a 2-ppm step.
-
This Calibration value should be between 0 and 126 when using positive sign with a 4-ppm step.
- Return values
-
An | ErrorStatus enumeration value:
- SUCCESS: RTC Coarse calibration are initialized
- ERROR: RTC Coarse calibration are not initialized
|
Definition at line 1751 of file stm32f4xx_rtc.c.
void RTC_TamperPinSelection |
( |
uint32_t |
RTC_TamperPin | ) |
|
Selects the RTC Tamper Pin.
- Parameters
-
RTC_TamperPin | specifies the RTC Tamper Pin. This parameter can be one of the following values:
- RTC_TamperPin_PC13: PC13 is selected as RTC Tamper Pin.
- RTC_TamperPin_PI8: PI8 is selected as RTC Tamper Pin.
|
- Return values
-
Definition at line 2363 of file stm32f4xx_rtc.c.
void RTC_TimeStampPinSelection |
( |
uint32_t |
RTC_TimeStampPin | ) |
|
Selects the RTC TimeStamp Pin.
- Parameters
-
RTC_TimeStampPin | specifies the RTC TimeStamp Pin. This parameter can be one of the following values:
- RTC_TimeStampPin_PC13: PC13 is selected as RTC TimeStamp Pin.
- RTC_TimeStampPin_PI8: PI8 is selected as RTC TimeStamp Pin.
|
- Return values
-
Definition at line 2380 of file stm32f4xx_rtc.c.