Struct nrf51_hal::pac::qdec::RegisterBlock
source · #[repr(C)]pub struct RegisterBlock {Show 24 fields
pub tasks_start: Reg<TASKS_START_SPEC>,
pub tasks_stop: Reg<TASKS_STOP_SPEC>,
pub tasks_readclracc: Reg<TASKS_READCLRACC_SPEC>,
pub events_samplerdy: Reg<EVENTS_SAMPLERDY_SPEC>,
pub events_reportrdy: Reg<EVENTS_REPORTRDY_SPEC>,
pub events_accof: Reg<EVENTS_ACCOF_SPEC>,
pub shorts: Reg<SHORTS_SPEC>,
pub intenset: Reg<INTENSET_SPEC>,
pub intenclr: Reg<INTENCLR_SPEC>,
pub enable: Reg<ENABLE_SPEC>,
pub ledpol: Reg<LEDPOL_SPEC>,
pub sampleper: Reg<SAMPLEPER_SPEC>,
pub sample: Reg<SAMPLE_SPEC>,
pub reportper: Reg<REPORTPER_SPEC>,
pub acc: Reg<ACC_SPEC>,
pub accread: Reg<ACCREAD_SPEC>,
pub pselled: Reg<PSELLED_SPEC>,
pub psela: Reg<PSELA_SPEC>,
pub pselb: Reg<PSELB_SPEC>,
pub dbfen: Reg<DBFEN_SPEC>,
pub ledpre: Reg<LEDPRE_SPEC>,
pub accdbl: Reg<ACCDBL_SPEC>,
pub accdblread: Reg<ACCDBLREAD_SPEC>,
pub power: Reg<POWER_SPEC>,
/* private fields */
}
Expand description
Register block
Fields§
§tasks_start: Reg<TASKS_START_SPEC>
0x00 - Start the quadrature decoder.
tasks_stop: Reg<TASKS_STOP_SPEC>
0x04 - Stop the quadrature decoder.
tasks_readclracc: Reg<TASKS_READCLRACC_SPEC>
0x08 - Transfers the content from ACC registers to ACCREAD registers, and clears the ACC registers.
events_samplerdy: Reg<EVENTS_SAMPLERDY_SPEC>
0x100 - A new sample is written to the sample register.
events_reportrdy: Reg<EVENTS_REPORTRDY_SPEC>
0x104 - REPORTPER number of samples accumulated in ACC register, and ACC register different than zero.
events_accof: Reg<EVENTS_ACCOF_SPEC>
0x108 - ACC or ACCDBL register overflow.
shorts: Reg<SHORTS_SPEC>
0x200 - Shortcuts for the QDEC.
intenset: Reg<INTENSET_SPEC>
0x304 - Interrupt enable set register.
intenclr: Reg<INTENCLR_SPEC>
0x308 - Interrupt enable clear register.
enable: Reg<ENABLE_SPEC>
0x500 - Enable the QDEC.
ledpol: Reg<LEDPOL_SPEC>
0x504 - LED output pin polarity.
sampleper: Reg<SAMPLEPER_SPEC>
0x508 - Sample period.
sample: Reg<SAMPLE_SPEC>
0x50c - Motion sample value.
reportper: Reg<REPORTPER_SPEC>
0x510 - Number of samples to generate an EVENT_REPORTRDY.
acc: Reg<ACC_SPEC>
0x514 - Accumulated valid transitions register.
accread: Reg<ACCREAD_SPEC>
0x518 - Snapshot of ACC register. Value generated by the TASKS_READCLEACC task.
pselled: Reg<PSELLED_SPEC>
0x51c - Pin select for LED output.
psela: Reg<PSELA_SPEC>
0x520 - Pin select for phase A input.
pselb: Reg<PSELB_SPEC>
0x524 - Pin select for phase B input.
dbfen: Reg<DBFEN_SPEC>
0x528 - Enable debouncer input filters.
ledpre: Reg<LEDPRE_SPEC>
0x540 - Time LED is switched ON before the sample.
accdbl: Reg<ACCDBL_SPEC>
0x544 - Accumulated double (error) transitions register.
accdblread: Reg<ACCDBLREAD_SPEC>
0x548 - Snapshot of ACCDBL register. Value generated by the TASKS_READCLEACC task.
power: Reg<POWER_SPEC>
0xffc - Peripheral power control.