Struct stm32_metapac::adc::regs::Tr1
#[repr(transparent)]pub struct Tr1(pub u32);
Expand description
watchdog threshold register 1
Tuple Fields§
§0: u32
Implementations§
§impl Tr1
impl Tr1
pub const fn lt1(&self) -> u16
pub const fn lt1(&self) -> u16
Analog watchdog 1 lower threshold These bits are written by software to define the lower threshold for the analog watchdog 1. Refer to AWD2CH, AWD3CH, AWD_HTx, AWD_LTx, AWDx) Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing).
pub fn set_lt1(&mut self, val: u16)
pub fn set_lt1(&mut self, val: u16)
Analog watchdog 1 lower threshold These bits are written by software to define the lower threshold for the analog watchdog 1. Refer to AWD2CH, AWD3CH, AWD_HTx, AWD_LTx, AWDx) Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing).
pub const fn awdfilt(&self) -> u8
pub const fn awdfilt(&self) -> u8
Analog watchdog filtering parameter This bit is set and cleared by software. … Note: The software is allowed to write this bit only when ADSTART = 0 (which ensures that no conversion is ongoing).
pub fn set_awdfilt(&mut self, val: u8)
pub fn set_awdfilt(&mut self, val: u8)
Analog watchdog filtering parameter This bit is set and cleared by software. … Note: The software is allowed to write this bit only when ADSTART = 0 (which ensures that no conversion is ongoing).
pub const fn ht1(&self) -> u16
pub const fn ht1(&self) -> u16
Analog watchdog 1 higher threshold These bits are written by software to define the higher threshold for the analog watchdog 1. Refer to AWD2CH, AWD3CH, AWD_HTx, AWD_LTx, AWDx) Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing).
pub fn set_ht1(&mut self, val: u16)
pub fn set_ht1(&mut self, val: u16)
Analog watchdog 1 higher threshold These bits are written by software to define the higher threshold for the analog watchdog 1. Refer to AWD2CH, AWD3CH, AWD_HTx, AWD_LTx, AWDx) Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing).
Trait Implementations§
impl Copy for Tr1
impl Eq for Tr1
impl StructuralPartialEq for Tr1
Auto Trait Implementations§
impl Freeze for Tr1
impl RefUnwindSafe for Tr1
impl Send for Tr1
impl Sync for Tr1
impl Unpin for Tr1
impl UnwindSafe for Tr1
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
)