1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - Starts continuous PDM transfer"]
5 pub tasks_start: TASKS_START,
6 #[doc = "0x04 - Stops PDM transfer"]
7 pub tasks_stop: TASKS_STOP,
8 _reserved2: [u8; 0xf8],
9 #[doc = "0x100 - PDM transfer has started"]
10 pub events_started: EVENTS_STARTED,
11 #[doc = "0x104 - PDM transfer has finished"]
12 pub events_stopped: EVENTS_STOPPED,
13 #[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"]
14 pub events_end: EVENTS_END,
15 _reserved5: [u8; 0x01f4],
16 #[doc = "0x300 - Enable or disable interrupt"]
17 pub inten: INTEN,
18 #[doc = "0x304 - Enable interrupt"]
19 pub intenset: INTENSET,
20 #[doc = "0x308 - Disable interrupt"]
21 pub intenclr: INTENCLR,
22 _reserved8: [u8; 0x01f4],
23 #[doc = "0x500 - PDM module enable register"]
24 pub enable: ENABLE,
25 #[doc = "0x504 - PDM clock generator control"]
26 pub pdmclkctrl: PDMCLKCTRL,
27 #[doc = "0x508 - Defines the routing of the connected PDM microphones' signals"]
28 pub mode: MODE,
29 _reserved11: [u8; 0x0c],
30 #[doc = "0x518 - Left output gain adjustment"]
31 pub gainl: GAINL,
32 #[doc = "0x51c - Right output gain adjustment"]
33 pub gainr: GAINR,
34 _reserved13: [u8; 0x20],
35 #[doc = "0x540..0x548 - Unspecified"]
36 pub psel: PSEL,
37 _reserved14: [u8; 0x18],
38 #[doc = "0x560..0x568 - Unspecified"]
39 pub sample: SAMPLE,
40}
41#[doc = "TASKS_START (w) register accessor: an alias for `Reg<TASKS_START_SPEC>`"]
42pub type TASKS_START = crate::Reg<tasks_start::TASKS_START_SPEC>;
43#[doc = "Starts continuous PDM transfer"]
44pub mod tasks_start;
45#[doc = "TASKS_STOP (w) register accessor: an alias for `Reg<TASKS_STOP_SPEC>`"]
46pub type TASKS_STOP = crate::Reg<tasks_stop::TASKS_STOP_SPEC>;
47#[doc = "Stops PDM transfer"]
48pub mod tasks_stop;
49#[doc = "EVENTS_STARTED (rw) register accessor: an alias for `Reg<EVENTS_STARTED_SPEC>`"]
50pub type EVENTS_STARTED = crate::Reg<events_started::EVENTS_STARTED_SPEC>;
51#[doc = "PDM transfer has started"]
52pub mod events_started;
53#[doc = "EVENTS_STOPPED (rw) register accessor: an alias for `Reg<EVENTS_STOPPED_SPEC>`"]
54pub type EVENTS_STOPPED = crate::Reg<events_stopped::EVENTS_STOPPED_SPEC>;
55#[doc = "PDM transfer has finished"]
56pub mod events_stopped;
57#[doc = "EVENTS_END (rw) register accessor: an alias for `Reg<EVENTS_END_SPEC>`"]
58pub type EVENTS_END = crate::Reg<events_end::EVENTS_END_SPEC>;
59#[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"]
60pub mod events_end;
61#[doc = "INTEN (rw) register accessor: an alias for `Reg<INTEN_SPEC>`"]
62pub type INTEN = crate::Reg<inten::INTEN_SPEC>;
63#[doc = "Enable or disable interrupt"]
64pub mod inten;
65#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
66pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
67#[doc = "Enable interrupt"]
68pub mod intenset;
69#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
70pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
71#[doc = "Disable interrupt"]
72pub mod intenclr;
73#[doc = "ENABLE (rw) register accessor: an alias for `Reg<ENABLE_SPEC>`"]
74pub type ENABLE = crate::Reg<enable::ENABLE_SPEC>;
75#[doc = "PDM module enable register"]
76pub mod enable;
77#[doc = "PDMCLKCTRL (rw) register accessor: an alias for `Reg<PDMCLKCTRL_SPEC>`"]
78pub type PDMCLKCTRL = crate::Reg<pdmclkctrl::PDMCLKCTRL_SPEC>;
79#[doc = "PDM clock generator control"]
80pub mod pdmclkctrl;
81#[doc = "MODE (rw) register accessor: an alias for `Reg<MODE_SPEC>`"]
82pub type MODE = crate::Reg<mode::MODE_SPEC>;
83#[doc = "Defines the routing of the connected PDM microphones' signals"]
84pub mod mode;
85#[doc = "GAINL (rw) register accessor: an alias for `Reg<GAINL_SPEC>`"]
86pub type GAINL = crate::Reg<gainl::GAINL_SPEC>;
87#[doc = "Left output gain adjustment"]
88pub mod gainl;
89#[doc = "GAINR (rw) register accessor: an alias for `Reg<GAINR_SPEC>`"]
90pub type GAINR = crate::Reg<gainr::GAINR_SPEC>;
91#[doc = "Right output gain adjustment"]
92pub mod gainr;
93#[doc = "Unspecified"]
94pub use psel::PSEL;
95#[doc = r"Cluster"]
96#[doc = "Unspecified"]
97pub mod psel;
98#[doc = "Unspecified"]
99pub use sample::SAMPLE;
100#[doc = r"Cluster"]
101#[doc = "Unspecified"]
102pub mod sample;