Functions

Coarse Calibration configuration functions. More...

Collaboration diagram for Digital Calibration configuration functions:

Functions

void RTC_CalibOutputCmd (FunctionalState NewState)
 Enables or disables the RTC clock to be output through the relative pin. More...
 
void RTC_CalibOutputConfig (uint32_t RTC_CalibOutput)
 Configure the Calibration Pinout (RTC_CALIB) Selection (1Hz or 512Hz). More...
 
ErrorStatus RTC_CoarseCalibCmd (FunctionalState NewState)
 Enables or disables the Coarse calibration process. More...
 
ErrorStatus RTC_CoarseCalibConfig (uint32_t RTC_CalibSign, uint32_t Value)
 Configures the Coarse calibration parameters. More...
 
ErrorStatus RTC_SmoothCalibConfig (uint32_t RTC_SmoothCalibPeriod, uint32_t RTC_SmoothCalibPlusPulses, uint32_t RTC_SmouthCalibMinusPulsesValue)
 Configures the Smooth Calibration Settings. More...
 

Detailed Description

Coarse Calibration configuration functions.

Digital Calibration configuration functions.

 ===============================================================================
              ##### Digital Calibration configuration functions #####
 ===============================================================================  

Function Documentation

void RTC_CalibOutputCmd ( FunctionalState  NewState)

Enables or disables the RTC clock to be output through the relative pin.

Parameters
NewStatenew state of the digital calibration Output. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 1838 of file stm32f4xx_rtc.c.

void RTC_CalibOutputConfig ( uint32_t  RTC_CalibOutput)

Configure the Calibration Pinout (RTC_CALIB) Selection (1Hz or 512Hz).

Configures the Calibration Pinout (RTC_CALIB) Selection (1Hz or 512Hz).

Parameters
RTC_CalibOutput: Select the Calibration output Selection . This parameter can be one of the following values:
  • RTC_CalibOutput_512Hz: A signal has a regular waveform at 512Hz.
  • RTC_CalibOutput_1Hz : A signal has a regular waveform at 1Hz.
Return values
None

Definition at line 1870 of file stm32f4xx_rtc.c.

ErrorStatus RTC_CoarseCalibCmd ( FunctionalState  NewState)

Enables or disables the Coarse calibration process.

Parameters
NewStatenew state of the Coarse calibration. This parameter can be: ENABLE or DISABLE.
Return values
AnErrorStatus 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_CalibSignspecifies 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
Valuevalue 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
AnErrorStatus enumeration value:
  • SUCCESS: RTC Coarse calibration are initialized
  • ERROR: RTC Coarse calibration are not initialized

Definition at line 1751 of file stm32f4xx_rtc.c.

ErrorStatus RTC_SmoothCalibConfig ( uint32_t  RTC_SmoothCalibPeriod,
uint32_t  RTC_SmoothCalibPlusPulses,
uint32_t  RTC_SmouthCalibMinusPulsesValue 
)

Configures the Smooth Calibration Settings.

Parameters
RTC_SmoothCalibPeriod: Select the Smooth Calibration Period. This parameter can be can be one of the following values:
  • RTC_SmoothCalibPeriod_32sec : The smooth calibration period is 32s.
  • RTC_SmoothCalibPeriod_16sec : The smooth calibration period is 16s.
  • RTC_SmoothCalibPeriod_8sec : The smooth calibartion period is 8s.
RTC_SmoothCalibPlusPulses: Select to Set or reset the CALP bit. This parameter can be one of the following values:
  • RTC_SmoothCalibPlusPulses_Set : Add one RTCCLK puls every 2**11 pulses.
  • RTC_SmoothCalibPlusPulses_Reset: No RTCCLK pulses are added.
RTC_SmouthCalibMinusPulsesValueSelect the value of CALM[8:0] bits. This parameter can be one any value from 0 to 0x000001FF.
Return values
AnErrorStatus enumeration value:
  • SUCCESS: RTC Calib registers are configured
  • ERROR: RTC Calib registers are not configured
Parameters
RTC_SmoothCalibPeriod: Select the Smooth Calibration Period. This parameter can be can be one of the following values:
  • RTC_SmoothCalibPeriod_32sec : The smooth calibration periode is 32s.
  • RTC_SmoothCalibPeriod_16sec : The smooth calibration periode is 16s.
  • RTC_SmoothCalibPeriod_8sec : The smooth calibartion periode is 8s.
RTC_SmoothCalibPlusPulses: Select to Set or reset the CALP bit. This parameter can be one of the following values:
  • RTC_SmoothCalibPlusPulses_Set : Add one RTCCLK puls every 2**11 pulses.
  • RTC_SmoothCalibPlusPulses_Reset: No RTCCLK pulses are added.
RTC_SmouthCalibMinusPulsesValueSelect the value of CALM[8:0] bits. This parameter can be one any value from 0 to 0x000001FF.
Return values
AnErrorStatus enumeration value:
  • SUCCESS: RTC Calib registers are configured
  • ERROR: RTC Calib registers are not configured

Definition at line 1906 of file stm32f4xx_rtc.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:29