Struct nrf5340_app_pac::pdm0_ns::RegisterBlock [−][src]
#[repr(C)]pub struct RegisterBlock {}Show 22 fields
pub tasks_start: Reg<TASKS_START_SPEC>, pub tasks_stop: Reg<TASKS_STOP_SPEC>, pub subscribe_start: Reg<SUBSCRIBE_START_SPEC>, pub subscribe_stop: Reg<SUBSCRIBE_STOP_SPEC>, pub events_started: Reg<EVENTS_STARTED_SPEC>, pub events_stopped: Reg<EVENTS_STOPPED_SPEC>, pub events_end: Reg<EVENTS_END_SPEC>, pub publish_started: Reg<PUBLISH_STARTED_SPEC>, pub publish_stopped: Reg<PUBLISH_STOPPED_SPEC>, pub publish_end: Reg<PUBLISH_END_SPEC>, pub inten: Reg<INTEN_SPEC>, pub intenset: Reg<INTENSET_SPEC>, pub intenclr: Reg<INTENCLR_SPEC>, pub enable: Reg<ENABLE_SPEC>, pub pdmclkctrl: Reg<PDMCLKCTRL_SPEC>, pub mode: Reg<MODE_SPEC>, pub gainl: Reg<GAINL_SPEC>, pub gainr: Reg<GAINR_SPEC>, pub ratio: Reg<RATIO_SPEC>, pub psel: PSEL, pub mclkconfig: Reg<MCLKCONFIG_SPEC>, pub sample: SAMPLE, // some fields omitted
Expand description
Register block
Fields
tasks_start: Reg<TASKS_START_SPEC>
0x00 - Starts continuous PDM transfer
tasks_stop: Reg<TASKS_STOP_SPEC>
0x04 - Stops PDM transfer
subscribe_start: Reg<SUBSCRIBE_START_SPEC>
0x80 - Subscribe configuration for task START
subscribe_stop: Reg<SUBSCRIBE_STOP_SPEC>
0x84 - Subscribe configuration for task STOP
events_started: Reg<EVENTS_STARTED_SPEC>
0x100 - PDM transfer has started
events_stopped: Reg<EVENTS_STOPPED_SPEC>
0x104 - PDM transfer has finished
events_end: Reg<EVENTS_END_SPEC>
0x108 - The PDM has written the last sample specified by SAMPLE.MAXCNT (or the last sample after a STOP task has been received) to Data RAM
publish_started: Reg<PUBLISH_STARTED_SPEC>
0x180 - Publish configuration for event STARTED
publish_stopped: Reg<PUBLISH_STOPPED_SPEC>
0x184 - Publish configuration for event STOPPED
publish_end: Reg<PUBLISH_END_SPEC>
0x188 - Publish configuration for event END
inten: Reg<INTEN_SPEC>
0x300 - Enable or disable interrupt
intenset: Reg<INTENSET_SPEC>
0x304 - Enable interrupt
intenclr: Reg<INTENCLR_SPEC>
0x308 - Disable interrupt
enable: Reg<ENABLE_SPEC>
0x500 - PDM module enable register
pdmclkctrl: Reg<PDMCLKCTRL_SPEC>
0x504 - PDM clock generator control
mode: Reg<MODE_SPEC>
0x508 - Defines the routing of the connected PDM microphones’ signals
gainl: Reg<GAINL_SPEC>
0x518 - Left output gain adjustment
gainr: Reg<GAINR_SPEC>
0x51c - Right output gain adjustment
ratio: Reg<RATIO_SPEC>
0x520 - Selects the ratio between PDM_CLK and output sample rate. Change PDMCLKCTRL accordingly.
psel: PSEL
0x540..0x548 - Unspecified
mclkconfig: Reg<MCLKCONFIG_SPEC>
0x54c - Master clock generator configuration
sample: SAMPLE
0x560..0x568 - Unspecified