nrf51_pac/
spi0.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    _reserved0: [u8; 0x0108],
5    #[doc = "0x108 - TXD byte sent and RXD byte received."]
6    pub events_ready: EVENTS_READY,
7    _reserved1: [u8; 0x01f8],
8    #[doc = "0x304 - Interrupt enable set register."]
9    pub intenset: INTENSET,
10    #[doc = "0x308 - Interrupt enable clear register."]
11    pub intenclr: INTENCLR,
12    _reserved3: [u8; 0x01f4],
13    #[doc = "0x500 - Enable SPI."]
14    pub enable: ENABLE,
15    _reserved4: [u8; 0x04],
16    #[doc = "0x508 - Pin select for SCK."]
17    pub pselsck: PSELSCK,
18    #[doc = "0x50c - Pin select for MOSI."]
19    pub pselmosi: PSELMOSI,
20    #[doc = "0x510 - Pin select for MISO."]
21    pub pselmiso: PSELMISO,
22    _reserved7: [u8; 0x04],
23    #[doc = "0x518 - RX data."]
24    pub rxd: RXD,
25    #[doc = "0x51c - TX data."]
26    pub txd: TXD,
27    _reserved9: [u8; 0x04],
28    #[doc = "0x524 - SPI frequency"]
29    pub frequency: FREQUENCY,
30    _reserved10: [u8; 0x2c],
31    #[doc = "0x554 - Configuration register."]
32    pub config: CONFIG,
33    _reserved11: [u8; 0x0aa4],
34    #[doc = "0xffc - Peripheral power control."]
35    pub power: POWER,
36}
37#[doc = "EVENTS_READY (rw) register accessor: an alias for `Reg<EVENTS_READY_SPEC>`"]
38pub type EVENTS_READY = crate::Reg<events_ready::EVENTS_READY_SPEC>;
39#[doc = "TXD byte sent and RXD byte received."]
40pub mod events_ready;
41#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
42pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
43#[doc = "Interrupt enable set register."]
44pub mod intenset;
45#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
46pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
47#[doc = "Interrupt enable clear register."]
48pub mod intenclr;
49#[doc = "ENABLE (rw) register accessor: an alias for `Reg<ENABLE_SPEC>`"]
50pub type ENABLE = crate::Reg<enable::ENABLE_SPEC>;
51#[doc = "Enable SPI."]
52pub mod enable;
53#[doc = "PSELSCK (rw) register accessor: an alias for `Reg<PSELSCK_SPEC>`"]
54pub type PSELSCK = crate::Reg<pselsck::PSELSCK_SPEC>;
55#[doc = "Pin select for SCK."]
56pub mod pselsck;
57#[doc = "PSELMOSI (rw) register accessor: an alias for `Reg<PSELMOSI_SPEC>`"]
58pub type PSELMOSI = crate::Reg<pselmosi::PSELMOSI_SPEC>;
59#[doc = "Pin select for MOSI."]
60pub mod pselmosi;
61#[doc = "PSELMISO (rw) register accessor: an alias for `Reg<PSELMISO_SPEC>`"]
62pub type PSELMISO = crate::Reg<pselmiso::PSELMISO_SPEC>;
63#[doc = "Pin select for MISO."]
64pub mod pselmiso;
65#[doc = "RXD (r) register accessor: an alias for `Reg<RXD_SPEC>`"]
66pub type RXD = crate::Reg<rxd::RXD_SPEC>;
67#[doc = "RX data."]
68pub mod rxd;
69#[doc = "TXD (rw) register accessor: an alias for `Reg<TXD_SPEC>`"]
70pub type TXD = crate::Reg<txd::TXD_SPEC>;
71#[doc = "TX data."]
72pub mod txd;
73#[doc = "FREQUENCY (rw) register accessor: an alias for `Reg<FREQUENCY_SPEC>`"]
74pub type FREQUENCY = crate::Reg<frequency::FREQUENCY_SPEC>;
75#[doc = "SPI frequency"]
76pub mod frequency;
77#[doc = "CONFIG (rw) register accessor: an alias for `Reg<CONFIG_SPEC>`"]
78pub type CONFIG = crate::Reg<config::CONFIG_SPEC>;
79#[doc = "Configuration register."]
80pub mod config;
81#[doc = "POWER (rw) register accessor: an alias for `Reg<POWER_SPEC>`"]
82pub type POWER = crate::Reg<power::POWER_SPEC>;
83#[doc = "Peripheral power control."]
84pub mod power;