HAL + 0/36 examples
CodeScope will show references to RTC_TimeTypeDef::Hours from the following samples and libraries:
Examples
STM32446E_EVAL
Demonstrations
Examples
PWR
RTC
STM324xG_EVAL
Demonstrations
Examples
PWR
RTC
STM32F412G-Discovery
Demonstrations
Examples
RTC
STM32F413H-Discovery
Demonstrations
Examples
RTC
STM32F429I-Discovery
Demonstrations
STM32446E-Nucleo
Examples
RTC
STM32469I_EVAL
Examples
PWR
RTC
STM324x9I_EVAL
Demonstrations
STemWin
Examples
PWR
RTC
STM32F410xx-Nucleo
Examples
RTC
STM32F411RE-Nucleo
Examples
RTC
STM32F412ZG-Nucleo
Examples
RTC
STM32F413ZH-Nucleo
Examples
RTC
STM32F429ZI-Nucleo
Applications
NetXDuo
Examples
RTC
STM32F446ZE-Nucleo
Examples
RTC
 
Symbols
loading...
Files
loading...

RTC_TimeTypeDef::Hours field

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

Syntax

uint8_t Hours;

Examples

RTC_TimeTypeDef::Hours is referenced by 36 libraries and example projects.

References

LocationReferrerText
stm32f4xx_hal_rtc.h:86
uint8_t Hours; /*!< Specifies the RTC Time Hour.
stm32f4xx_hal_rtc.c:717HAL_RTC_SetTime()
assert_param(IS_RTC_HOUR12(sTime->Hours));
stm32f4xx_hal_rtc.c:723HAL_RTC_SetTime()
assert_param(IS_RTC_HOUR24(sTime->Hours));
stm32f4xx_hal_rtc.c:728HAL_RTC_SetTime()
tmpreg = (uint32_t)(( (uint32_t)RTC_ByteToBcd2(sTime->Hours) << RTC_TR_HU_Pos) | \
stm32f4xx_hal_rtc.c:737HAL_RTC_SetTime()
assert_param(IS_RTC_HOUR12(RTC_Bcd2ToByte(sTime->Hours)));
stm32f4xx_hal_rtc.c:743HAL_RTC_SetTime()
assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(sTime->Hours)));
stm32f4xx_hal_rtc.c:747HAL_RTC_SetTime()
tmpreg = (((uint32_t)(sTime->Hours) << RTC_TR_HU_Pos) | \
stm32f4xx_hal_rtc.c:829HAL_RTC_GetTime()
sTime->Hours = (uint8_t)((tmpreg & (RTC_TR_HT | RTC_TR_HU)) >> RTC_TR_HU_Pos);
stm32f4xx_hal_rtc.c:838HAL_RTC_GetTime()
sTime->Hours = (uint8_t)RTC_Bcd2ToByte(sTime->Hours);
stm32f4xx_hal_rtc.c:1030HAL_RTC_SetAlarm()
assert_param(IS_RTC_HOUR12(sAlarm->AlarmTime.Hours));
stm32f4xx_hal_rtc.c:1036HAL_RTC_SetAlarm()
assert_param(IS_RTC_HOUR24(sAlarm->AlarmTime.Hours));
stm32f4xx_hal_rtc.c:1050HAL_RTC_SetAlarm()
tmpreg = (((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Hours) << RTC_ALRMAR_HU_Pos) | \
stm32f4xx_hal_rtc.c:1062HAL_RTC_SetAlarm()
assert_param(IS_RTC_HOUR12(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours)));
stm32f4xx_hal_rtc.c:1068HAL_RTC_SetAlarm()
assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours)));
stm32f4xx_hal_rtc.c:1083HAL_RTC_SetAlarm()
tmpreg = (((uint32_t)(sAlarm->AlarmTime.Hours) << RTC_ALRMAR_HU_Pos) | \
stm32f4xx_hal_rtc.c:1227HAL_RTC_SetAlarm_IT()
assert_param(IS_RTC_HOUR12(sAlarm->AlarmTime.Hours));
stm32f4xx_hal_rtc.c:1233HAL_RTC_SetAlarm_IT()
assert_param(IS_RTC_HOUR24(sAlarm->AlarmTime.Hours));
stm32f4xx_hal_rtc.c:1247HAL_RTC_SetAlarm_IT()
tmpreg = (((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Hours) << RTC_ALRMAR_HU_Pos) | \
stm32f4xx_hal_rtc.c:1259HAL_RTC_SetAlarm_IT()
assert_param(IS_RTC_HOUR12(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours)));
stm32f4xx_hal_rtc.c:1265HAL_RTC_SetAlarm_IT()
assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours)));
stm32f4xx_hal_rtc.c:1280HAL_RTC_SetAlarm_IT()
tmpreg = (((uint32_t)(sAlarm->AlarmTime.Hours) << RTC_ALRMAR_HU_Pos) | \
stm32f4xx_hal_rtc.c:1518HAL_RTC_GetAlarm()
sAlarm->AlarmTime.Hours = (uint8_t) ((tmpreg & (RTC_ALRMAR_HT | RTC_ALRMAR_HU)) >> RTC_ALRMAR_HU_Pos);
stm32f4xx_hal_rtc.c:1529HAL_RTC_GetAlarm()
stm32f4xx_hal_rtc_ex.c:378HAL_RTCEx_GetTimeStamp()
sTimeStamp->Hours = (uint8_t)((tmptime & (RTC_TSTR_HT | RTC_TSTR_HU)) >> RTC_TSTR_HU_Pos);
stm32f4xx_hal_rtc_ex.c:394HAL_RTCEx_GetTimeStamp()
sTimeStamp->Hours = (uint8_t)RTC_Bcd2ToByte(sTimeStamp->Hours);

Data Use

Functions writing RTC_TimeTypeDef::Hours
Functions reading RTC_TimeTypeDef::Hours
RTC_TimeTypeDef::Hours
Type of RTC_TimeTypeDef::Hours
RTC_TimeTypeDef::Hours
uint8_t
all items filtered out