Lines Matching refs:i
77 for (uint16_t i = 0; i < alarms_count; i++) { in ZTEST() local
78 ret = rtc_alarm_set_time(rtc, i, 0, NULL); in ZTEST()
80 zassert_ok(ret, "Failed to clear alarm %d time", i); in ZTEST()
84 for (uint16_t i = 0; i < alarms_count; i++) { in ZTEST() local
85 ret = rtc_alarm_set_callback(rtc, i, NULL, NULL); in ZTEST()
88 "Failed to clear and disable alarm %d callback", i); in ZTEST()
92 for (uint16_t i = 0; i < alarms_count; i++) { in ZTEST() local
93 ret = rtc_alarm_get_supported_fields(rtc, i, &alarm_time_mask_supported); in ZTEST()
94 zassert_ok(ret, "Failed to get supported alarm %d fields", i); in ZTEST()
99 ret = rtc_alarm_set_time(rtc, i, test_alarm_time_masks[j], in ZTEST()
104 rtc->name, i, j); in ZTEST()
110 for (uint16_t i = 0; i < alarms_count; i++) { in ZTEST() local
111 ret = rtc_alarm_get_supported_fields(rtc, i, &alarm_time_mask_supported); in ZTEST()
112 zassert_ok(ret, "Failed to get supported alarm %d fields", i); in ZTEST()
118 for (uint16_t i = 0; i < alarms_count; i++) { in ZTEST() local
119 ret = rtc_alarm_set_time(rtc, i, test_alarm_time_mask_set, &test_alarm_time_set); in ZTEST()
120 zassert_ok(ret, "Failed to set alarm %d time", i); in ZTEST()
124 for (uint16_t i = 0; i < alarms_count; i++) { in ZTEST() local
125 ret = rtc_alarm_get_time(rtc, i, &alarm_time_mask_get, &alarm_time_get); in ZTEST()
126 zassert_ok(ret, "Failed to set alarm %d time", i); in ZTEST()
129 "Incorrect alarm %d time mask", i); in ZTEST()
133 "Incorrect alarm %d tm_sec field", i); in ZTEST()
138 "Incorrect alarm %d tm_min field", i); in ZTEST()
143 "Incorrect alarm %d tm_hour field", i); in ZTEST()
148 "Incorrect alarm %d tm_mday field", i); in ZTEST()
153 "Incorrect alarm %d tm_mon field", i); in ZTEST()
158 "Incorrect alarm %d tm_year field", i); in ZTEST()
163 "Incorrect alarm %d tm_wday field", i); in ZTEST()
168 "Incorrect alarm %d tm_yday field", i); in ZTEST()
173 "Incorrect alarm %d tm_nsec field", i); in ZTEST()
183 for (uint16_t i = 0; i < alarms_count; i++) { in ZTEST() local
184 ret = rtc_alarm_is_pending(rtc, i); in ZTEST()
185 zassert_true(ret > -1, "Failed to clear alarm %d pending status", i); in ZTEST()
192 for (uint16_t i = 0; i < alarms_count; i++) { in ZTEST() local
193 ret = rtc_alarm_is_pending(rtc, i); in ZTEST()
194 zassert_ok(ret, "Alarm %d should not be pending", i); in ZTEST()
201 for (uint16_t i = 0; i < alarms_count; i++) { in ZTEST() local
202 ret = rtc_alarm_is_pending(rtc, i); in ZTEST()
203 zassert_equal(ret, 1, "Alarm %d should be pending", i); in ZTEST()
208 for (uint16_t i = 0; i < alarms_count; i++) { in ZTEST() local
209 ret = rtc_alarm_set_time(rtc, i, 0, NULL); in ZTEST()
210 zassert_ok(ret, "Failed to disable alarm %d", i); in ZTEST()
212 ret = rtc_alarm_is_pending(rtc, i); in ZTEST()
213 zassert_true(ret > -1, "Failed to clear alarm %d pending state", i); in ZTEST()