#[repr(C)]pub struct Spi {
pub cr1: Cr1,
pub cr2: Cr2,
pub sr: Sr,
pub dr: Dr,
pub crcpr: Crcpr,
pub rxcrcr: Rxcrcr,
pub txcrcr: Txcrcr,
pub i2scfgr: I2scfgr,
pub i2spr: I2spr,
}Expand description
Register block
Fields§
§cr1: Cr10x00 - control register 1
cr2: Cr20x04 - control register 2
sr: Sr0x08 - status register
dr: Dr0x0c - data register
crcpr: Crcpr0x10 - CRC polynomial register
rxcrcr: Rxcrcr0x14 - RX CRC register
txcrcr: Txcrcr0x18 - TX CRC register
i2scfgr: I2scfgr0x1c - I2S configuration register
i2spr: I2spr0x20 - I2S prescaler register
Auto Trait Implementations§
impl Freeze for Spi
impl RefUnwindSafe for Spi
impl Send for Spi
impl Sync for Spi
impl Unpin for Spi
impl UnwindSafe for Spi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more