nrf5340_app_pac/
pdm0_ns.rs1#[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; 0x04],
52 #[doc = "0x54c - Master clock generator configuration"]
53 pub mclkconfig: MCLKCONFIG,
54 _reserved21: [u8; 0x10],
55 #[doc = "0x560..0x568 - Unspecified"]
56 pub sample: SAMPLE,
57}
58#[doc = "TASKS_START (w) register accessor: an alias for `Reg<TASKS_START_SPEC>`"]
59pub type TASKS_START = crate::Reg<tasks_start::TASKS_START_SPEC>;
60#[doc = "Starts continuous PDM transfer"]
61pub mod tasks_start;
62#[doc = "TASKS_STOP (w) register accessor: an alias for `Reg<TASKS_STOP_SPEC>`"]
63pub type TASKS_STOP = crate::Reg<tasks_stop::TASKS_STOP_SPEC>;
64#[doc = "Stops PDM transfer"]
65pub mod tasks_stop;
66#[doc = "SUBSCRIBE_START (rw) register accessor: an alias for `Reg<SUBSCRIBE_START_SPEC>`"]
67pub type SUBSCRIBE_START = crate::Reg<subscribe_start::SUBSCRIBE_START_SPEC>;
68#[doc = "Subscribe configuration for task START"]
69pub mod subscribe_start;
70#[doc = "SUBSCRIBE_STOP (rw) register accessor: an alias for `Reg<SUBSCRIBE_STOP_SPEC>`"]
71pub type SUBSCRIBE_STOP = crate::Reg<subscribe_stop::SUBSCRIBE_STOP_SPEC>;
72#[doc = "Subscribe configuration for task STOP"]
73pub mod subscribe_stop;
74#[doc = "EVENTS_STARTED (rw) register accessor: an alias for `Reg<EVENTS_STARTED_SPEC>`"]
75pub type EVENTS_STARTED = crate::Reg<events_started::EVENTS_STARTED_SPEC>;
76#[doc = "PDM transfer has started"]
77pub mod events_started;
78#[doc = "EVENTS_STOPPED (rw) register accessor: an alias for `Reg<EVENTS_STOPPED_SPEC>`"]
79pub type EVENTS_STOPPED = crate::Reg<events_stopped::EVENTS_STOPPED_SPEC>;
80#[doc = "PDM transfer has finished"]
81pub mod events_stopped;
82#[doc = "EVENTS_END (rw) register accessor: an alias for `Reg<EVENTS_END_SPEC>`"]
83pub type EVENTS_END = crate::Reg<events_end::EVENTS_END_SPEC>;
84#[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"]
85pub mod events_end;
86#[doc = "PUBLISH_STARTED (rw) register accessor: an alias for `Reg<PUBLISH_STARTED_SPEC>`"]
87pub type PUBLISH_STARTED = crate::Reg<publish_started::PUBLISH_STARTED_SPEC>;
88#[doc = "Publish configuration for event STARTED"]
89pub mod publish_started;
90#[doc = "PUBLISH_STOPPED (rw) register accessor: an alias for `Reg<PUBLISH_STOPPED_SPEC>`"]
91pub type PUBLISH_STOPPED = crate::Reg<publish_stopped::PUBLISH_STOPPED_SPEC>;
92#[doc = "Publish configuration for event STOPPED"]
93pub mod publish_stopped;
94#[doc = "PUBLISH_END (rw) register accessor: an alias for `Reg<PUBLISH_END_SPEC>`"]
95pub type PUBLISH_END = crate::Reg<publish_end::PUBLISH_END_SPEC>;
96#[doc = "Publish configuration for event END"]
97pub mod publish_end;
98#[doc = "INTEN (rw) register accessor: an alias for `Reg<INTEN_SPEC>`"]
99pub type INTEN = crate::Reg<inten::INTEN_SPEC>;
100#[doc = "Enable or disable interrupt"]
101pub mod inten;
102#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
103pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
104#[doc = "Enable interrupt"]
105pub mod intenset;
106#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
107pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
108#[doc = "Disable interrupt"]
109pub mod intenclr;
110#[doc = "ENABLE (rw) register accessor: an alias for `Reg<ENABLE_SPEC>`"]
111pub type ENABLE = crate::Reg<enable::ENABLE_SPEC>;
112#[doc = "PDM module enable register"]
113pub mod enable;
114#[doc = "PDMCLKCTRL (rw) register accessor: an alias for `Reg<PDMCLKCTRL_SPEC>`"]
115pub type PDMCLKCTRL = crate::Reg<pdmclkctrl::PDMCLKCTRL_SPEC>;
116#[doc = "PDM clock generator control"]
117pub mod pdmclkctrl;
118#[doc = "MODE (rw) register accessor: an alias for `Reg<MODE_SPEC>`"]
119pub type MODE = crate::Reg<mode::MODE_SPEC>;
120#[doc = "Defines the routing of the connected PDM microphones' signals"]
121pub mod mode;
122#[doc = "GAINL (rw) register accessor: an alias for `Reg<GAINL_SPEC>`"]
123pub type GAINL = crate::Reg<gainl::GAINL_SPEC>;
124#[doc = "Left output gain adjustment"]
125pub mod gainl;
126#[doc = "GAINR (rw) register accessor: an alias for `Reg<GAINR_SPEC>`"]
127pub type GAINR = crate::Reg<gainr::GAINR_SPEC>;
128#[doc = "Right output gain adjustment"]
129pub mod gainr;
130#[doc = "RATIO (rw) register accessor: an alias for `Reg<RATIO_SPEC>`"]
131pub type RATIO = crate::Reg<ratio::RATIO_SPEC>;
132#[doc = "Selects the ratio between PDM_CLK and output sample rate. Change PDMCLKCTRL accordingly."]
133pub mod ratio;
134#[doc = "Unspecified"]
135pub use psel::PSEL;
136#[doc = r"Cluster"]
137#[doc = "Unspecified"]
138pub mod psel;
139#[doc = "MCLKCONFIG (rw) register accessor: an alias for `Reg<MCLKCONFIG_SPEC>`"]
140pub type MCLKCONFIG = crate::Reg<mclkconfig::MCLKCONFIG_SPEC>;
141#[doc = "Master clock generator configuration"]
142pub mod mclkconfig;
143#[doc = "Unspecified"]
144pub use sample::SAMPLE;
145#[doc = r"Cluster"]
146#[doc = "Unspecified"]
147pub mod sample;