We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7b58f2b + 93ef850 commit b53b4a2Copy full SHA for b53b4a2
nrf-hal-common/src/rtc.rs
@@ -203,6 +203,21 @@ where
203
self.periph.counter.read().bits()
204
}
205
206
+ /// Clear the Real Time Counter
207
+ pub fn clear_counter(&self) {
208
+ unsafe {
209
+ self.periph.tasks_clear.write(|w| w.bits(1));
210
+ }
211
212
+
213
+ /// Sets the Real Time Counter value to 0xFFFFF0, to allow tests of the overflow condition.
214
+ /// The overflow event occurs when the Real Time Counter overflows from 0xFFFFFF to 0.
215
+ pub fn trigger_overflow(&self) {
216
217
+ self.periph.tasks_trigovrflw.write(|w| w.bits(1));
218
219
220
221
/// Destructure the high level interface. Does not reset any configuration made
222
/// to the given RTC peripheral
223
pub fn release(self) -> T {
0 commit comments