Struct zinc_hal_lpc11xx::ioregs::UART_lcr_Update
[−]
[src]
pub struct UART_lcr_Update<'a> {
// some fields omitted
}Updater for LCR register.
Methods
impl<'a> UART_lcr_Update<'a>
fn new(reg: &'a UART_lcr) -> UART_lcr_Update<'a>
Create a new updater.
fn new_ignoring_state(reg: &'a UART_lcr) -> UART_lcr_Update<'a>
Create a new updater that ignores current state.
fn set_wls<'b>(&'b mut self, new_value: UART_lcr_wls) -> &'b mut UART_lcr_Update<'a>
Set value of WLS field.
fn set_sbs<'b>(&'b mut self, new_value: UART_lcr_sbs) -> &'b mut UART_lcr_Update<'a>
Set value of SBS field.
fn set_pe<'b>(&'b mut self, new_value: UART_lcr_pe) -> &'b mut UART_lcr_Update<'a>
Set value of PE field.
fn set_ps<'b>(&'b mut self, new_value: UART_lcr_ps) -> &'b mut UART_lcr_Update<'a>
Set value of PS field.
fn set_bc<'b>(&'b mut self, new_value: UART_lcr_bc) -> &'b mut UART_lcr_Update<'a>
Set value of BC field.
fn set_dlab<'b>(&'b mut self, new_value: UART_lcr_dlab) -> &'b mut UART_lcr_Update<'a>
Set value of DLAB field.
fn done(self)
Commit changes to register.
Trait Implementations
impl<'a> Drop for UART_lcr_Update<'a>
This performs the register update.