Struct microbit::hal::pac::qdec::RegisterBlock [−]
#[repr(C)]pub struct RegisterBlock {}Show fields
pub tasks_start: Reg<u32, _TASKS_START>, pub tasks_stop: Reg<u32, _TASKS_STOP>, pub tasks_readclracc: Reg<u32, _TASKS_READCLRACC>, pub tasks_rdclracc: Reg<u32, _TASKS_RDCLRACC>, pub tasks_rdclrdbl: Reg<u32, _TASKS_RDCLRDBL>, pub events_samplerdy: Reg<u32, _EVENTS_SAMPLERDY>, pub events_reportrdy: Reg<u32, _EVENTS_REPORTRDY>, pub events_accof: Reg<u32, _EVENTS_ACCOF>, pub events_dblrdy: Reg<u32, _EVENTS_DBLRDY>, pub events_stopped: Reg<u32, _EVENTS_STOPPED>, pub shorts: Reg<u32, _SHORTS>, pub intenset: Reg<u32, _INTENSET>, pub intenclr: Reg<u32, _INTENCLR>, pub enable: Reg<u32, _ENABLE>, pub ledpol: Reg<u32, _LEDPOL>, pub sampleper: Reg<u32, _SAMPLEPER>, pub sample: Reg<u32, _SAMPLE>, pub reportper: Reg<u32, _REPORTPER>, pub acc: Reg<u32, _ACC>, pub accread: Reg<u32, _ACCREAD>, pub psel: PSEL, pub dbfen: Reg<u32, _DBFEN>, pub ledpre: Reg<u32, _LEDPRE>, pub accdbl: Reg<u32, _ACCDBL>, pub accdblread: Reg<u32, _ACCDBLREAD>, // some fields omitted
Expand description
Register block
Fields
tasks_start: Reg<u32, _TASKS_START>0x00 - Task starting the quadrature decoder
tasks_stop: Reg<u32, _TASKS_STOP>0x04 - Task stopping the quadrature decoder
tasks_readclracc: Reg<u32, _TASKS_READCLRACC>0x08 - Read and clear ACC and ACCDBL
tasks_rdclracc: Reg<u32, _TASKS_RDCLRACC>0x0c - Read and clear ACC
tasks_rdclrdbl: Reg<u32, _TASKS_RDCLRDBL>0x10 - Read and clear ACCDBL
events_samplerdy: Reg<u32, _EVENTS_SAMPLERDY>0x100 - Event being generated for every new sample value written to the SAMPLE register
events_reportrdy: Reg<u32, _EVENTS_REPORTRDY>0x104 - Non-null report ready
events_accof: Reg<u32, _EVENTS_ACCOF>0x108 - ACC or ACCDBL register overflow
events_dblrdy: Reg<u32, _EVENTS_DBLRDY>0x10c - Double displacement(s) detected
events_stopped: Reg<u32, _EVENTS_STOPPED>0x110 - QDEC has been stopped
shorts: Reg<u32, _SHORTS>0x200 - Shortcuts between local events and tasks
intenset: Reg<u32, _INTENSET>0x304 - Enable interrupt
intenclr: Reg<u32, _INTENCLR>0x308 - Disable interrupt
enable: Reg<u32, _ENABLE>0x500 - Enable the quadrature decoder
ledpol: Reg<u32, _LEDPOL>0x504 - LED output pin polarity
sampleper: Reg<u32, _SAMPLEPER>0x508 - Sample period
sample: Reg<u32, _SAMPLE>0x50c - Motion sample value
reportper: Reg<u32, _REPORTPER>0x510 - Number of samples to be taken before REPORTRDY and DBLRDY events can be generated
acc: Reg<u32, _ACC>0x514 - Register accumulating the valid transitions
accread: Reg<u32, _ACCREAD>0x518 - Snapshot of the ACC register, updated by the READCLRACC or RDCLRACC task
psel: PSEL0x51c - Unspecified
dbfen: Reg<u32, _DBFEN>0x528 - Enable input debounce filters
ledpre: Reg<u32, _LEDPRE>0x540 - Time period the LED is switched ON prior to sampling
accdbl: Reg<u32, _ACCDBL>0x544 - Register accumulating the number of detected double transitions
accdblread: Reg<u32, _ACCDBLREAD>0x548 - Snapshot of the ACCDBL, updated by the READCLRACC or RDCLRDBL task
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> CheckedAs for T[src]
impl<T> CheckedAs for T[src]pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>, [src]
pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>, [src]Casts the value.
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>, [src]
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>, [src]pub fn lossless_try_into(self) -> Option<Dst>[src]
pub fn lossless_try_into(self) -> Option<Dst>[src]Performs the conversion.
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>, [src]
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>, [src]pub fn lossy_into(self) -> Dst[src]
pub fn lossy_into(self) -> Dst[src]Performs the conversion.
impl<T> OverflowingAs for T[src]
impl<T> OverflowingAs for T[src]pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>, [src]
pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>, [src]Casts the value.
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<T> SaturatingAs for T[src]
impl<T> SaturatingAs for T[src]pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>, [src]
pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>, [src]Casts the value.
impl<T> UnwrappedAs for T[src]
impl<T> UnwrappedAs for T[src]pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>, [src]
pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>, [src]Casts the value.
impl<T> WrappingAs for T[src]
impl<T> WrappingAs for T[src]pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>, [src]
pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>, [src]Casts the value.