Struct lpc11uxx::ssp0::RegisterBlock
source · #[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