Struct zinc_hal_lpc11xx::ioregs::CT32B0_tcr_Update
[−]
[src]
pub struct CT32B0_tcr_Update<'a> { // some fields omitted }
Updater for TCR
register.
Methods
impl<'a> CT32B0_tcr_Update<'a>
fn new(reg: &'a CT32B0_tcr) -> CT32B0_tcr_Update<'a>
Create a new updater.
fn new_ignoring_state(reg: &'a CT32B0_tcr) -> CT32B0_tcr_Update<'a>
Create a new updater that ignores current state.
fn set_cen<'b>(&'b mut self, new_value: bool) -> &'b mut CT32B0_tcr_Update<'a>
Set value of CEN
field.
fn set_crst<'b>(&'b mut self, new_value: bool) -> &'b mut CT32B0_tcr_Update<'a>
Set value of CRST
field.
fn done(self)
Commit changes to register.
Trait Implementations
impl<'a> Drop for CT32B0_tcr_Update<'a>
This performs the register update.