Struct zinc_hal_lpc11xx::ioregs::CT16B0_pwmc_Update
[−]
[src]
pub struct CT16B0_pwmc_Update<'a> { // some fields omitted }
Updater for PWMC
register.
Methods
impl<'a> CT16B0_pwmc_Update<'a>
fn new(reg: &'a CT16B0_pwmc) -> CT16B0_pwmc_Update<'a>
Create a new updater.
fn new_ignoring_state(reg: &'a CT16B0_pwmc) -> CT16B0_pwmc_Update<'a>
Create a new updater that ignores current state.
fn set_pwmen0<'b>(&'b mut self, new_value: CT16B0_pwmc_pwmen0) -> &'b mut CT16B0_pwmc_Update<'a>
Set value of PWMEN0
field.
fn set_pwmen1<'b>(&'b mut self, new_value: CT16B0_pwmc_pwmen1) -> &'b mut CT16B0_pwmc_Update<'a>
Set value of PWMEN1
field.
fn set_pwmen2<'b>(&'b mut self, new_value: CT16B0_pwmc_pwmen2) -> &'b mut CT16B0_pwmc_Update<'a>
Set value of PWMEN2
field.
fn set_pwmen3<'b>(&'b mut self, new_value: CT16B0_pwmc_pwmen3) -> &'b mut CT16B0_pwmc_Update<'a>
Set value of PWMEN3
field.
fn done(self)
Commit changes to register.
Trait Implementations
impl<'a> Drop for CT16B0_pwmc_Update<'a>
This performs the register update.