pub struct Qdec { /* private fields */ }
Expand description
Rotary decoder.
Implementations§
Source§impl Qdec
impl Qdec
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn tasks_start(self) -> Reg<u32, W>
pub const fn tasks_start(self) -> Reg<u32, W>
Start the quadrature decoder.
Sourcepub const fn tasks_stop(self) -> Reg<u32, W>
pub const fn tasks_stop(self) -> Reg<u32, W>
Stop the quadrature decoder.
Sourcepub const fn tasks_readclracc(self) -> Reg<u32, W>
pub const fn tasks_readclracc(self) -> Reg<u32, W>
Transfers the content from ACC registers to ACCREAD registers, and clears the ACC registers.
Sourcepub const fn events_samplerdy(self) -> Reg<u32, RW>
pub const fn events_samplerdy(self) -> Reg<u32, RW>
A new sample is written to the sample register.
Sourcepub const fn events_reportrdy(self) -> Reg<u32, RW>
pub const fn events_reportrdy(self) -> Reg<u32, RW>
REPORTPER number of samples accumulated in ACC register, and ACC register different than zero.
Sourcepub const fn events_accof(self) -> Reg<u32, RW>
pub const fn events_accof(self) -> Reg<u32, RW>
ACC or ACCDBL register overflow.
Sourcepub const fn reportper(self) -> Reg<Reportper, RW>
pub const fn reportper(self) -> Reg<Reportper, RW>
Number of samples to generate an EVENT_REPORTRDY.
Sourcepub const fn accread(self) -> Reg<u32, R>
pub const fn accread(self) -> Reg<u32, R>
Snapshot of ACC register. Value generated by the TASKS_READCLEACC task.
Sourcepub const fn accdblread(self) -> Reg<Accdblread, R>
pub const fn accdblread(self) -> Reg<Accdblread, R>
Snapshot of ACCDBL register. Value generated by the TASKS_READCLEACC task.
Trait Implementations§
impl Copy for Qdec
impl Eq for Qdec
impl Send for Qdec
impl StructuralPartialEq for Qdec
impl Sync for Qdec
Auto Trait Implementations§
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)