#[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: Cr1
0x00 - control register 1
cr2: Cr2
0x04 - control register 2
sr: Sr
0x08 - status register
dr: Dr
0x0c - data register
crcpr: Crcpr
0x10 - CRC polynomial register
rxcrcr: Rxcrcr
0x14 - RX CRC register
txcrcr: Txcrcr
0x18 - TX CRC register
i2scfgr: I2scfgr
0x1c - I2S configuration register
i2spr: I2spr
0x20 - 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