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; 0x78],
9 #[doc = "0x80 - Subscribe configuration for task START"]
10 pub subscribe_start: SUBSCRIBE_START,
11 #[doc = "0x84 - Subscribe configuration for task STOP"]
12 pub subscribe_stop: SUBSCRIBE_STOP,
13 _reserved4: [u8; 0x78],
14 #[doc = "0x100 - PDM transfer has started"]
15 pub events_started: EVENTS_STARTED,
16 #[doc = "0x104 - PDM transfer has finished"]
17 pub events_stopped: EVENTS_STOPPED,
18 #[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"]
19 pub events_end: EVENTS_END,
20 _reserved7: [u8; 0x74],
21 #[doc = "0x180 - Publish configuration for event STARTED"]
22 pub publish_started: PUBLISH_STARTED,
23 #[doc = "0x184 - Publish configuration for event STOPPED"]
24 pub publish_stopped: PUBLISH_STOPPED,
25 #[doc = "0x188 - Publish configuration for event END"]
26 pub publish_end: PUBLISH_END,
27 _reserved10: [u8; 0x0174],
28 #[doc = "0x300 - Enable or disable interrupt"]
29 pub inten: INTEN,
30 #[doc = "0x304 - Enable interrupt"]
31 pub intenset: INTENSET,
32 #[doc = "0x308 - Disable interrupt"]
33 pub intenclr: INTENCLR,
34 _reserved13: [u8; 0x01f4],
35 #[doc = "0x500 - PDM module enable register"]
36 pub enable: ENABLE,
37 #[doc = "0x504 - PDM clock generator control"]
38 pub pdmclkctrl: PDMCLKCTRL,
39 #[doc = "0x508 - Defines the routing of the connected PDM microphones' signals"]
40 pub mode: MODE,
41 _reserved16: [u8; 0x0c],
42 #[doc = "0x518 - Left output gain adjustment"]
43 pub gainl: GAINL,
44 #[doc = "0x51c - Right output gain adjustment"]
45 pub gainr: GAINR,
46 #[doc = "0x520 - Selects the ratio between PDM_CLK and output sample rate. Change PDMCLKCTRL accordingly."]
47 pub ratio: RATIO,
48 _reserved19: [u8; 0x1c],
49 #[doc = "0x540..0x548 - Unspecified"]
50 pub psel: PSEL,
51 _reserved20: [u8; 0x18],
52 #[doc = "0x560..0x568 - Unspecified"]
53 pub sample: SAMPLE,
54}
55#[doc = "TASKS_START (w) register accessor: an alias for `Reg<TASKS_START_SPEC>`"]
56pub type TASKS_START = crate::Reg<tasks_start::TASKS_START_SPEC>;
57#[doc = "Starts continuous PDM transfer"]
58pub mod tasks_start;
59#[doc = "TASKS_STOP (w) register accessor: an alias for `Reg<TASKS_STOP_SPEC>`"]
60pub type TASKS_STOP = crate::Reg<tasks_stop::TASKS_STOP_SPEC>;
61#[doc = "Stops PDM transfer"]
62pub mod tasks_stop;
63#[doc = "SUBSCRIBE_START (rw) register accessor: an alias for `Reg<SUBSCRIBE_START_SPEC>`"]
64pub type SUBSCRIBE_START = crate::Reg<subscribe_start::SUBSCRIBE_START_SPEC>;
65#[doc = "Subscribe configuration for task START"]
66pub mod subscribe_start;
67#[doc = "SUBSCRIBE_STOP (rw) register accessor: an alias for `Reg<SUBSCRIBE_STOP_SPEC>`"]
68pub type SUBSCRIBE_STOP = crate::Reg<subscribe_stop::SUBSCRIBE_STOP_SPEC>;
69#[doc = "Subscribe configuration for task STOP"]
70pub mod subscribe_stop;
71#[doc = "EVENTS_STARTED (rw) register accessor: an alias for `Reg<EVENTS_STARTED_SPEC>`"]
72pub type EVENTS_STARTED = crate::Reg<events_started::EVENTS_STARTED_SPEC>;
73#[doc = "PDM transfer has started"]
74pub mod events_started;
75#[doc = "EVENTS_STOPPED (rw) register accessor: an alias for `Reg<EVENTS_STOPPED_SPEC>`"]
76pub type EVENTS_STOPPED = crate::Reg<events_stopped::EVENTS_STOPPED_SPEC>;
77#[doc = "PDM transfer has finished"]
78pub mod events_stopped;
79#[doc = "EVENTS_END (rw) register accessor: an alias for `Reg<EVENTS_END_SPEC>`"]
80pub type EVENTS_END = crate::Reg<events_end::EVENTS_END_SPEC>;
81#[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"]
82pub mod events_end;
83#[doc = "PUBLISH_STARTED (rw) register accessor: an alias for `Reg<PUBLISH_STARTED_SPEC>`"]
84pub type PUBLISH_STARTED = crate::Reg<publish_started::PUBLISH_STARTED_SPEC>;
85#[doc = "Publish configuration for event STARTED"]
86pub mod publish_started;
87#[doc = "PUBLISH_STOPPED (rw) register accessor: an alias for `Reg<PUBLISH_STOPPED_SPEC>`"]
88pub type PUBLISH_STOPPED = crate::Reg<publish_stopped::PUBLISH_STOPPED_SPEC>;
89#[doc = "Publish configuration for event STOPPED"]
90pub mod publish_stopped;
91#[doc = "PUBLISH_END (rw) register accessor: an alias for `Reg<PUBLISH_END_SPEC>`"]
92pub type PUBLISH_END = crate::Reg<publish_end::PUBLISH_END_SPEC>;
93#[doc = "Publish configuration for event END"]
94pub mod publish_end;
95#[doc = "INTEN (rw) register accessor: an alias for `Reg<INTEN_SPEC>`"]
96pub type INTEN = crate::Reg<inten::INTEN_SPEC>;
97#[doc = "Enable or disable interrupt"]
98pub mod inten;
99#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
100pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
101#[doc = "Enable interrupt"]
102pub mod intenset;
103#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
104pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
105#[doc = "Disable interrupt"]
106pub mod intenclr;
107#[doc = "ENABLE (rw) register accessor: an alias for `Reg<ENABLE_SPEC>`"]
108pub type ENABLE = crate::Reg<enable::ENABLE_SPEC>;
109#[doc = "PDM module enable register"]
110pub mod enable;
111#[doc = "PDMCLKCTRL (rw) register accessor: an alias for `Reg<PDMCLKCTRL_SPEC>`"]
112pub type PDMCLKCTRL = crate::Reg<pdmclkctrl::PDMCLKCTRL_SPEC>;
113#[doc = "PDM clock generator control"]
114pub mod pdmclkctrl;
115#[doc = "MODE (rw) register accessor: an alias for `Reg<MODE_SPEC>`"]
116pub type MODE = crate::Reg<mode::MODE_SPEC>;
117#[doc = "Defines the routing of the connected PDM microphones' signals"]
118pub mod mode;
119#[doc = "GAINL (rw) register accessor: an alias for `Reg<GAINL_SPEC>`"]
120pub type GAINL = crate::Reg<gainl::GAINL_SPEC>;
121#[doc = "Left output gain adjustment"]
122pub mod gainl;
123#[doc = "GAINR (rw) register accessor: an alias for `Reg<GAINR_SPEC>`"]
124pub type GAINR = crate::Reg<gainr::GAINR_SPEC>;
125#[doc = "Right output gain adjustment"]
126pub mod gainr;
127#[doc = "RATIO (rw) register accessor: an alias for `Reg<RATIO_SPEC>`"]
128pub type RATIO = crate::Reg<ratio::RATIO_SPEC>;
129#[doc = "Selects the ratio between PDM_CLK and output sample rate. Change PDMCLKCTRL accordingly."]
130pub mod ratio;
131#[doc = "Unspecified"]
132pub use psel::PSEL;
133#[doc = r"Cluster"]
134#[doc = "Unspecified"]
135pub mod psel;
136#[doc = "Unspecified"]
137pub use sample::SAMPLE;
138#[doc = r"Cluster"]
139#[doc = "Unspecified"]
140pub mod sample;