#[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 Raw bit values: false (0) = Disable: Event counter not cleared; true (1) = Enable: Clears 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 Raw bit values: false (0) = Disable: Event counter not cleared; true (1) = Enable: Clears event counter
Sourcepub const fn gdet_err_clr(&self) -> bool
pub const fn gdet_err_clr(&self) -> bool
Clears GDET0 error status Raw bit values: false (0) = Disable: Error status not cleared; true (1) = Enable: Clears 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 Raw bit values: false (0) = Disable: Error status not cleared; true (1) = Enable: Clears error status
Sourcepub const fn gdet_iso_sw(&self) -> Gdet0CtrlGdetIsoSw
pub const fn gdet_iso_sw(&self) -> Gdet0CtrlGdetIsoSw
GDET0 isolation control
Sourcepub const fn set_gdet_iso_sw(&mut self, val: Gdet0CtrlGdetIsoSw)
pub const fn set_gdet_iso_sw(&mut self, val: Gdet0CtrlGdetIsoSw)
GDET0 isolation control
Sourcepub const fn event_cnt(&self) -> u8
pub const fn event_cnt(&self) -> u8
Read-only Gray-coded glitch-event counter; not ordinary binary.
Sourcepub const fn set_event_cnt(&mut self, val: u8)
pub const fn set_event_cnt(&mut self, val: u8)
Read-only Gray-coded glitch-event counter; not ordinary binary.
Sourcepub const fn pos_sync(&self) -> bool
pub const fn pos_sync(&self) -> bool
Read-only status observation. Raw bit values: false (0) = Disable: Positive glitch not detected; true (1) = Enable: Positive glitch detected
Sourcepub const fn set_pos_sync(&mut self, val: bool)
pub const fn set_pos_sync(&mut self, val: bool)
Read-only status observation. Raw bit values: false (0) = Disable: Positive glitch not detected; true (1) = Enable: Positive glitch detected
Sourcepub const fn neg_sync(&self) -> bool
pub const fn neg_sync(&self) -> bool
Read-only status observation. Raw bit values: false (0) = Disable: Negative glitch not detected; true (1) = Enable: Negative glitch detected
Sourcepub const fn set_neg_sync(&mut self, val: bool)
pub const fn set_neg_sync(&mut self, val: bool)
Read-only status observation. Raw bit values: false (0) = Disable: Negative glitch not detected; true (1) = Enable: Negative glitch detected
Sourcepub const fn event_clr_flag(&self) -> bool
pub const fn event_clr_flag(&self) -> bool
Read-only status observation. Raw bit values: false (0) = Disable: Event counter not cleared; true (1) = Enable: 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)
Read-only status observation. Raw bit values: false (0) = Disable: Event counter not cleared; true (1) = Enable: Event counter cleared