1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - Transmit configuration register"]
5 pub transmit_config: TRANSMIT_CONFIG,
6 #[doc = "0x04 - Receive configuration register"]
7 pub receive_config: RECEIVE_CONFIG,
8 #[doc = "0x08 - Bit period control register"]
9 pub bit_period: BIT_PERIOD,
10 #[doc = "0x0c - Data configuration register"]
11 pub data_config: DATA_CONFIG,
12 #[doc = "0x10 - IR-mode transmit position control"]
13 pub transmit_position: TRANSMIT_POSITION,
14 #[doc = "0x14 - IR-mode receive position control"]
15 pub receive_position: RECEIVE_POSITION,
16 #[doc = "0x18 - Receive Time-Out interrupt control"]
17 pub receive_timeout: RECEIVE_TIMEOUT,
18 #[doc = "0x1c - Manual override of flow control signal"]
19 pub signal_override: SIGNAL_OVERRIDE,
20 #[doc = "0x20 - Interrupt state register"]
21 pub interrupt_state: INTERRUPT_STATE,
22 #[doc = "0x24 - Interrupt mask register"]
23 pub interrupt_mask: INTERRUPT_MASK,
24 #[doc = "0x28 - Clear interrupt register"]
25 pub interrupt_clear: INTERRUPT_CLEAR,
26 #[doc = "0x2c - Interrupt enable register"]
27 pub interrupt_enable: INTERRUPT_ENABLE,
28 #[doc = "0x30 - Bus state register"]
29 pub bus_state: BUS_STATE,
30 #[doc = "0x34 - Auto baudrate detection register"]
31 pub auto_baudrate: AUTO_BAUDRATE,
32 _reserved14: [u8; 0x10],
33 #[doc = "0x48 - Pulse width tolerance for auto baudrate"]
34 pub pulse_tolerance: PULSE_TOLERANCE,
35 _reserved15: [u8; 0x08],
36 #[doc = "0x54 - RS-485 mode transmit configuration"]
37 pub rs485_transmit: RS485_TRANSMIT,
38 _reserved16: [u8; 0x28],
39 #[doc = "0x80 - FIFO configuration register 0"]
40 pub fifo_config_0: FIFO_CONFIG_0,
41 #[doc = "0x84 - FIFO configuration register 1"]
42 pub fifo_config_1: FIFO_CONFIG_1,
43 #[doc = "0x88 - FIFO write data register"]
44 pub data_write: DATA_WRITE,
45 #[doc = "0x8c - FIFO read data register"]
46 pub data_read: DATA_READ,
47}
48#[doc = "transmit_config (rw) register accessor: an alias for `Reg<TRANSMIT_CONFIG_SPEC>`"]
49pub type TRANSMIT_CONFIG = crate::Reg<transmit_config::TRANSMIT_CONFIG_SPEC>;
50#[doc = "Transmit configuration register"]
51pub mod transmit_config;
52#[doc = "receive_config (rw) register accessor: an alias for `Reg<RECEIVE_CONFIG_SPEC>`"]
53pub type RECEIVE_CONFIG = crate::Reg<receive_config::RECEIVE_CONFIG_SPEC>;
54#[doc = "Receive configuration register"]
55pub mod receive_config;
56#[doc = "bit_period (rw) register accessor: an alias for `Reg<BIT_PERIOD_SPEC>`"]
57pub type BIT_PERIOD = crate::Reg<bit_period::BIT_PERIOD_SPEC>;
58#[doc = "Bit period control register"]
59pub mod bit_period;
60#[doc = "data_config (rw) register accessor: an alias for `Reg<DATA_CONFIG_SPEC>`"]
61pub type DATA_CONFIG = crate::Reg<data_config::DATA_CONFIG_SPEC>;
62#[doc = "Data configuration register"]
63pub mod data_config;
64#[doc = "transmit_position (rw) register accessor: an alias for `Reg<TRANSMIT_POSITION_SPEC>`"]
65pub type TRANSMIT_POSITION = crate::Reg<transmit_position::TRANSMIT_POSITION_SPEC>;
66#[doc = "IR-mode transmit position control"]
67pub mod transmit_position;
68#[doc = "receive_position (rw) register accessor: an alias for `Reg<RECEIVE_POSITION_SPEC>`"]
69pub type RECEIVE_POSITION = crate::Reg<receive_position::RECEIVE_POSITION_SPEC>;
70#[doc = "IR-mode receive position control"]
71pub mod receive_position;
72#[doc = "receive_timeout (rw) register accessor: an alias for `Reg<RECEIVE_TIMEOUT_SPEC>`"]
73pub type RECEIVE_TIMEOUT = crate::Reg<receive_timeout::RECEIVE_TIMEOUT_SPEC>;
74#[doc = "Receive Time-Out interrupt control"]
75pub mod receive_timeout;
76#[doc = "signal_override (rw) register accessor: an alias for `Reg<SIGNAL_OVERRIDE_SPEC>`"]
77pub type SIGNAL_OVERRIDE = crate::Reg<signal_override::SIGNAL_OVERRIDE_SPEC>;
78#[doc = "Manual override of flow control signal"]
79pub mod signal_override;
80#[doc = "interrupt_state (r) register accessor: an alias for `Reg<INTERRUPT_STATE_SPEC>`"]
81pub type INTERRUPT_STATE = crate::Reg<interrupt_state::INTERRUPT_STATE_SPEC>;
82#[doc = "Interrupt state register"]
83pub mod interrupt_state;
84#[doc = "interrupt_mask (rw) register accessor: an alias for `Reg<INTERRUPT_MASK_SPEC>`"]
85pub type INTERRUPT_MASK = crate::Reg<interrupt_mask::INTERRUPT_MASK_SPEC>;
86#[doc = "Interrupt mask register"]
87pub mod interrupt_mask;
88#[doc = "interrupt_clear (w) register accessor: an alias for `Reg<INTERRUPT_CLEAR_SPEC>`"]
89pub type INTERRUPT_CLEAR = crate::Reg<interrupt_clear::INTERRUPT_CLEAR_SPEC>;
90#[doc = "Clear interrupt register"]
91pub mod interrupt_clear;
92#[doc = "interrupt_enable (rw) register accessor: an alias for `Reg<INTERRUPT_ENABLE_SPEC>`"]
93pub type INTERRUPT_ENABLE = crate::Reg<interrupt_enable::INTERRUPT_ENABLE_SPEC>;
94#[doc = "Interrupt enable register"]
95pub mod interrupt_enable;
96#[doc = "bus_state (r) register accessor: an alias for `Reg<BUS_STATE_SPEC>`"]
97pub type BUS_STATE = crate::Reg<bus_state::BUS_STATE_SPEC>;
98#[doc = "Bus state register"]
99pub mod bus_state;
100#[doc = "auto_baudrate (r) register accessor: an alias for `Reg<AUTO_BAUDRATE_SPEC>`"]
101pub type AUTO_BAUDRATE = crate::Reg<auto_baudrate::AUTO_BAUDRATE_SPEC>;
102#[doc = "Auto baudrate detection register"]
103pub mod auto_baudrate;
104#[doc = "pulse_tolerance (rw) register accessor: an alias for `Reg<PULSE_TOLERANCE_SPEC>`"]
105pub type PULSE_TOLERANCE = crate::Reg<pulse_tolerance::PULSE_TOLERANCE_SPEC>;
106#[doc = "Pulse width tolerance for auto baudrate"]
107pub mod pulse_tolerance;
108#[doc = "rs485_transmit (rw) register accessor: an alias for `Reg<RS485_TRANSMIT_SPEC>`"]
109pub type RS485_TRANSMIT = crate::Reg<rs485_transmit::RS485_TRANSMIT_SPEC>;
110#[doc = "RS-485 mode transmit configuration"]
111pub mod rs485_transmit;
112#[doc = "fifo_config_0 (rw) register accessor: an alias for `Reg<FIFO_CONFIG_0_SPEC>`"]
113pub type FIFO_CONFIG_0 = crate::Reg<fifo_config_0::FIFO_CONFIG_0_SPEC>;
114#[doc = "FIFO configuration register 0"]
115pub mod fifo_config_0;
116#[doc = "fifo_config_1 (rw) register accessor: an alias for `Reg<FIFO_CONFIG_1_SPEC>`"]
117pub type FIFO_CONFIG_1 = crate::Reg<fifo_config_1::FIFO_CONFIG_1_SPEC>;
118#[doc = "FIFO configuration register 1"]
119pub mod fifo_config_1;
120#[doc = "data_write (w) register accessor: an alias for `Reg<DATA_WRITE_SPEC>`"]
121pub type DATA_WRITE = crate::Reg<data_write::DATA_WRITE_SPEC>;
122#[doc = "FIFO write data register"]
123pub mod data_write;
124#[doc = "data_read (r) register accessor: an alias for `Reg<DATA_READ_SPEC>`"]
125pub type DATA_READ = crate::Reg<data_read::DATA_READ_SPEC>;
126#[doc = "FIFO read data register"]
127pub mod data_read;