Coarse Calibration configuration functions.
More...
Coarse Calibration configuration functions.
===============================================================================
Coarse Calibration configuration functions
===============================================================================
void RTC_CalibOutputCmd |
( |
FunctionalState |
NewState | ) |
|
Enables or disables the RTC clock to be output through the relative pin.
- Parameters
-
NewState,: | new state of the digital calibration Output. This parameter can be: ENABLE or DISABLE. |
- Return values
-
ErrorStatus RTC_CoarseCalibCmd |
( |
FunctionalState |
NewState | ) |
|
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
|
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
|