Struct zinc_hal_lpc11xx::ioregs::C_CAN_cantest_Update [] [src]

pub struct C_CAN_cantest_Update<'a> {
    // some fields omitted
}

Updater for CANTEST register.

Methods

impl<'a> C_CAN_cantest_Update<'a>

fn new(reg: &'a C_CAN_cantest) -> C_CAN_cantest_Update<'a>

Create a new updater.

fn new_ignoring_state(reg: &'a C_CAN_cantest) -> C_CAN_cantest_Update<'a>

Create a new updater that ignores current state.

fn set_basic<'b>(&'b mut self, new_value: C_CAN_cantest_basic) -> &'b mut C_CAN_cantest_Update<'a>

Set value of BASIC field.

fn set_silent<'b>(&'b mut self, new_value: C_CAN_cantest_silent) -> &'b mut C_CAN_cantest_Update<'a>

Set value of SILENT field.

fn set_lback<'b>(&'b mut self, new_value: C_CAN_cantest_lback) -> &'b mut C_CAN_cantest_Update<'a>

Set value of LBACK field.

fn set_tx<'b>(&'b mut self, new_value: C_CAN_cantest_tx) -> &'b mut C_CAN_cantest_Update<'a>

Set value of TX field.

fn set_rx<'b>(&'b mut self, new_value: C_CAN_cantest_rx) -> &'b mut C_CAN_cantest_Update<'a>

Set value of RX field.

fn done(self)

Commit changes to register.

Trait Implementations

impl<'a> Drop for C_CAN_cantest_Update<'a>

This performs the register update.

fn drop(&mut self)