Struct ch32v3::spi1::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {
pub ctlr1: Reg<CTLR1_SPEC>,
pub ctlr2: Reg<CTLR2_SPEC>,
pub statr: Reg<STATR_SPEC>,
pub datar: Reg<DATAR_SPEC>,
pub crcr: Reg<CRCR_SPEC>,
pub rcrcr: Reg<RCRCR_SPEC>,
pub tcrcr: Reg<TCRCR_SPEC>,
}Expand description
Register block
Fields
ctlr1: Reg<CTLR1_SPEC>0x00 - control register 1
ctlr2: Reg<CTLR2_SPEC>0x04 - control register 2
statr: Reg<STATR_SPEC>0x08 - status register
datar: Reg<DATAR_SPEC>0x0c - data register
crcr: Reg<CRCR_SPEC>0x10 - CRCR polynomial register
rcrcr: Reg<RCRCR_SPEC>0x14 - RX CRC register
tcrcr: Reg<TCRCR_SPEC>0x18 - TX CRC register
Auto Trait Implementations
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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