Struct zinc_hal_lpc11xx::ioregs::SPI0_cr1 [] [src]

pub struct SPI0_cr1 {
    // some fields omitted
}

Register CR1: Control Register 1. Selects master/slave and other modes.

Methods

impl SPI0_cr1

fn get(&self) -> SPI0_cr1_Get

Fetch the value of the CR1 register.

fn lbm(&self) -> SPI0_cr1_lbm

Get value of LBM field.

fn sse(&self) -> SPI0_cr1_sse

Get value of SSE field.

fn ms(&self) -> SPI0_cr1_ms

Get value of MS field.

fn sod(&self) -> bool

Get value of SOD field.

fn ignoring_state(&self) -> SPI0_cr1_Update

Create new updater that ignores current value of the CR1 register.

fn set_lbm<'a>(&'a mut self, new_value: SPI0_cr1_lbm) -> SPI0_cr1_Update<'a>

Set value of LBM field.

fn set_sse<'a>(&'a mut self, new_value: SPI0_cr1_sse) -> SPI0_cr1_Update<'a>

Set value of SSE field.

fn set_ms<'a>(&'a mut self, new_value: SPI0_cr1_ms) -> SPI0_cr1_Update<'a>

Set value of MS field.

fn set_sod<'a>(&'a mut self, new_value: bool) -> SPI0_cr1_Update<'a>

Set value of SOD field.

Trait Implementations

impl Copy for SPI0_cr1

Derived Implementations

impl Clone for SPI0_cr1

fn clone(&self) -> SPI0_cr1

fn clone_from(&mut self, source: &Self)