Struct rp_pac::glitch_detector::regs::Sensitivity
source · #[repr(transparent)]pub struct Sensitivity(pub u32);
Expand description
Adjust the sensitivity of glitch detectors to values other than their OTP-provided defaults. This register is Secure read/write only.
Tuple Fields§
§0: u32
Implementations§
source§impl Sensitivity
impl Sensitivity
sourcepub const fn det0(&self) -> u8
pub const fn det0(&self) -> u8
Set sensitivity for detector 0. Higher values are more sensitive.
sourcepub fn set_det0(&mut self, val: u8)
pub fn set_det0(&mut self, val: u8)
Set sensitivity for detector 0. Higher values are more sensitive.
sourcepub const fn det1(&self) -> u8
pub const fn det1(&self) -> u8
Set sensitivity for detector 1. Higher values are more sensitive.
sourcepub fn set_det1(&mut self, val: u8)
pub fn set_det1(&mut self, val: u8)
Set sensitivity for detector 1. Higher values are more sensitive.
sourcepub const fn det2(&self) -> u8
pub const fn det2(&self) -> u8
Set sensitivity for detector 2. Higher values are more sensitive.
sourcepub fn set_det2(&mut self, val: u8)
pub fn set_det2(&mut self, val: u8)
Set sensitivity for detector 2. Higher values are more sensitive.
sourcepub const fn det3(&self) -> u8
pub const fn det3(&self) -> u8
Set sensitivity for detector 3. Higher values are more sensitive.
sourcepub fn set_det3(&mut self, val: u8)
pub fn set_det3(&mut self, val: u8)
Set sensitivity for detector 3. Higher values are more sensitive.
sourcepub const fn det0_inv(&self) -> u8
pub const fn det0_inv(&self) -> u8
Must be the inverse of DET0, else the default value is used.
sourcepub fn set_det0_inv(&mut self, val: u8)
pub fn set_det0_inv(&mut self, val: u8)
Must be the inverse of DET0, else the default value is used.
sourcepub const fn det1_inv(&self) -> u8
pub const fn det1_inv(&self) -> u8
Must be the inverse of DET1, else the default value is used.
sourcepub fn set_det1_inv(&mut self, val: u8)
pub fn set_det1_inv(&mut self, val: u8)
Must be the inverse of DET1, else the default value is used.
sourcepub const fn det2_inv(&self) -> u8
pub const fn det2_inv(&self) -> u8
Must be the inverse of DET2, else the default value is used.
sourcepub fn set_det2_inv(&mut self, val: u8)
pub fn set_det2_inv(&mut self, val: u8)
Must be the inverse of DET2, else the default value is used.
sourcepub const fn det3_inv(&self) -> u8
pub const fn det3_inv(&self) -> u8
Must be the inverse of DET3, else the default value is used.
sourcepub fn set_det3_inv(&mut self, val: u8)
pub fn set_det3_inv(&mut self, val: u8)
Must be the inverse of DET3, else the default value is used.
pub const fn default(&self) -> Default
pub fn set_default(&mut self, val: Default)
Trait Implementations§
source§impl Clone for Sensitivity
impl Clone for Sensitivity
source§fn clone(&self) -> Sensitivity
fn clone(&self) -> Sensitivity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for Sensitivity
impl Default for Sensitivity
source§fn default() -> Sensitivity
fn default() -> Sensitivity
source§impl PartialEq for Sensitivity
impl PartialEq for Sensitivity
impl Copy for Sensitivity
impl Eq for Sensitivity
impl StructuralPartialEq for Sensitivity
Auto Trait Implementations§
impl Freeze for Sensitivity
impl RefUnwindSafe for Sensitivity
impl Send for Sensitivity
impl Sync for Sensitivity
impl Unpin for Sensitivity
impl UnwindSafe for Sensitivity
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)