#[repr(C)]pub struct SPI {
pub ctrla: Reg<CTRLA_SPEC>,
pub ctrlb: Reg<CTRLB_SPEC>,
pub baud: Reg<BAUD_SPEC>,
pub intenclr: Reg<INTENCLR_SPEC>,
pub intenset: Reg<INTENSET_SPEC>,
pub intflag: Reg<INTFLAG_SPEC>,
pub status: Reg<STATUS_SPEC>,
pub syncbusy: Reg<SYNCBUSY_SPEC>,
pub addr: Reg<ADDR_SPEC>,
pub data: Reg<DATA_SPEC>,
pub dbgctrl: Reg<DBGCTRL_SPEC>,
/* private fields */
}
Expand description
Register block
Fields
ctrla: Reg<CTRLA_SPEC>
0x00 - SPI Control A
ctrlb: Reg<CTRLB_SPEC>
0x04 - SPI Control B
baud: Reg<BAUD_SPEC>
0x0c - SPI Baud Rate
intenclr: Reg<INTENCLR_SPEC>
0x14 - SPI Interrupt Enable Clear
intenset: Reg<INTENSET_SPEC>
0x16 - SPI Interrupt Enable Set
intflag: Reg<INTFLAG_SPEC>
0x18 - SPI Interrupt Flag Status and Clear
status: Reg<STATUS_SPEC>
0x1a - SPI Status
syncbusy: Reg<SYNCBUSY_SPEC>
0x1c - SPI Syncbusy
addr: Reg<ADDR_SPEC>
0x24 - SPI Address
data: Reg<DATA_SPEC>
0x28 - SPI Data
dbgctrl: Reg<DBGCTRL_SPEC>
0x30 - SPI Debug Control
Auto Trait Implementations
impl !RefUnwindSafe for SPI
impl Send for SPI
impl !Sync for SPI
impl Unpin for SPI
impl UnwindSafe for SPI
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more