nrf52/twi0/tasks_suspend/
mod.rs1#[doc = r" Value to write to the register"]
2pub struct W {
3 bits: u32,
4}
5impl super::TASKS_SUSPEND {
6 #[doc = r" Writes to the register"]
7 #[inline]
8 pub fn write<F>(&self, f: F)
9 where
10 F: FnOnce(&mut W) -> &mut W,
11 {
12 let mut w = W::reset_value();
13 f(&mut w);
14 self.register.set(w.bits);
15 }
16}
17impl W {
18 #[doc = r" Reset value of the register"]
19 #[inline]
20 pub fn reset_value() -> W {
21 W { bits: 0 }
22 }
23 #[doc = r" Writes raw bits to the register"]
24 #[inline]
25 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
26 self.bits = bits;
27 self
28 }
29}