Struct zinc_hal_lpc11xx::ioregs::SPI0_cr0_Update
[−]
[src]
pub struct SPI0_cr0_Update<'a> { // some fields omitted }
Updater for CR0
register.
Methods
impl<'a> SPI0_cr0_Update<'a>
fn new(reg: &'a SPI0_cr0) -> SPI0_cr0_Update<'a>
Create a new updater.
fn new_ignoring_state(reg: &'a SPI0_cr0) -> SPI0_cr0_Update<'a>
Create a new updater that ignores current state.
fn set_dss<'b>(&'b mut self, new_value: SPI0_cr0_dss) -> &'b mut SPI0_cr0_Update<'a>
Set value of DSS
field.
fn set_frf<'b>(&'b mut self, new_value: SPI0_cr0_frf) -> &'b mut SPI0_cr0_Update<'a>
Set value of FRF
field.
fn set_cpol<'b>(&'b mut self, new_value: SPI0_cr0_cpol) -> &'b mut SPI0_cr0_Update<'a>
Set value of CPOL
field.
fn set_cpha<'b>(&'b mut self, new_value: SPI0_cr0_cpha) -> &'b mut SPI0_cr0_Update<'a>
Set value of CPHA
field.
fn set_scr<'b>(&'b mut self, new_value: u32) -> &'b mut SPI0_cr0_Update<'a>
Set value of SCR
field.
fn done(self)
Commit changes to register.
Trait Implementations
impl<'a> Drop for SPI0_cr0_Update<'a>
This performs the register update.