#[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; 0x6c], #[doc = "0x90 - Subscribe configuration for task START"] pub subscribe_start: SUBSCRIBE_START, #[doc = "0x94 - Subscribe configuration for task STOP"] pub subscribe_stop: SUBSCRIBE_STOP, _reserved6: [u8; 0x04], #[doc = "0x9c - Subscribe configuration for task SUSPEND"] pub subscribe_suspend: SUBSCRIBE_SUSPEND, #[doc = "0xa0 - Subscribe configuration for task RESUME"] pub subscribe_resume: SUBSCRIBE_RESUME, _reserved8: [u8; 0x60], #[doc = "0x104 - SPI transaction has stopped"] pub events_stopped: EVENTS_STOPPED, _reserved9: [u8; 0x08], #[doc = "0x110 - End of RXD buffer reached"] pub events_endrx: EVENTS_ENDRX, _reserved10: [u8; 0x04], #[doc = "0x118 - End of RXD buffer and TXD buffer reached"] pub events_end: EVENTS_END, _reserved11: [u8; 0x04], #[doc = "0x120 - End of TXD buffer reached"] pub events_endtx: EVENTS_ENDTX, _reserved12: [u8; 0x28], #[doc = "0x14c - Transaction started"] pub events_started: EVENTS_STARTED, _reserved13: [u8; 0x34], #[doc = "0x184 - Publish configuration for event STOPPED"] pub publish_stopped: PUBLISH_STOPPED, _reserved14: [u8; 0x08], #[doc = "0x190 - Publish configuration for event ENDRX"] pub publish_endrx: PUBLISH_ENDRX, _reserved15: [u8; 0x04], #[doc = "0x198 - Publish configuration for event END"] pub publish_end: PUBLISH_END, _reserved16: [u8; 0x04], #[doc = "0x1a0 - Publish configuration for event ENDTX"] pub publish_endtx: PUBLISH_ENDTX, _reserved17: [u8; 0x28], #[doc = "0x1cc - Publish configuration for event STARTED"] pub publish_started: PUBLISH_STARTED, _reserved18: [u8; 0x30], #[doc = "0x200 - Shortcuts between local events and tasks"] pub shorts: SHORTS, _reserved19: [u8; 0x0100], #[doc = "0x304 - Enable interrupt"] pub intenset: INTENSET, #[doc = "0x308 - Disable interrupt"] pub intenclr: INTENCLR, _reserved21: [u8; 0x01f4], #[doc = "0x500 - Enable SPIM"] pub enable: ENABLE, _reserved22: [u8; 0x04], #[doc = "0x508..0x514 - Unspecified"] pub psel: PSEL, _reserved23: [u8; 0x10], #[doc = "0x524 - SPI frequency. Accuracy depends on the HFCLK source selected."] pub frequency: FREQUENCY, _reserved24: [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, _reserved27: [u8; 0x68], #[doc = "0x5c0 - Over-read character. Character clocked out in case an 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 = "SUBSCRIBE_START (rw) register accessor: an alias for `Reg`"] pub type SUBSCRIBE_START = crate::Reg; #[doc = "Subscribe configuration for task START"] pub mod subscribe_start; #[doc = "SUBSCRIBE_STOP (rw) register accessor: an alias for `Reg`"] pub type SUBSCRIBE_STOP = crate::Reg; #[doc = "Subscribe configuration for task STOP"] pub mod subscribe_stop; #[doc = "SUBSCRIBE_SUSPEND (rw) register accessor: an alias for `Reg`"] pub type SUBSCRIBE_SUSPEND = crate::Reg; #[doc = "Subscribe configuration for task SUSPEND"] pub mod subscribe_suspend; #[doc = "SUBSCRIBE_RESUME (rw) register accessor: an alias for `Reg`"] pub type SUBSCRIBE_RESUME = crate::Reg; #[doc = "Subscribe configuration for task RESUME"] pub mod subscribe_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 = "PUBLISH_STOPPED (rw) register accessor: an alias for `Reg`"] pub type PUBLISH_STOPPED = crate::Reg; #[doc = "Publish configuration for event STOPPED"] pub mod publish_stopped; #[doc = "PUBLISH_ENDRX (rw) register accessor: an alias for `Reg`"] pub type PUBLISH_ENDRX = crate::Reg; #[doc = "Publish configuration for event ENDRX"] pub mod publish_endrx; #[doc = "PUBLISH_END (rw) register accessor: an alias for `Reg`"] pub type PUBLISH_END = crate::Reg; #[doc = "Publish configuration for event END"] pub mod publish_end; #[doc = "PUBLISH_ENDTX (rw) register accessor: an alias for `Reg`"] pub type PUBLISH_ENDTX = crate::Reg; #[doc = "Publish configuration for event ENDTX"] pub mod publish_endtx; #[doc = "PUBLISH_STARTED (rw) register accessor: an alias for `Reg`"] pub type PUBLISH_STARTED = crate::Reg; #[doc = "Publish configuration for event STARTED"] pub mod publish_started; #[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 = "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 an over-read of the TXD buffer."] pub mod orc;