pub struct Qdec { /* private fields */ }
Expand description
Quadrature 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>
Task starting the quadrature decoder
Sourcepub const fn tasks_stop(self) -> Reg<u32, W>
pub const fn tasks_stop(self) -> Reg<u32, W>
Task stopping the quadrature decoder
Sourcepub const fn tasks_readclracc(self) -> Reg<u32, W>
pub const fn tasks_readclracc(self) -> Reg<u32, W>
Read and clear ACC and ACCDBL
Sourcepub const fn tasks_rdclracc(self) -> Reg<u32, W>
pub const fn tasks_rdclracc(self) -> Reg<u32, W>
Read and clear ACC
Sourcepub const fn tasks_rdclrdbl(self) -> Reg<u32, W>
pub const fn tasks_rdclrdbl(self) -> Reg<u32, W>
Read and clear ACCDBL
Sourcepub const fn events_samplerdy(self) -> Reg<u32, RW>
pub const fn events_samplerdy(self) -> Reg<u32, RW>
Event being generated for every new sample value written to the SAMPLE register
Sourcepub const fn events_reportrdy(self) -> Reg<u32, RW>
pub const fn events_reportrdy(self) -> Reg<u32, RW>
Non-null report ready
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 events_dblrdy(self) -> Reg<u32, RW>
pub const fn events_dblrdy(self) -> Reg<u32, RW>
Double displacement(s) detected
Sourcepub const fn events_stopped(self) -> Reg<u32, RW>
pub const fn events_stopped(self) -> Reg<u32, RW>
QDEC has been stopped
Sourcepub const fn reportper(self) -> Reg<Reportper, RW>
pub const fn reportper(self) -> Reg<Reportper, RW>
Number of samples to be taken before REPORTRDY and DBLRDY events can be generated
Sourcepub const fn accread(self) -> Reg<u32, R>
pub const fn accread(self) -> Reg<u32, R>
Snapshot of the ACC register, updated by the READCLRACC or RDCLRACC task
Sourcepub const fn ledpre(self) -> Reg<Ledpre, RW>
pub const fn ledpre(self) -> Reg<Ledpre, RW>
Time period the LED is switched ON prior to sampling
Sourcepub const fn accdbl(self) -> Reg<Accdbl, R>
pub const fn accdbl(self) -> Reg<Accdbl, R>
Register accumulating the number of detected double transitions
Sourcepub const fn accdblread(self) -> Reg<Accdblread, R>
pub const fn accdblread(self) -> Reg<Accdblread, R>
Snapshot of the ACCDBL, updated by the READCLRACC or RDCLRDBL 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
)