Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
cubexHal.pdf
Скачиваний:
110
Добавлен:
10.02.2016
Размер:
16.16 Mб
Скачать

UM1725

HAL RTC Generic Driver

48 HAL RTC Generic Driver

48.1RTC Firmware driver registers structures

48.1.1RTC_InitTypeDef

Data Fields

uint32_t HourFormat

uint32_t AsynchPrediv

uint32_t SynchPrediv

uint32_t OutPut

uint32_t OutPutPolarity

uint32_t OutPutType

Field Documentation

uint32_t RTC_InitTypeDef::HourFormat

Specifies the RTC Hour Format. This parameter can be a value of

RTC_Hour_Formats

uint32_t RTC_InitTypeDef::AsynchPrediv

Specifies the RTC Asynchronous Predivider value. This parameter must be a number between Min_Data = 0x00 and Max_Data = 0x7F

uint32_t RTC_InitTypeDef::SynchPrediv

Specifies the RTC Synchronous Predivider value. This parameter must be a number between Min_Data = 0x00 and Max_Data = 0x7FFF

uint32_t RTC_InitTypeDef::OutPut

Specifies which signal will be routed to the RTC output. This parameter can be a value of RTC_Output_selection_Definitions

uint32_t RTC_InitTypeDef::OutPutPolarity

Specifies the polarity of the output signal. This parameter can be a value of

RTC_Output_Polarity_Definitions

uint32_t RTC_InitTypeDef::OutPutType

Specifies the RTC Output Pin mode. This parameter can be a value of

RTC_Output_Type_ALARM_OUT

48.1.2RTC_TimeTypeDef

Data Fields

uint8_t Hours

uint8_t Minutes

uint8_t Seconds

uint32_t SubSeconds

uint8_t TimeFormat

uint32_t DayLightSaving

uint32_t StoreOperation

DOCID025834 Rev 2

613/900

HAL RTC Generic Driver

UM1725

Field Documentation

uint8_t RTC_TimeTypeDef::Hours

Specifies the RTC Time Hour. This parameter must be a number between Min_Data = 0 and Max_Data = 12 if the RTC_HourFormat_12 is selected. This parameter must be a number between Min_Data = 0 and Max_Data = 23 if the RTC_HourFormat_24 is selected

uint8_t RTC_TimeTypeDef::Minutes

Specifies the RTC Time Minutes. This parameter must be a number between

Min_Data = 0 and Max_Data = 59

uint8_t RTC_TimeTypeDef::Seconds

Specifies the RTC Time Seconds. This parameter must be a number between

Min_Data = 0 and Max_Data = 59

uint32_t RTC_TimeTypeDef::SubSeconds

Specifies the RTC Time SubSeconds. This parameter must be a number between Min_Data = 0 and Max_Data = 59

uint8_t RTC_TimeTypeDef::TimeFormat

Specifies the RTC AM/PM Time. This parameter can be a value of

RTC_AM_PM_Definitions

uint32_t RTC_TimeTypeDef::DayLightSaving

Specifies DayLight Save Operation. This parameter can be a value of

RTC_DayLightSaving_Definitions

uint32_t RTC_TimeTypeDef::StoreOperation

Specifies RTC_StoreOperation value to be written in the BCK bit in CR register to store the operation. This parameter can be a value of

RTC_StoreOperation_Definitions

48.1.3RTC_DateTypeDef

Data Fields

uint8_t WeekDay

uint8_t Month

uint8_t Date

uint8_t Year

Field Documentation

uint8_t RTC_DateTypeDef::WeekDay

Specifies the RTC Date WeekDay. This parameter can be a value of

RTC_WeekDay_Definitions

uint8_t RTC_DateTypeDef::Month

Specifies the RTC Date Month (in BCD format). This parameter can be a value of

RTC_Month_Date_Definitions

uint8_t RTC_DateTypeDef::Date

Specifies the RTC Date. This parameter must be a number between Min_Data = 1 and Max_Data = 31

uint8_t RTC_DateTypeDef::Year

Specifies the RTC Date Year. This parameter must be a number between Min_Data = 0 and Max_Data = 99

614/900

DOCID025834 Rev 2

UM1725

HAL RTC Generic Driver

48.1.4RTC_AlarmTypeDef

Data Fields

RTC_TimeTypeDef AlarmTime

uint32_t AlarmMask

uint32_t AlarmSubSecondMask

uint32_t AlarmDateWeekDaySel

uint8_t AlarmDateWeekDay

uint32_t Alarm

Field Documentation

RTC_TimeTypeDef RTC_AlarmTypeDef::AlarmTime

Specifies the RTC Alarm Time members

uint32_t RTC_AlarmTypeDef::AlarmMask

Specifies the RTC Alarm Masks. This parameter can be a value of

RTC_AlarmMask_Definitions

uint32_t RTC_AlarmTypeDef::AlarmSubSecondMask

Specifies the RTC Alarm SubSeconds Masks. This parameter can be a value of

RTC_Alarm_Sub_Seconds_Masks_Definitions

uint32_t RTC_AlarmTypeDef::AlarmDateWeekDaySel

Specifies the RTC Alarm is on Date or WeekDay. This parameter can be a value of

RTC_AlarmDateWeekDay_Definitions

uint8_t RTC_AlarmTypeDef::AlarmDateWeekDay

Specifies the RTC Alarm Date/WeekDay. If the Alarm Date is selected, this parameter must be set to a value in the 1-31 range. If the Alarm WeekDay is selected, this parameter can be a value of RTC_WeekDay_Definitions

uint32_t RTC_AlarmTypeDef::Alarm

Specifies the alarm . This parameter can be a value of RTC_Alarms_Definitions

48.1.5RTC_HandleTypeDef

Data Fields

RTC_TypeDef * Instance

RTC_InitTypeDef Init

HAL_LockTypeDef Lock

__IO HAL_RTCStateTypeDef State

Field Documentation

RTC_TypeDef* RTC_HandleTypeDef::Instance

Register base address

RTC_InitTypeDef RTC_HandleTypeDef::Init

RTC required parameters

HAL_LockTypeDef RTC_HandleTypeDef::Lock

RTC locking object

DOCID025834 Rev 2

615/900

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]