#[repr(transparent)]pub struct Cfg(pub u32);Expand description
Capture configuration register.
Tuple Fields§
§0: u32Implementations§
Source§impl Cfg
impl Cfg
Sourcepub const fn set_capen0(&mut self, val: bool)
pub const fn set_capen0(&mut self, val: bool)
Enable Capture 0. 1 = Enabled, 0 = Disabled.
Sourcepub const fn set_capen1(&mut self, val: bool)
pub const fn set_capen1(&mut self, val: bool)
Enable Capture 1. 1 = Enabled, 0 = Disabled.
Sourcepub const fn set_capen2(&mut self, val: bool)
pub const fn set_capen2(&mut self, val: bool)
Enable Capture 2. 1 = Enabled, 0 = Disabled.
Sourcepub const fn set_capen3(&mut self, val: bool)
pub const fn set_capen3(&mut self, val: bool)
Enable Capture 3. 1 = Enabled, 0 = Disabled.
Sourcepub const fn cappol0(&self) -> bool
pub const fn cappol0(&self) -> bool
Capture Polarity 0. 0 = Positive edge capture, 1 = Negative edge capture.
Sourcepub const fn set_cappol0(&mut self, val: bool)
pub const fn set_cappol0(&mut self, val: bool)
Capture Polarity 0. 0 = Positive edge capture, 1 = Negative edge capture.
Sourcepub const fn cappol1(&self) -> bool
pub const fn cappol1(&self) -> bool
Capture Polarity 1. 0 = Positive edge capture, 1 = Negative edge capture.
Sourcepub const fn set_cappol1(&mut self, val: bool)
pub const fn set_cappol1(&mut self, val: bool)
Capture Polarity 1. 0 = Positive edge capture, 1 = Negative edge capture.
Sourcepub const fn cappol2(&self) -> bool
pub const fn cappol2(&self) -> bool
Capture Polarity 2. 0 = Positive edge capture, 1 = Negative edge capture.
Sourcepub const fn set_cappol2(&mut self, val: bool)
pub const fn set_cappol2(&mut self, val: bool)
Capture Polarity 2. 0 = Positive edge capture, 1 = Negative edge capture.
Sourcepub const fn cappol3(&self) -> bool
pub const fn cappol3(&self) -> bool
Capture Polarity 3. 0 = Positive edge capture, 1 = Negative edge capture.
Sourcepub const fn set_cappol3(&mut self, val: bool)
pub const fn set_cappol3(&mut self, val: bool)
Capture Polarity 3. 0 = Positive edge capture, 1 = Negative edge capture.