Struct zinc_hal_lpc11xx::ioregs::SPI0_cr1_Update [] [src]

pub struct SPI0_cr1_Update<'a> {
    // some fields omitted
}

Updater for CR1 register.

Methods

impl<'a> SPI0_cr1_Update<'a>

fn new(reg: &'a SPI0_cr1) -> SPI0_cr1_Update<'a>

Create a new updater.

fn new_ignoring_state(reg: &'a SPI0_cr1) -> SPI0_cr1_Update<'a>

Create a new updater that ignores current state.

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

Set value of LBM field.

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

Set value of SSE field.

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

Set value of MS field.

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

Set value of SOD field.

fn done(self)

Commit changes to register.

Trait Implementations

impl<'a> Drop for SPI0_cr1_Update<'a>

This performs the register update.

fn drop(&mut self)