max78000_pac/
i2s.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    ctrl0ch0: Ctrl0ch0,
5    _reserved1: [u8; 0x0c],
6    ctrl1ch0: Ctrl1ch0,
7    _reserved2: [u8; 0x0c],
8    filtch0: Filtch0,
9    _reserved3: [u8; 0x0c],
10    dmach0: Dmach0,
11    _reserved4: [u8; 0x0c],
12    fifoch0: Fifoch0,
13    _reserved5: [u8; 0x0c],
14    intfl: Intfl,
15    inten: Inten,
16    extsetup: Extsetup,
17    wken: Wken,
18    wkfl: Wkfl,
19}
20impl RegisterBlock {
21    #[doc = "0x00 - Global mode channel."]
22    #[inline(always)]
23    pub const fn ctrl0ch0(&self) -> &Ctrl0ch0 {
24        &self.ctrl0ch0
25    }
26    #[doc = "0x10 - Local channel Setup."]
27    #[inline(always)]
28    pub const fn ctrl1ch0(&self) -> &Ctrl1ch0 {
29        &self.ctrl1ch0
30    }
31    #[doc = "0x20 - Filter."]
32    #[inline(always)]
33    pub const fn filtch0(&self) -> &Filtch0 {
34        &self.filtch0
35    }
36    #[doc = "0x30 - DMA Control."]
37    #[inline(always)]
38    pub const fn dmach0(&self) -> &Dmach0 {
39        &self.dmach0
40    }
41    #[doc = "0x40 - I2S Fifo."]
42    #[inline(always)]
43    pub const fn fifoch0(&self) -> &Fifoch0 {
44        &self.fifoch0
45    }
46    #[doc = "0x50 - ISR Status."]
47    #[inline(always)]
48    pub const fn intfl(&self) -> &Intfl {
49        &self.intfl
50    }
51    #[doc = "0x54 - Interrupt Enable."]
52    #[inline(always)]
53    pub const fn inten(&self) -> &Inten {
54        &self.inten
55    }
56    #[doc = "0x58 - Ext Control."]
57    #[inline(always)]
58    pub const fn extsetup(&self) -> &Extsetup {
59        &self.extsetup
60    }
61    #[doc = "0x5c - Wakeup Enable."]
62    #[inline(always)]
63    pub const fn wken(&self) -> &Wken {
64        &self.wken
65    }
66    #[doc = "0x60 - Wakeup Flags."]
67    #[inline(always)]
68    pub const fn wkfl(&self) -> &Wkfl {
69        &self.wkfl
70    }
71}
72#[doc = "CTRL0CH0 (rw) register accessor: Global mode channel.\n\nYou can [`read`](crate::Reg::read) this register and get [`ctrl0ch0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrl0ch0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctrl0ch0`]
73module"]
74#[doc(alias = "CTRL0CH0")]
75pub type Ctrl0ch0 = crate::Reg<ctrl0ch0::Ctrl0ch0Spec>;
76#[doc = "Global mode channel."]
77pub mod ctrl0ch0;
78#[doc = "CTRL1CH0 (rw) register accessor: Local channel Setup.\n\nYou can [`read`](crate::Reg::read) this register and get [`ctrl1ch0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrl1ch0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctrl1ch0`]
79module"]
80#[doc(alias = "CTRL1CH0")]
81pub type Ctrl1ch0 = crate::Reg<ctrl1ch0::Ctrl1ch0Spec>;
82#[doc = "Local channel Setup."]
83pub mod ctrl1ch0;
84#[doc = "FILTCH0 (rw) register accessor: Filter.\n\nYou can [`read`](crate::Reg::read) this register and get [`filtch0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`filtch0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@filtch0`]
85module"]
86#[doc(alias = "FILTCH0")]
87pub type Filtch0 = crate::Reg<filtch0::Filtch0Spec>;
88#[doc = "Filter."]
89pub mod filtch0;
90#[doc = "DMACH0 (rw) register accessor: DMA Control.\n\nYou can [`read`](crate::Reg::read) this register and get [`dmach0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmach0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmach0`]
91module"]
92#[doc(alias = "DMACH0")]
93pub type Dmach0 = crate::Reg<dmach0::Dmach0Spec>;
94#[doc = "DMA Control."]
95pub mod dmach0;
96#[doc = "FIFOCH0 (rw) register accessor: I2S Fifo.\n\nYou can [`read`](crate::Reg::read) this register and get [`fifoch0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fifoch0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fifoch0`]
97module"]
98#[doc(alias = "FIFOCH0")]
99pub type Fifoch0 = crate::Reg<fifoch0::Fifoch0Spec>;
100#[doc = "I2S Fifo."]
101pub mod fifoch0;
102#[doc = "INTFL (rw) register accessor: ISR Status.\n\nYou can [`read`](crate::Reg::read) this register and get [`intfl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`intfl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@intfl`]
103module"]
104#[doc(alias = "INTFL")]
105pub type Intfl = crate::Reg<intfl::IntflSpec>;
106#[doc = "ISR Status."]
107pub mod intfl;
108#[doc = "INTEN (rw) register accessor: Interrupt Enable.\n\nYou can [`read`](crate::Reg::read) this register and get [`inten::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`inten::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@inten`]
109module"]
110#[doc(alias = "INTEN")]
111pub type Inten = crate::Reg<inten::IntenSpec>;
112#[doc = "Interrupt Enable."]
113pub mod inten;
114#[doc = "EXTSETUP (rw) register accessor: Ext Control.\n\nYou can [`read`](crate::Reg::read) this register and get [`extsetup::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`extsetup::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@extsetup`]
115module"]
116#[doc(alias = "EXTSETUP")]
117pub type Extsetup = crate::Reg<extsetup::ExtsetupSpec>;
118#[doc = "Ext Control."]
119pub mod extsetup;
120#[doc = "WKEN (rw) register accessor: Wakeup Enable.\n\nYou can [`read`](crate::Reg::read) this register and get [`wken::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wken::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@wken`]
121module"]
122#[doc(alias = "WKEN")]
123pub type Wken = crate::Reg<wken::WkenSpec>;
124#[doc = "Wakeup Enable."]
125pub mod wken;
126#[doc = "WKFL (rw) register accessor: Wakeup Flags.\n\nYou can [`read`](crate::Reg::read) this register and get [`wkfl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wkfl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@wkfl`]
127module"]
128#[doc(alias = "WKFL")]
129pub type Wkfl = crate::Reg<wkfl::WkflSpec>;
130#[doc = "Wakeup Flags."]
131pub mod wkfl;