HAL
+ 0/36 examples
CodeScope will show references to
RTC_TimeTypeDef::Hours
from the following samples and libraries:
Examples
STM32446E_EVAL
Demonstrations
STemWin
Examples
PWR
PWR_STANDBY
RTC
RTC_Alarm
RTC_Calendar
RTC_TimeStamp
STM324xG_EVAL
Demonstrations
STemWin
Examples
PWR
PWR_STANDBY
RTC
RTC_Alarm
RTC_Calendar
RTC_TimeStamp
STM32F412G-Discovery
Demonstrations
STemWin
Examples
RTC
RTC_Calendar
RTC_TimeStamp
STM32F413H-Discovery
Demonstrations
STemWin
Examples
RTC
RTC_Calendar
RTC_TimeStamp
STM32F429I-Discovery
Demonstrations
STemWin
STM32446E-Nucleo
Examples
RTC
RTC_Calendar
STM32469I_EVAL
Examples
PWR
PWR_STANDBY
RTC
RTC_Alarm
RTC_Calendar
RTC_TimeStamp
STM324x9I_EVAL
Demonstrations
STemWin
MB1046
MB1063
Examples
PWR
PWR_STANDBY
RTC
RTC_Alarm
RTC_Calendar
RTC_TimeStamp
STM32F410xx-Nucleo
Examples
RTC
RTC_Calendar
STM32F411RE-Nucleo
Examples
RTC
RTC_Calendar
STM32F412ZG-Nucleo
Examples
RTC
RTC_Calendar
STM32F413ZH-Nucleo
Examples
RTC
RTC_Alarm
RTC_Calendar
STM32F429ZI-Nucleo
Applications
NetXDuo
Nx_SNTP_Client
Examples
RTC
RTC_Calendar
STM32F446ZE-Nucleo
Examples
RTC
RTC_Calendar
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
STM32 Libraries and Samples
HAL
RTC_TimeTypeDef::Hours
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
from
stm32f4xx_hal_rtc.h:86
uint8_t
Hours
;
Examples
RTC_TimeTypeDef::Hours
is referenced by
36 libraries and example projects
.
References
Location
Referrer
Text
stm32f4xx_hal_rtc.h:86
uint8_t
Hours
;
/*!< Specifies the RTC Time Hour.
stm32f4xx_hal_rtc.c:717
HAL_RTC_SetTime()
assert_param
(
IS_RTC_HOUR12
(
sTime
->
Hours
)
)
;
stm32f4xx_hal_rtc.c:723
HAL_RTC_SetTime()
assert_param
(
IS_RTC_HOUR24
(
sTime
->
Hours
)
)
;
stm32f4xx_hal_rtc.c:728
HAL_RTC_SetTime()
tmpreg
=
(
uint32_t
)
(
(
(
uint32_t
)
RTC_ByteToBcd2
(
sTime
->
Hours
)
<
<
RTC_TR_HU_Pos
)
|
\
stm32f4xx_hal_rtc.c:737
HAL_RTC_SetTime()
assert_param
(
IS_RTC_HOUR12
(
RTC_Bcd2ToByte
(
sTime
->
Hours
)
)
)
;
stm32f4xx_hal_rtc.c:743
HAL_RTC_SetTime()
assert_param
(
IS_RTC_HOUR24
(
RTC_Bcd2ToByte
(
sTime
->
Hours
)
)
)
;
stm32f4xx_hal_rtc.c:747
HAL_RTC_SetTime()
tmpreg
=
(
(
(
uint32_t
)
(
sTime
->
Hours
)
<
<
RTC_TR_HU_Pos
)
|
\
stm32f4xx_hal_rtc.c:829
HAL_RTC_GetTime()
sTime
->
Hours
=
(
uint8_t
)
(
(
tmpreg
&
(
RTC_TR_HT
|
RTC_TR_HU
)
)
>
>
RTC_TR_HU_Pos
)
;
stm32f4xx_hal_rtc.c:838
HAL_RTC_GetTime()
sTime
->
Hours
=
(
uint8_t
)
RTC_Bcd2ToByte
(
sTime
->
Hours
)
;
stm32f4xx_hal_rtc.c:1030
HAL_RTC_SetAlarm()
assert_param
(
IS_RTC_HOUR12
(
sAlarm
->
AlarmTime
.
Hours
)
)
;
stm32f4xx_hal_rtc.c:1036
HAL_RTC_SetAlarm()
assert_param
(
IS_RTC_HOUR24
(
sAlarm
->
AlarmTime
.
Hours
)
)
;
stm32f4xx_hal_rtc.c:1050
HAL_RTC_SetAlarm()
tmpreg
=
(
(
(
uint32_t
)
RTC_ByteToBcd2
(
sAlarm
->
AlarmTime
.
Hours
)
<
<
RTC_ALRMAR_HU_Pos
)
|
\
stm32f4xx_hal_rtc.c:1062
HAL_RTC_SetAlarm()
assert_param
(
IS_RTC_HOUR12
(
RTC_Bcd2ToByte
(
sAlarm
->
AlarmTime
.
Hours
)
)
)
;
stm32f4xx_hal_rtc.c:1068
HAL_RTC_SetAlarm()
assert_param
(
IS_RTC_HOUR24
(
RTC_Bcd2ToByte
(
sAlarm
->
AlarmTime
.
Hours
)
)
)
;
stm32f4xx_hal_rtc.c:1083
HAL_RTC_SetAlarm()
tmpreg
=
(
(
(
uint32_t
)
(
sAlarm
->
AlarmTime
.
Hours
)
<
<
RTC_ALRMAR_HU_Pos
)
|
\
stm32f4xx_hal_rtc.c:1227
HAL_RTC_SetAlarm_IT()
assert_param
(
IS_RTC_HOUR12
(
sAlarm
->
AlarmTime
.
Hours
)
)
;
stm32f4xx_hal_rtc.c:1233
HAL_RTC_SetAlarm_IT()
assert_param
(
IS_RTC_HOUR24
(
sAlarm
->
AlarmTime
.
Hours
)
)
;
stm32f4xx_hal_rtc.c:1247
HAL_RTC_SetAlarm_IT()
tmpreg
=
(
(
(
uint32_t
)
RTC_ByteToBcd2
(
sAlarm
->
AlarmTime
.
Hours
)
<
<
RTC_ALRMAR_HU_Pos
)
|
\
stm32f4xx_hal_rtc.c:1259
HAL_RTC_SetAlarm_IT()
assert_param
(
IS_RTC_HOUR12
(
RTC_Bcd2ToByte
(
sAlarm
->
AlarmTime
.
Hours
)
)
)
;
stm32f4xx_hal_rtc.c:1265
HAL_RTC_SetAlarm_IT()
assert_param
(
IS_RTC_HOUR24
(
RTC_Bcd2ToByte
(
sAlarm
->
AlarmTime
.
Hours
)
)
)
;
stm32f4xx_hal_rtc.c:1280
HAL_RTC_SetAlarm_IT()
tmpreg
=
(
(
(
uint32_t
)
(
sAlarm
->
AlarmTime
.
Hours
)
<
<
RTC_ALRMAR_HU_Pos
)
|
\
stm32f4xx_hal_rtc.c:1518
HAL_RTC_GetAlarm()
sAlarm
->
AlarmTime
.
Hours
=
(
uint8_t
)
(
(
tmpreg
&
(
RTC_ALRMAR_HT
|
RTC_ALRMAR_HU
)
)
>
>
RTC_ALRMAR_HU_Pos
)
;
stm32f4xx_hal_rtc.c:1529
HAL_RTC_GetAlarm()
sAlarm
->
AlarmTime
.
Hours
=
RTC_Bcd2ToByte
(
sAlarm
->
AlarmTime
.
Hours
)
;
stm32f4xx_hal_rtc_ex.c:378
HAL_RTCEx_GetTimeStamp()
sTimeStamp
->
Hours
=
(
uint8_t
)
(
(
tmptime
&
(
RTC_TSTR_HT
|
RTC_TSTR_HU
)
)
>
>
RTC_TSTR_HU_Pos
)
;
stm32f4xx_hal_rtc_ex.c:394
HAL_RTCEx_GetTimeStamp()
sTimeStamp
->
Hours
=
(
uint8_t
)
RTC_Bcd2ToByte
(
sTimeStamp
->
Hours
)
;
Data Use
Functions writing
RTC_TimeTypeDef::Hours
Functions reading
RTC_TimeTypeDef::Hours
HAL_RTC_GetTime()
HAL_RTC_GetAlarm()
HAL_RTCEx_GetTimeStamp()
all items filtered out
RTC_TimeTypeDef::Hours
HAL_RTC_SetTime()
HAL_RTC_GetTime()
HAL_RTC_SetAlarm()
HAL_RTC_SetAlarm_IT()
HAL_RTC_GetAlarm()
HAL_RTCEx_GetTimeStamp()
all items filtered out
Type of
RTC_TimeTypeDef::Hours
RTC_TimeTypeDef::Hours
uint8_t
all items filtered out