#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { _reserved0: [u8; 0x10], #[doc = "0x10 - Start SPI transaction"] pub tasks_start: TASKS_START, #[doc = "0x14 - Stop SPI transaction"] pub tasks_stop: TASKS_STOP, _reserved2: [u8; 0x04], #[doc = "0x1c - Suspend SPI transaction"] pub tasks_suspend: TASKS_SUSPEND, #[doc = "0x20 - Resume SPI transaction"] pub tasks_resume: TASKS_RESUME, _reserved4: [u8; 0xe0], #[doc = "0x104 - SPI transaction has stopped"] pub events_stopped: EVENTS_STOPPED, _reserved5: [u8; 0x08], #[doc = "0x110 - End of RXD buffer reached"] pub events_endrx: EVENTS_ENDRX, _reserved6: [u8; 0x04], #[doc = "0x118 - End of RXD buffer and TXD buffer reached"] pub events_end: EVENTS_END, _reserved7: [u8; 0x04], #[doc = "0x120 - End of TXD buffer reached"] pub events_endtx: EVENTS_ENDTX, _reserved8: [u8; 0x28], #[doc = "0x14c - Transaction started"] pub events_started: EVENTS_STARTED, _reserved9: [u8; 0xb0], #[doc = "0x200 - Shortcut register"] pub shorts: SHORTS, _reserved10: [u8; 0x0100], #[doc = "0x304 - Enable interrupt"] pub intenset: INTENSET, #[doc = "0x308 - Disable interrupt"] pub intenclr: INTENCLR, _reserved12: [u8; 0x01f4], #[doc = "0x500 - Enable SPIM"] pub enable: ENABLE, _reserved13: [u8; 0x04], #[doc = "0x508..0x514 - Unspecified"] pub psel: PSEL, _reserved14: [u8; 0x10], #[doc = "0x524 - SPI frequency. Accuracy depends on the HFCLK source selected."] pub frequency: FREQUENCY, _reserved15: [u8; 0x0c], #[doc = "0x534..0x544 - RXD EasyDMA channel"] pub rxd: RXD, #[doc = "0x544..0x554 - TXD EasyDMA channel"] pub txd: TXD, #[doc = "0x554 - Configuration register"] pub config: CONFIG, _reserved18: [u8; 0x68], #[doc = "0x5c0 - Over-read character. Character clocked out in case and over-read of the TXD buffer."] pub orc: ORC, } #[doc = "TASKS_START (w) register accessor: an alias for `Reg`"] pub type TASKS_START = crate::Reg; #[doc = "Start SPI transaction"] pub mod tasks_start; #[doc = "TASKS_STOP (w) register accessor: an alias for `Reg`"] pub type TASKS_STOP = crate::Reg; #[doc = "Stop SPI transaction"] pub mod tasks_stop; #[doc = "TASKS_SUSPEND (w) register accessor: an alias for `Reg`"] pub type TASKS_SUSPEND = crate::Reg; #[doc = "Suspend SPI transaction"] pub mod tasks_suspend; #[doc = "TASKS_RESUME (w) register accessor: an alias for `Reg`"] pub type TASKS_RESUME = crate::Reg; #[doc = "Resume SPI transaction"] pub mod tasks_resume; #[doc = "EVENTS_STOPPED (rw) register accessor: an alias for `Reg`"] pub type EVENTS_STOPPED = crate::Reg; #[doc = "SPI transaction has stopped"] pub mod events_stopped; #[doc = "EVENTS_ENDRX (rw) register accessor: an alias for `Reg`"] pub type EVENTS_ENDRX = crate::Reg; #[doc = "End of RXD buffer reached"] pub mod events_endrx; #[doc = "EVENTS_END (rw) register accessor: an alias for `Reg`"] pub type EVENTS_END = crate::Reg; #[doc = "End of RXD buffer and TXD buffer reached"] pub mod events_end; #[doc = "EVENTS_ENDTX (rw) register accessor: an alias for `Reg`"] pub type EVENTS_ENDTX = crate::Reg; #[doc = "End of TXD buffer reached"] pub mod events_endtx; #[doc = "EVENTS_STARTED (rw) register accessor: an alias for `Reg`"] pub type EVENTS_STARTED = crate::Reg; #[doc = "Transaction started"] pub mod events_started; #[doc = "SHORTS (rw) register accessor: an alias for `Reg`"] pub type SHORTS = crate::Reg; #[doc = "Shortcut register"] pub mod shorts; #[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 = "ENABLE (rw) register accessor: an alias for `Reg`"] pub type ENABLE = crate::Reg; #[doc = "Enable SPIM"] 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 = "SPI 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 = "CONFIG (rw) register accessor: an alias for `Reg`"] pub type CONFIG = crate::Reg; #[doc = "Configuration register"] pub mod config; #[doc = "ORC (rw) register accessor: an alias for `Reg`"] pub type ORC = crate::Reg; #[doc = "Over-read character. Character clocked out in case and over-read of the TXD buffer."] pub mod orc;