pub struct Qdec { /* private fields */ }
Expand description
Quadrature Decoder 0
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 subscribe_start(self) -> Reg<Subscribe, RW>
pub const fn subscribe_start(self) -> Reg<Subscribe, RW>
Subscribe configuration for task START
Sourcepub const fn subscribe_stop(self) -> Reg<Subscribe, RW>
pub const fn subscribe_stop(self) -> Reg<Subscribe, RW>
Subscribe configuration for task STOP
Sourcepub const fn subscribe_readclracc(self) -> Reg<Subscribe, RW>
pub const fn subscribe_readclracc(self) -> Reg<Subscribe, RW>
Subscribe configuration for task READCLRACC
Sourcepub const fn subscribe_rdclracc(self) -> Reg<Subscribe, RW>
pub const fn subscribe_rdclracc(self) -> Reg<Subscribe, RW>
Subscribe configuration for task RDCLRACC
Sourcepub const fn subscribe_rdclrdbl(self) -> Reg<Subscribe, RW>
pub const fn subscribe_rdclrdbl(self) -> Reg<Subscribe, RW>
Subscribe configuration for task RDCLRDBL
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 publish_samplerdy(self) -> Reg<Publish, RW>
pub const fn publish_samplerdy(self) -> Reg<Publish, RW>
Publish configuration for event SAMPLERDY
Sourcepub const fn publish_reportrdy(self) -> Reg<Publish, RW>
pub const fn publish_reportrdy(self) -> Reg<Publish, RW>
Publish configuration for event REPORTRDY
Sourcepub const fn publish_accof(self) -> Reg<Publish, RW>
pub const fn publish_accof(self) -> Reg<Publish, RW>
Publish configuration for event ACCOF
Sourcepub const fn publish_dblrdy(self) -> Reg<Publish, RW>
pub const fn publish_dblrdy(self) -> Reg<Publish, RW>
Publish configuration for event DBLRDY
Sourcepub const fn publish_stopped(self) -> Reg<Publish, RW>
pub const fn publish_stopped(self) -> Reg<Publish, RW>
Publish configuration for event 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
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
)