#[repr(transparent)]pub struct GdetCtrl(pub u32);Expand description
GDET Control Register
Tuple Fields§
§0: u32Implementations§
Source§impl GdetCtrl
impl GdetCtrl
Sourcepub const fn gdet_evtcnt_clr(&self) -> bool
pub const fn gdet_evtcnt_clr(&self) -> bool
Controls the GDET 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 GDET clean event counter
Sourcepub const fn gdet_err_clr(&self) -> bool
pub const fn gdet_err_clr(&self) -> bool
Clears GDET 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 GDET error status
Sourcepub const fn gdet_iso_sw(&self) -> GdetIsoSw
pub const fn gdet_iso_sw(&self) -> GdetIsoSw
GDET isolation control
Sourcepub const fn set_gdet_iso_sw(&mut self, val: GdetIsoSw)
pub const fn set_gdet_iso_sw(&mut self, val: GdetIsoSw)
GDET 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 GdetCtrl
impl Eq for GdetCtrl
impl StructuralPartialEq for GdetCtrl
Auto Trait Implementations§
impl Freeze for GdetCtrl
impl RefUnwindSafe for GdetCtrl
impl Send for GdetCtrl
impl Sync for GdetCtrl
impl Unpin for GdetCtrl
impl UnwindSafe for GdetCtrl
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