#[repr(C)]
pub struct RegisterBlock { pub cr0: CR0, pub cr1: CR1, pub dr: DR, pub sr: SR, pub cpsr: CPSR, pub imsc: IMSC, pub ris: RIS, pub mis: MIS, pub icr: ICR, }
Expand description

Register block

Fields§

§cr0: CR0

0x00 - Control Register 0. Selects the serial clock rate, bus type, and data size.

§cr1: CR1

0x04 - Control Register 1. Selects master/slave and other modes.

§dr: DR

0x08 - Data Register. Writes fill the transmit FIFO, and reads empty the receive FIFO.

§sr: SR

0x0c - Status Register

§cpsr: CPSR

0x10 - Clock Prescale Register

§imsc: IMSC

0x14 - Interrupt Mask Set and Clear Register

§ris: RIS

0x18 - Raw Interrupt Status Register

§mis: MIS

0x1c - Masked Interrupt Status Register

§icr: ICR

0x20 - SSPICR Interrupt Clear Register

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.