#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - Start TWI receive sequence"] pub tasks_startrx: TASKS_STARTRX, _reserved1: [u8; 0x04], #[doc = "0x08 - Start TWI transmit sequence"] pub tasks_starttx: TASKS_STARTTX, _reserved2: [u8; 0x08], #[doc = "0x14 - Stop TWI transaction. Must be issued while the TWI master is not suspended."] pub tasks_stop: TASKS_STOP, _reserved3: [u8; 0x04], #[doc = "0x1c - Suspend TWI transaction"] pub tasks_suspend: TASKS_SUSPEND, #[doc = "0x20 - Resume TWI transaction"] pub tasks_resume: TASKS_RESUME, _reserved5: [u8; 0xe0], #[doc = "0x104 - TWI stopped"] pub events_stopped: EVENTS_STOPPED, _reserved6: [u8; 0x1c], #[doc = "0x124 - TWI error"] pub events_error: EVENTS_ERROR, _reserved7: [u8; 0x20], #[doc = "0x148 - Last byte has been sent out after the SUSPEND task has been issued, TWI traffic is now suspended."] pub events_suspended: EVENTS_SUSPENDED, #[doc = "0x14c - Receive sequence started"] pub events_rxstarted: EVENTS_RXSTARTED, #[doc = "0x150 - Transmit sequence started"] pub events_txstarted: EVENTS_TXSTARTED, _reserved10: [u8; 0x08], #[doc = "0x15c - Byte boundary, starting to receive the last byte"] pub events_lastrx: EVENTS_LASTRX, #[doc = "0x160 - Byte boundary, starting to transmit the last byte"] pub events_lasttx: EVENTS_LASTTX, _reserved12: [u8; 0x9c], #[doc = "0x200 - Shortcuts between local events and tasks"] pub shorts: SHORTS, _reserved13: [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, _reserved16: [u8; 0x01b8], #[doc = "0x4c4 - Error source"] pub errorsrc: ERRORSRC, _reserved17: [u8; 0x38], #[doc = "0x500 - Enable TWIM"] pub enable: ENABLE, _reserved18: [u8; 0x04], #[doc = "0x508..0x510 - Unspecified"] pub psel: PSEL, _reserved19: [u8; 0x14], #[doc = "0x524 - TWI frequency. Accuracy depends on the HFCLK source selected."] pub frequency: FREQUENCY, _reserved20: [u8; 0x0c], #[doc = "0x534..0x544 - RXD EasyDMA channel"] pub rxd: RXD, #[doc = "0x544..0x554 - TXD EasyDMA channel"] pub txd: TXD, _reserved22: [u8; 0x34], #[doc = "0x588 - Address used in the TWI transfer"] pub address: ADDRESS, } #[doc = "TASKS_STARTRX (w) register accessor: an alias for `Reg`"] pub type TASKS_STARTRX = crate::Reg; #[doc = "Start TWI receive sequence"] pub mod tasks_startrx; #[doc = "TASKS_STARTTX (w) register accessor: an alias for `Reg`"] pub type TASKS_STARTTX = crate::Reg; #[doc = "Start TWI transmit sequence"] pub mod tasks_starttx; #[doc = "TASKS_STOP (w) register accessor: an alias for `Reg`"] pub type TASKS_STOP = crate::Reg; #[doc = "Stop TWI transaction. Must be issued while the TWI master is not suspended."] 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 = "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_SUSPENDED (rw) register accessor: an alias for `Reg`"] pub type EVENTS_SUSPENDED = crate::Reg; #[doc = "Last byte has been sent out after the SUSPEND task has been issued, TWI traffic is now suspended."] pub mod events_suspended; #[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_LASTRX (rw) register accessor: an alias for `Reg`"] pub type EVENTS_LASTRX = crate::Reg; #[doc = "Byte boundary, starting to receive the last byte"] pub mod events_lastrx; #[doc = "EVENTS_LASTTX (rw) register accessor: an alias for `Reg`"] pub type EVENTS_LASTTX = crate::Reg; #[doc = "Byte boundary, starting to transmit the last byte"] pub mod events_lasttx; #[doc = "SHORTS (rw) register accessor: an alias for `Reg`"] pub type SHORTS = crate::Reg; #[doc = "Shortcuts between local events and tasks"] 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 = "ENABLE (rw) register accessor: an alias for `Reg`"] pub type ENABLE = crate::Reg; #[doc = "Enable TWIM"] pub mod enable; #[doc = "Unspecified"] pub use psel::PSEL; #[doc = r"Cluster"] #[doc = "Unspecified"] pub mod psel; #[doc = "FREQUENCY (rw) register accessor: an alias for `Reg`"] pub type FREQUENCY = crate::Reg; #[doc = "TWI frequency. Accuracy depends on the HFCLK source selected."] pub mod frequency; #[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 = "Address used in the TWI transfer"] pub mod address;