#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { _reserved0: [u8; 0x14], #[doc = "0x14 - Stop TWI transaction"] pub tasks_stop: TASKS_STOP, _reserved1: [u8; 0x04], #[doc = "0x1c - Suspend TWI transaction"] pub tasks_suspend: TASKS_SUSPEND, #[doc = "0x20 - Resume TWI transaction"] pub tasks_resume: TASKS_RESUME, _reserved3: [u8; 0x0c], #[doc = "0x30 - Prepare the TWI slave to respond to a write command"] pub tasks_preparerx: TASKS_PREPARERX, #[doc = "0x34 - Prepare the TWI slave to respond to a read command"] pub tasks_preparetx: TASKS_PREPARETX, _reserved5: [u8; 0xcc], #[doc = "0x104 - TWI stopped"] pub events_stopped: EVENTS_STOPPED, _reserved6: [u8; 0x1c], #[doc = "0x124 - TWI error"] pub events_error: EVENTS_ERROR, _reserved7: [u8; 0x24], #[doc = "0x14c - Receive sequence started"] pub events_rxstarted: EVENTS_RXSTARTED, #[doc = "0x150 - Transmit sequence started"] pub events_txstarted: EVENTS_TXSTARTED, _reserved9: [u8; 0x10], #[doc = "0x164 - Write command received"] pub events_write: EVENTS_WRITE, #[doc = "0x168 - Read command received"] pub events_read: EVENTS_READ, _reserved11: [u8; 0x94], #[doc = "0x200 - Shortcut register"] pub shorts: SHORTS, _reserved12: [u8; 0xfc], #[doc = "0x300 - Enable or disable interrupt"] pub inten: INTEN, #[doc = "0x304 - Enable interrupt"] pub intenset: INTENSET, #[doc = "0x308 - Disable interrupt"] pub intenclr: INTENCLR, _reserved15: [u8; 0x01c4], #[doc = "0x4d0 - Error source"] pub errorsrc: ERRORSRC, #[doc = "0x4d4 - Status register indicating which address had a match"] pub match_: MATCH, _reserved17: [u8; 0x28], #[doc = "0x500 - Enable TWIS"] pub enable: ENABLE, _reserved18: [u8; 0x04], #[doc = "0x508..0x510 - Unspecified"] pub psel: PSEL, _reserved19: [u8; 0x24], #[doc = "0x534..0x540 - RXD EasyDMA channel"] pub rxd: RXD, _reserved20: [u8; 0x04], #[doc = "0x544..0x550 - TXD EasyDMA channel"] pub txd: TXD, _reserved21: [u8; 0x38], #[doc = "0x588..0x590 - Description collection\\[0\\]: TWI slave address 0"] pub address: [ADDRESS; 2], _reserved22: [u8; 0x04], #[doc = "0x594 - Configuration register for the address match mechanism"] pub config: CONFIG, _reserved23: [u8; 0x28], #[doc = "0x5c0 - Over-read character. Character sent out in case of an over-read of the transmit buffer."] pub orc: ORC, } #[doc = "TASKS_STOP (w) register accessor: an alias for `Reg`"] pub type TASKS_STOP = crate::Reg; #[doc = "Stop TWI transaction"] pub mod tasks_stop; #[doc = "TASKS_SUSPEND (w) register accessor: an alias for `Reg`"] pub type TASKS_SUSPEND = crate::Reg; #[doc = "Suspend TWI transaction"] pub mod tasks_suspend; #[doc = "TASKS_RESUME (w) register accessor: an alias for `Reg`"] pub type TASKS_RESUME = crate::Reg; #[doc = "Resume TWI transaction"] pub mod tasks_resume; #[doc = "TASKS_PREPARERX (w) register accessor: an alias for `Reg`"] pub type TASKS_PREPARERX = crate::Reg; #[doc = "Prepare the TWI slave to respond to a write command"] pub mod tasks_preparerx; #[doc = "TASKS_PREPARETX (w) register accessor: an alias for `Reg`"] pub type TASKS_PREPARETX = crate::Reg; #[doc = "Prepare the TWI slave to respond to a read command"] pub mod tasks_preparetx; #[doc = "EVENTS_STOPPED (rw) register accessor: an alias for `Reg`"] pub type EVENTS_STOPPED = crate::Reg; #[doc = "TWI stopped"] pub mod events_stopped; #[doc = "EVENTS_ERROR (rw) register accessor: an alias for `Reg`"] pub type EVENTS_ERROR = crate::Reg; #[doc = "TWI error"] pub mod events_error; #[doc = "EVENTS_RXSTARTED (rw) register accessor: an alias for `Reg`"] pub type EVENTS_RXSTARTED = crate::Reg; #[doc = "Receive sequence started"] pub mod events_rxstarted; #[doc = "EVENTS_TXSTARTED (rw) register accessor: an alias for `Reg`"] pub type EVENTS_TXSTARTED = crate::Reg; #[doc = "Transmit sequence started"] pub mod events_txstarted; #[doc = "EVENTS_WRITE (rw) register accessor: an alias for `Reg`"] pub type EVENTS_WRITE = crate::Reg; #[doc = "Write command received"] pub mod events_write; #[doc = "EVENTS_READ (rw) register accessor: an alias for `Reg`"] pub type EVENTS_READ = crate::Reg; #[doc = "Read command received"] pub mod events_read; #[doc = "SHORTS (rw) register accessor: an alias for `Reg`"] pub type SHORTS = crate::Reg; #[doc = "Shortcut register"] pub mod shorts; #[doc = "INTEN (rw) register accessor: an alias for `Reg`"] pub type INTEN = crate::Reg; #[doc = "Enable or disable interrupt"] pub mod inten; #[doc = "INTENSET (rw) register accessor: an alias for `Reg`"] pub type INTENSET = crate::Reg; #[doc = "Enable interrupt"] pub mod intenset; #[doc = "INTENCLR (rw) register accessor: an alias for `Reg`"] pub type INTENCLR = crate::Reg; #[doc = "Disable interrupt"] pub mod intenclr; #[doc = "ERRORSRC (rw) register accessor: an alias for `Reg`"] pub type ERRORSRC = crate::Reg; #[doc = "Error source"] pub mod errorsrc; #[doc = "MATCH (r) register accessor: an alias for `Reg`"] pub type MATCH = crate::Reg; #[doc = "Status register indicating which address had a match"] pub mod match_; #[doc = "ENABLE (rw) register accessor: an alias for `Reg`"] pub type ENABLE = crate::Reg; #[doc = "Enable TWIS"] pub mod enable; #[doc = "Unspecified"] pub use psel::PSEL; #[doc = r"Cluster"] #[doc = "Unspecified"] pub mod psel; #[doc = "RXD EasyDMA channel"] pub use rxd::RXD; #[doc = r"Cluster"] #[doc = "RXD EasyDMA channel"] pub mod rxd; #[doc = "TXD EasyDMA channel"] pub use txd::TXD; #[doc = r"Cluster"] #[doc = "TXD EasyDMA channel"] pub mod txd; #[doc = "ADDRESS (rw) register accessor: an alias for `Reg`"] pub type ADDRESS = crate::Reg; #[doc = "Description collection\\[0\\]: TWI slave address 0"] pub mod address; #[doc = "CONFIG (rw) register accessor: an alias for `Reg`"] pub type CONFIG = crate::Reg; #[doc = "Configuration register for the address match mechanism"] pub mod config; #[doc = "ORC (rw) register accessor: an alias for `Reg`"] pub type ORC = crate::Reg; #[doc = "Over-read character. Character sent out in case of an over-read of the transmit buffer."] pub mod orc;