Lines Matching defs:reg_is_24_hour
87 static uint8_t read_reg_hour(bool reg_is_binary, bool reg_is_24_hour) {
95 if (reg_is_24_hour) {
114 static void write_reg_hour(uint8_t hour, bool reg_is_binary, bool reg_is_24_hour) {
117 if (!reg_is_24_hour) {
128 if (pm && !reg_is_24_hour) {
145 static void rtc_mode(bool* reg_is_24_hour, bool* reg_is_binary) {
147 *reg_is_24_hour = reg_b & REG_B_HOUR_FORMAT_BIT;
153 bool reg_is_24_hour;
155 rtc_mode(®_is_24_hour, ®_is_binary);
159 rtc->hours = read_reg_hour(reg_is_binary, reg_is_24_hour);
170 bool reg_is_24_hour;
172 rtc_mode(®_is_24_hour, ®_is_binary);
178 write_reg_hour(rtc->hours, reg_is_binary, reg_is_24_hour);