pub struct Freqme { /* private fields */ }Expand description
Frequency Measurement.
Implementations§
Source§impl Freqme
impl Freqme
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn ctrl_r(self) -> Reg<CtrlR, R>
pub const fn ctrl_r(self) -> Reg<CtrlR, R>
Measurement result and progress. RESULT is valid when MEASURE_IN_PROGRESS is zero; in continuous mode it holds the most recently completed measurement.
Sourcepub const fn ctrl_w(self) -> Reg<CtrlW, W>
pub const fn ctrl_w(self) -> Reg<CtrlW, W>
Measurement control. Writing MEASURE_IN_PROGRESS=1 starts or restarts measurement; writing zero terminates measurement and clears RESULT. REF_SCALE selects 2^REF_SCALE reference pulses in frequency mode; PULSE_POL selects high (0) or low (1) period in pulse-width mode. Continuous mode stops on an out-of-range result; clear both threshold status bits and write both enable and start bits to restart it.
Trait Implementations§
impl Copy for Freqme
impl Eq for Freqme
impl Send for Freqme
impl StructuralPartialEq for Freqme
impl Sync for Freqme
Auto Trait Implementations§
impl Freeze for Freqme
impl RefUnwindSafe for Freqme
impl Unpin for Freqme
impl UnwindSafe for Freqme
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