1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - SPI 16-bit Data Access."]
5 pub data: DATA,
6 _reserved1: [u8; 0x02],
7 #[doc = "0x04 - SPI Control."]
8 pub ctrl: CTRL,
9 #[doc = "0x08 - SPI Interrupt Flag."]
10 pub int_fl: INT_FL,
11 #[doc = "0x0c - SPI Mode."]
12 pub mode: MODE,
13 _reserved4: [u8; 0x04],
14 #[doc = "0x14 - Baud Rate Reload Value."]
15 pub brg: BRG,
16 #[doc = "0x18 - SPI DMA."]
17 pub dma: DMA,
18 #[doc = "0x1c - I2S Control."]
19 pub i2s_ctrl: I2S_CTRL,
20}
21#[doc = "DATA (rw) register accessor: SPI 16-bit Data Access.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`data::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`data::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`data`]
22module"]
23pub type DATA = crate::Reg<data::DATA_SPEC>;
24#[doc = "SPI 16-bit Data Access."]
25pub mod data;
26#[doc = "CTRL (rw) register accessor: SPI Control.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctrl::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctrl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`ctrl`]
27module"]
28pub type CTRL = crate::Reg<ctrl::CTRL_SPEC>;
29#[doc = "SPI Control."]
30pub mod ctrl;
31#[doc = "INT_FL (rw) register accessor: SPI Interrupt Flag.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_fl::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_fl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`int_fl`]
32module"]
33pub type INT_FL = crate::Reg<int_fl::INT_FL_SPEC>;
34#[doc = "SPI Interrupt Flag."]
35pub mod int_fl;
36#[doc = "MODE (rw) register accessor: SPI Mode.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mode::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mode::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mode`]
37module"]
38pub type MODE = crate::Reg<mode::MODE_SPEC>;
39#[doc = "SPI Mode."]
40pub mod mode;
41#[doc = "BRG (rw) register accessor: Baud Rate Reload Value.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`brg::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`brg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`brg`]
42module"]
43pub type BRG = crate::Reg<brg::BRG_SPEC>;
44#[doc = "Baud Rate Reload Value."]
45pub mod brg;
46#[doc = "DMA (rw) register accessor: SPI DMA.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dma::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dma::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`dma`]
47module"]
48pub type DMA = crate::Reg<dma::DMA_SPEC>;
49#[doc = "SPI DMA."]
50pub mod dma;
51#[doc = "I2S_CTRL (rw) register accessor: I2S Control.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`i2s_ctrl::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`i2s_ctrl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`i2s_ctrl`]
52module"]
53pub type I2S_CTRL = crate::Reg<i2s_ctrl::I2S_CTRL_SPEC>;
54#[doc = "I2S Control."]
55pub mod i2s_ctrl;