#[repr(transparent)]pub struct Gdet0Ctrl(pub u32);Expand description
GDET0 Control Register
Tuple Fields§
§0: u32Implementations§
Source§impl Gdet0Ctrl
impl Gdet0Ctrl
Sourcepub const fn gdet_evtcnt_clr(&self) -> bool
pub const fn gdet_evtcnt_clr(&self) -> bool
Controls the GDET0 clean event counter
Sourcepub const fn set_gdet_evtcnt_clr(&mut self, val: bool)
pub const fn set_gdet_evtcnt_clr(&mut self, val: bool)
Controls the GDET0 clean event counter
Sourcepub const fn gdet_err_clr(&self) -> bool
pub const fn gdet_err_clr(&self) -> bool
Clears GDET0 error status
Sourcepub const fn set_gdet_err_clr(&mut self, val: bool)
pub const fn set_gdet_err_clr(&mut self, val: bool)
Clears GDET0 error status
Sourcepub const fn gdet_iso_sw(&self) -> GdetIsoSw
pub const fn gdet_iso_sw(&self) -> GdetIsoSw
GDET0 isolation control
Sourcepub const fn set_gdet_iso_sw(&mut self, val: GdetIsoSw)
pub const fn set_gdet_iso_sw(&mut self, val: GdetIsoSw)
GDET0 isolation control
Sourcepub const fn set_event_cnt(&mut self, val: u8)
pub const fn set_event_cnt(&mut self, val: u8)
Event count value
Sourcepub const fn set_pos_sync(&mut self, val: bool)
pub const fn set_pos_sync(&mut self, val: bool)
Positive glitch detected
Sourcepub const fn set_neg_sync(&mut self, val: bool)
pub const fn set_neg_sync(&mut self, val: bool)
Negative glitch detected
Sourcepub const fn event_clr_flag(&self) -> bool
pub const fn event_clr_flag(&self) -> bool
Event counter cleared
Sourcepub const fn set_event_clr_flag(&mut self, val: bool)
pub const fn set_event_clr_flag(&mut self, val: bool)
Event counter cleared
Trait Implementations§
impl Copy for Gdet0Ctrl
impl Eq for Gdet0Ctrl
impl StructuralPartialEq for Gdet0Ctrl
Auto Trait Implementations§
impl Freeze for Gdet0Ctrl
impl RefUnwindSafe for Gdet0Ctrl
impl Send for Gdet0Ctrl
impl Sync for Gdet0Ctrl
impl Unpin for Gdet0Ctrl
impl UnwindSafe for Gdet0Ctrl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more