#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - Starts continuous PDM transfer"] pub tasks_start: TASKS_START, #[doc = "0x04 - Stops PDM transfer"] pub tasks_stop: TASKS_STOP, _reserved2: [u8; 0xf8], #[doc = "0x100 - PDM transfer has started"] pub events_started: EVENTS_STARTED, #[doc = "0x104 - PDM transfer has finished"] pub events_stopped: EVENTS_STOPPED, #[doc = "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"] pub events_end: EVENTS_END, _reserved5: [u8; 0x01f4], #[doc = "0x300 - Enable or disable interrupt"] pub inten: INTEN, #[doc = "0x304 - Enable interrupt"] pub intenset: INTENSET, #[doc = "0x308 - Disable interrupt"] pub intenclr: INTENCLR, _reserved8: [u8; 0x01f4], #[doc = "0x500 - PDM module enable register"] pub enable: ENABLE, #[doc = "0x504 - PDM clock generator control"] pub pdmclkctrl: PDMCLKCTRL, #[doc = "0x508 - Defines the routing of the connected PDM microphones' signals"] pub mode: MODE, _reserved11: [u8; 0x0c], #[doc = "0x518 - Left output gain adjustment"] pub gainl: GAINL, #[doc = "0x51c - Right output gain adjustment"] pub gainr: GAINR, _reserved13: [u8; 0x20], #[doc = "0x540..0x548 - Unspecified"] pub psel: PSEL, _reserved14: [u8; 0x18], #[doc = "0x560..0x568 - Unspecified"] pub sample: SAMPLE, } #[doc = "TASKS_START (w) register accessor: an alias for `Reg`"] pub type TASKS_START = crate::Reg; #[doc = "Starts continuous PDM transfer"] pub mod tasks_start; #[doc = "TASKS_STOP (w) register accessor: an alias for `Reg`"] pub type TASKS_STOP = crate::Reg; #[doc = "Stops PDM transfer"] pub mod tasks_stop; #[doc = "EVENTS_STARTED (rw) register accessor: an alias for `Reg`"] pub type EVENTS_STARTED = crate::Reg; #[doc = "PDM transfer has started"] pub mod events_started; #[doc = "EVENTS_STOPPED (rw) register accessor: an alias for `Reg`"] pub type EVENTS_STOPPED = crate::Reg; #[doc = "PDM transfer has finished"] pub mod events_stopped; #[doc = "EVENTS_END (rw) register accessor: an alias for `Reg`"] pub type EVENTS_END = crate::Reg; #[doc = "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"] pub mod events_end; #[doc = "INTEN (rw) register accessor: an alias for `Reg`"] pub type INTEN = crate::Reg; #[doc = "Enable or disable interrupt"] pub mod inten; #[doc = "INTENSET (rw) register accessor: an alias for `Reg`"] pub type INTENSET = crate::Reg; #[doc = "Enable interrupt"] pub mod intenset; #[doc = "INTENCLR (rw) register accessor: an alias for `Reg`"] pub type INTENCLR = crate::Reg; #[doc = "Disable interrupt"] pub mod intenclr; #[doc = "ENABLE (rw) register accessor: an alias for `Reg`"] pub type ENABLE = crate::Reg; #[doc = "PDM module enable register"] pub mod enable; #[doc = "PDMCLKCTRL (rw) register accessor: an alias for `Reg`"] pub type PDMCLKCTRL = crate::Reg; #[doc = "PDM clock generator control"] pub mod pdmclkctrl; #[doc = "MODE (rw) register accessor: an alias for `Reg`"] pub type MODE = crate::Reg; #[doc = "Defines the routing of the connected PDM microphones' signals"] pub mod mode; #[doc = "GAINL (rw) register accessor: an alias for `Reg`"] pub type GAINL = crate::Reg; #[doc = "Left output gain adjustment"] pub mod gainl; #[doc = "GAINR (rw) register accessor: an alias for `Reg`"] pub type GAINR = crate::Reg; #[doc = "Right output gain adjustment"] pub mod gainr; #[doc = "Unspecified"] pub use psel::PSEL; #[doc = r"Cluster"] #[doc = "Unspecified"] pub mod psel; #[doc = "Unspecified"] pub use sample::SAMPLE; #[doc = r"Cluster"] #[doc = "Unspecified"] pub mod sample;