#[repr(C)]pub struct SPI_TypeDef {
pub CR1: u32,
pub CR2: u32,
pub SR: u32,
pub DR: u32,
pub CRCPR: u32,
pub RXCRCR: u32,
pub TXCRCR: u32,
}
Expand description
Serial Peripheral Interface
Fields§
§CR1: u32
< SPI Control register 1, Address offset: 0x00
CR2: u32
< SPI Control register 2, Address offset: 0x04
SR: u32
< SPI Status register, Address offset: 0x08
DR: u32
< SPI data register, Address offset: 0x0C
CRCPR: u32
< SPI CRC polynomial register, Address offset: 0x10
RXCRCR: u32
< SPI Rx CRC register, Address offset: 0x14
TXCRCR: u32
< SPI Tx CRC register, Address offset: 0x18
Trait Implementations§
Source§impl Clone for SPI_TypeDef
impl Clone for SPI_TypeDef
Source§fn clone(&self) -> SPI_TypeDef
fn clone(&self) -> SPI_TypeDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SPI_TypeDef
impl Debug for SPI_TypeDef
impl Copy for SPI_TypeDef
Auto Trait Implementations§
impl Freeze for SPI_TypeDef
impl RefUnwindSafe for SPI_TypeDef
impl Send for SPI_TypeDef
impl Sync for SPI_TypeDef
impl Unpin for SPI_TypeDef
impl UnwindSafe for SPI_TypeDef
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