Modules | Classes | Macros | Functions

RTC driver modules. More...

Collaboration diagram for RTC:

Modules

 RTC_Exported_Constants
 
 RTC_Private_Functions
 
 RTC_Exported_Types
 
 RTC_Exported_Macros
 
 RTC_Exported_Functions
 
 RTC_Private_TypesDefinitions
 
 RTC_Private_Defines
 
 RTC_Private_Macros
 
 RTC_Private_Variables
 
 RTC_Private_FunctionPrototypes
 

Classes

struct  RTC_AlarmTypeDef
 RTC Alarm structure definition. More...
 
struct  RTC_DateTypeDef
 RTC Date structure definition. More...
 
struct  RTC_InitTypeDef
 RTC Init structures definition. More...
 
struct  RTC_TimeTypeDef
 RTC Time structure definition. More...
 

Macros

#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_FLAGS_MASK
 
#define RTC_FLAGS_MASK
 
#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)
 

Functions

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...
 
void RTC_TamperPinSelection (uint32_t RTC_TamperPin)
 Selects the RTC Tamper Pin. More...
 
void RTC_TimeStampPinSelection (uint32_t RTC_TimeStampPin)
 Selects the RTC TimeStamp Pin. More...
 

Detailed Description

RTC driver modules.

Macro Definition Documentation

#define INITMODE_TIMEOUT   ((uint32_t) 0x00002000)

Definition at line 268 of file stm32f30x_rtc.c.

#define INITMODE_TIMEOUT   ((uint32_t) 0x00010000)

Definition at line 310 of file stm32f4xx_rtc.c.

#define RECALPF_TIMEOUT   ((uint32_t) 0x00001000)

Definition at line 270 of file stm32f30x_rtc.c.

#define RECALPF_TIMEOUT   ((uint32_t) 0x00020000)

Definition at line 312 of file stm32f4xx_rtc.c.

#define RTC_DR_RESERVED_MASK   ((uint32_t)0x00FFFF3F)

Definition at line 258 of file stm32f30x_rtc.c.

#define RTC_DR_RESERVED_MASK   ((uint32_t)0x00FFFF3F)

Definition at line 301 of file stm32f4xx_rtc.c.

#define RTC_FLAGS_MASK
Value:
#define RTC_FLAG_ALRBWF
#define RTC_FLAG_ALRBF
#define RTC_FLAG_ALRAWF
#define RTC_FLAG_INITS
#define RTC_FLAG_RSF
#define RTC_FLAG_TSF
#define RTC_FLAG_RECALPF
#define RTC_FLAG_TAMP1F
#define RTC_FLAG_INITF
#define RTC_FLAG_SHPF
#define RTC_FLAG_WUTF
#define RTC_FLAG_TAMP3F
#define RTC_FLAG_WUTWF
#define RTC_FLAG_TSOVF
#define RTC_FLAG_ALRAF
#define RTC_FLAG_TAMP2F

Definition at line 261 of file stm32f30x_rtc.c.

#define RTC_FLAGS_MASK
Value:
#define RTC_FLAG_ALRBWF
#define RTC_FLAG_ALRBF
#define RTC_FLAG_ALRAWF
#define RTC_FLAG_INITS
#define RTC_FLAG_RSF
#define RTC_FLAG_TSF
#define RTC_FLAG_RECALPF
#define RTC_FLAG_TAMP1F
#define RTC_FLAG_INITF
#define RTC_FLAG_SHPF
#define RTC_FLAG_WUTF
#define RTC_FLAG_WUTWF
#define RTC_FLAG_TSOVF
#define RTC_FLAG_ALRAF

Definition at line 304 of file stm32f4xx_rtc.c.

#define RTC_INIT_MASK   ((uint32_t)0xFFFFFFFF)

Definition at line 259 of file stm32f30x_rtc.c.

#define RTC_INIT_MASK   ((uint32_t)0xFFFFFFFF)

Definition at line 302 of file stm32f4xx_rtc.c.

#define RTC_RSF_MASK   ((uint32_t)0xFFFFFF5F)

Definition at line 260 of file stm32f30x_rtc.c.

#define RTC_RSF_MASK   ((uint32_t)0xFFFFFF5F)

Definition at line 303 of file stm32f4xx_rtc.c.

#define RTC_TR_RESERVED_MASK   ((uint32_t)0x007F7F7F)

Definition at line 257 of file stm32f30x_rtc.c.

#define RTC_TR_RESERVED_MASK   ((uint32_t)0x007F7F7F)

Definition at line 300 of file stm32f4xx_rtc.c.

#define SHPF_TIMEOUT   ((uint32_t) 0x00002000)

Definition at line 271 of file stm32f30x_rtc.c.

#define SHPF_TIMEOUT   ((uint32_t) 0x00001000)

Definition at line 313 of file stm32f4xx_rtc.c.

#define SYNCHRO_TIMEOUT   ((uint32_t) 0x00008000)

Definition at line 269 of file stm32f30x_rtc.c.

#define SYNCHRO_TIMEOUT   ((uint32_t) 0x00020000)

Definition at line 311 of file stm32f4xx_rtc.c.

Function Documentation

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.

void RTC_TamperPinSelection ( uint32_t  RTC_TamperPin)

Selects the RTC Tamper Pin.

Parameters
RTC_TamperPinspecifies 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
None

Definition at line 2363 of file stm32f4xx_rtc.c.

void RTC_TimeStampPinSelection ( uint32_t  RTC_TimeStampPin)

Selects the RTC TimeStamp Pin.

Parameters
RTC_TimeStampPinspecifies 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
None

Definition at line 2380 of file stm32f4xx_rtc.c.



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