Home
last modified time | relevance | path

Searched refs:hour (Results 1 – 3 of 3) sorted by relevance

/hal_rpi_pico-latest/src/rp2_common/hardware_rtc/
Drtc.c48 if (!(t->hour >= 0 && t->hour <= 23)) return false; in valid_datetime()
71 (((uint32_t)t->hour) << RTC_SETUP_1_HOUR_LSB) | in rtc_set_datetime()
98 t->hour = (int8_t) ((rtc_0 & RTC_RTC_0_HOUR_BITS ) >> RTC_RTC_0_HOUR_LSB); in rtc_get_datetime()
140 if (t->hour < 0) return true; in rtc_alarm_repeats()
154 … ((t->hour < 0) ? 0 : (((uint32_t)t->hour) << RTC_IRQ_SETUP_1_HOUR_LSB)) | in rtc_set_alarm()
163 if (t->hour >= 0) hw_set_bits(&rtc_hw->irq_setup_1, RTC_IRQ_SETUP_1_HOUR_ENA_BITS); in rtc_set_alarm()
/hal_rpi_pico-latest/src/common/pico_util/
Ddatetime.c53 t->hour, in datetime_to_str()
63 tm->tm_hour = dt->hour; in datetime_to_tm()
73 dt->hour = (int8_t) tm->tm_hour; // 0..23 in tm_to_datetime()
/hal_rpi_pico-latest/src/common/pico_base_headers/include/pico/
Dtypes.h112 int8_t hour; ///< 0..23 member