Struct zinc_hal_lpc11xx::ioregs::C_CAN_cancntl_Update
[−]
[src]
pub struct C_CAN_cancntl_Update<'a> { // some fields omitted }
Updater for CANCNTL
register.
Methods
impl<'a> C_CAN_cancntl_Update<'a>
fn new(reg: &'a C_CAN_cancntl) -> C_CAN_cancntl_Update<'a>
Create a new updater.
fn new_ignoring_state(reg: &'a C_CAN_cancntl) -> C_CAN_cancntl_Update<'a>
Create a new updater that ignores current state.
fn set_init<'b>(&'b mut self, new_value: C_CAN_cancntl_init) -> &'b mut C_CAN_cancntl_Update<'a>
Set value of INIT
field.
fn set_ie<'b>(&'b mut self, new_value: C_CAN_cancntl_ie) -> &'b mut C_CAN_cancntl_Update<'a>
Set value of IE
field.
fn set_sie<'b>(&'b mut self, new_value: C_CAN_cancntl_sie) -> &'b mut C_CAN_cancntl_Update<'a>
Set value of SIE
field.
fn set_eie<'b>(&'b mut self, new_value: C_CAN_cancntl_eie) -> &'b mut C_CAN_cancntl_Update<'a>
Set value of EIE
field.
fn set_dar<'b>(&'b mut self, new_value: C_CAN_cancntl_dar) -> &'b mut C_CAN_cancntl_Update<'a>
Set value of DAR
field.
fn set_cce<'b>(&'b mut self, new_value: C_CAN_cancntl_cce) -> &'b mut C_CAN_cancntl_Update<'a>
Set value of CCE
field.
fn set_test<'b>(&'b mut self, new_value: C_CAN_cancntl_test) -> &'b mut C_CAN_cancntl_Update<'a>
Set value of TEST
field.
fn done(self)
Commit changes to register.
Trait Implementations
impl<'a> Drop for C_CAN_cancntl_Update<'a>
This performs the register update.