Lines Matching full:alarm
76 /* Clear alarm alarm time */ in ZTEST()
80 zassert_ok(ret, "Failed to clear alarm %d time", i); in ZTEST()
83 /* Disable alarm callback */ in ZTEST()
88 "Failed to clear and disable alarm %d callback", i); in ZTEST()
91 /* Every supported alarm field should reject invalid values. */ in ZTEST()
94 zassert_ok(ret, "Failed to get supported alarm %d fields", i); in ZTEST()
103 "%s: RTC should reject invalid alarm %d time in field %zu.", in ZTEST()
112 zassert_ok(ret, "Failed to get supported alarm %d fields", i); in ZTEST()
115 zassert_ok(ret, "Configured alarm time fields to set are not supported"); in ZTEST()
120 zassert_ok(ret, "Failed to set alarm %d time", i); in ZTEST()
123 /* Validate alarm time */ 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()
182 /* Clear alarm pending status */ in ZTEST()
185 zassert_true(ret > -1, "Failed to clear alarm %d pending status", i); in ZTEST()
188 /* Wait before validating alarm pending status has not been set prematurely */ in ZTEST()
191 /* Validate alarm are not pending */ in ZTEST()
194 zassert_ok(ret, "Alarm %d should not be pending", i); in ZTEST()
197 /* Wait for alarm to trigger */ in ZTEST()
200 /* Validate alarm is pending */ in ZTEST()
203 zassert_equal(ret, 1, "Alarm %d should be pending", i); in ZTEST()
210 zassert_ok(ret, "Failed to disable alarm %d", i); in ZTEST()
213 zassert_true(ret > -1, "Failed to clear alarm %d pending state", i); in ZTEST()