Struct zinc_hal_lpc11xx::ioregs::C_CAN_canstat_Update [] [src]

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

Updater for CANSTAT register.

Methods

impl<'a> C_CAN_canstat_Update<'a>

fn new(reg: &'a C_CAN_canstat) -> C_CAN_canstat_Update<'a>

Create a new updater.

fn new_ignoring_state(reg: &'a C_CAN_canstat) -> C_CAN_canstat_Update<'a>

Create a new updater that ignores current state.

fn set_lec<'b>(&'b mut self, new_value: C_CAN_canstat_lec) -> &'b mut C_CAN_canstat_Update<'a>

Set value of LEC field.

fn set_txok<'b>(&'b mut self, new_value: C_CAN_canstat_txok) -> &'b mut C_CAN_canstat_Update<'a>

Set value of TXOK field.

fn set_rxok<'b>(&'b mut self, new_value: C_CAN_canstat_rxok) -> &'b mut C_CAN_canstat_Update<'a>

Set value of RXOK field.

fn set_epass<'b>(&'b mut self, new_value: C_CAN_canstat_epass) -> &'b mut C_CAN_canstat_Update<'a>

Set value of EPASS field.

fn set_ewarn<'b>(&'b mut self, new_value: C_CAN_canstat_ewarn) -> &'b mut C_CAN_canstat_Update<'a>

Set value of EWARN field.

fn set_boff<'b>(&'b mut self, new_value: C_CAN_canstat_boff) -> &'b mut C_CAN_canstat_Update<'a>

Set value of BOFF field.

fn done(self)

Commit changes to register.

Trait Implementations

impl<'a> Drop for C_CAN_canstat_Update<'a>

This performs the register update.

fn drop(&mut self)