#[repr(transparent)]pub struct GlitchDetectSc2(pub u32);Expand description
Glitch Detect Status Control.
Tuple Fields§
§0: u32Implementations§
Source§impl GlitchDetectSc2
impl GlitchDetectSc2
Sourcepub const fn cnt_select(&self) -> CntSelect2
pub const fn cnt_select(&self) -> CntSelect2
Counter Select.
Sourcepub const fn set_cnt_select(&mut self, val: CntSelect2)
pub const fn set_cnt_select(&mut self, val: CntSelect2)
Counter Select.
Sourcepub const fn set_timeout(&mut self, val: u8)
pub const fn set_timeout(&mut self, val: u8)
Timeout.
Sourcepub const fn re(&self) -> bool
pub const fn re(&self) -> bool
Glitch Detect Reset Enable. Raw bit values: false (0) = Disabled: GLITCH_DETECT_FLAG[CNT_SELECT] does not generate POR/LVD reset.; true (1) = Enabled: GLITCH_DETECT_FLAG[CNT_SELECT] does generate POR/LVD reset.
Sourcepub const fn set_re(&mut self, val: bool)
pub const fn set_re(&mut self, val: bool)
Glitch Detect Reset Enable. Raw bit values: false (0) = Disabled: GLITCH_DETECT_FLAG[CNT_SELECT] does not generate POR/LVD reset.; true (1) = Enabled: GLITCH_DETECT_FLAG[CNT_SELECT] does generate POR/LVD reset.
Sourcepub const fn ie(&self) -> bool
pub const fn ie(&self) -> bool
Glitch Detect Interrupt Enable. Raw bit values: false (0) = Disabled: GLITCH_DETECT_FLAG[CNT_SELECT] does not generate hardware interrupt (user polling).; true (1) = Enabled: GLITCH_DETECT_FLAG[CNT_SELECT] does generate hardware interrupt.
Sourcepub const fn set_ie(&mut self, val: bool)
pub const fn set_ie(&mut self, val: bool)
Glitch Detect Interrupt Enable. Raw bit values: false (0) = Disabled: GLITCH_DETECT_FLAG[CNT_SELECT] does not generate hardware interrupt (user polling).; true (1) = Enabled: GLITCH_DETECT_FLAG[CNT_SELECT] does generate hardware interrupt.
Sourcepub const fn glitch_detect_flag(&self) -> u8
pub const fn glitch_detect_flag(&self) -> u8
GLITCH_DETECT_FLAG.
Sourcepub const fn set_glitch_detect_flag(&mut self, val: u8)
pub const fn set_glitch_detect_flag(&mut self, val: u8)
GLITCH_DETECT_FLAG.
Trait Implementations§
Source§impl Clone for GlitchDetectSc2
impl Clone for GlitchDetectSc2
Source§fn clone(&self) -> GlitchDetectSc2
fn clone(&self) -> GlitchDetectSc2
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more