bl808_pac/
i2s.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - Function configuration register"]
5    pub config: CONFIG,
6    #[doc = "0x04 - Interrupt enables, masks and states"]
7    pub interrupt_state: INTERRUPT_STATE,
8    _reserved2: [u8; 0x08],
9    #[doc = "0x10 - Base clock divider"]
10    pub base_clock: BASE_CLOCK,
11    _reserved3: [u8; 0x6c],
12    #[doc = "0x80 - FIFO configuration register 0"]
13    pub fifo_config_0: FIFO_CONFIG_0,
14    #[doc = "0x84 - FIFO configuration register 1"]
15    pub fifo_config_1: FIFO_CONFIG_1,
16    #[doc = "0x88 - FIFO write data register"]
17    pub data_write: DATA_WRITE,
18    #[doc = "0x8c - FIFO read data register"]
19    pub data_read: DATA_READ,
20}
21#[doc = "config (rw) register accessor: an alias for `Reg<CONFIG_SPEC>`"]
22pub type CONFIG = crate::Reg<config::CONFIG_SPEC>;
23#[doc = "Function configuration register"]
24pub mod config;
25#[doc = "interrupt_state (rw) register accessor: an alias for `Reg<INTERRUPT_STATE_SPEC>`"]
26pub type INTERRUPT_STATE = crate::Reg<interrupt_state::INTERRUPT_STATE_SPEC>;
27#[doc = "Interrupt enables, masks and states"]
28pub mod interrupt_state;
29#[doc = "base_clock (rw) register accessor: an alias for `Reg<BASE_CLOCK_SPEC>`"]
30pub type BASE_CLOCK = crate::Reg<base_clock::BASE_CLOCK_SPEC>;
31#[doc = "Base clock divider"]
32pub mod base_clock;
33#[doc = "fifo_config_0 (rw) register accessor: an alias for `Reg<FIFO_CONFIG_0_SPEC>`"]
34pub type FIFO_CONFIG_0 = crate::Reg<fifo_config_0::FIFO_CONFIG_0_SPEC>;
35#[doc = "FIFO configuration register 0"]
36pub mod fifo_config_0;
37#[doc = "fifo_config_1 (rw) register accessor: an alias for `Reg<FIFO_CONFIG_1_SPEC>`"]
38pub type FIFO_CONFIG_1 = crate::Reg<fifo_config_1::FIFO_CONFIG_1_SPEC>;
39#[doc = "FIFO configuration register 1"]
40pub mod fifo_config_1;
41#[doc = "data_write (w) register accessor: an alias for `Reg<DATA_WRITE_SPEC>`"]
42pub type DATA_WRITE = crate::Reg<data_write::DATA_WRITE_SPEC>;
43#[doc = "FIFO write data register"]
44pub mod data_write;
45#[doc = "data_read (r) register accessor: an alias for `Reg<DATA_READ_SPEC>`"]
46pub type DATA_READ = crate::Reg<data_read::DATA_READ_SPEC>;
47#[doc = "FIFO read data register"]
48pub mod data_read;