Struct zinc_hal_lpc11xx::ioregs::C_CAN_canstat
[−]
[src]
pub struct C_CAN_canstat { // some fields omitted }
Register CANSTAT
: Status register
Methods
impl C_CAN_canstat
fn get(&self) -> C_CAN_canstat_Get
Fetch the value of the CANSTAT
register.
fn lec(&self) -> C_CAN_canstat_lec
Get value of LEC
field.
fn txok(&self) -> C_CAN_canstat_txok
Get value of TXOK
field.
fn rxok(&self) -> C_CAN_canstat_rxok
Get value of RXOK
field.
fn epass(&self) -> C_CAN_canstat_epass
Get value of EPASS
field.
fn ewarn(&self) -> C_CAN_canstat_ewarn
Get value of EWARN
field.
fn boff(&self) -> C_CAN_canstat_boff
Get value of BOFF
field.
fn ignoring_state(&self) -> C_CAN_canstat_Update
Create new updater that ignores current value of the CANSTAT
register.
fn set_lec<'a>(&'a mut self, new_value: C_CAN_canstat_lec) -> C_CAN_canstat_Update<'a>
Set value of LEC
field.
fn set_txok<'a>(&'a mut self, new_value: C_CAN_canstat_txok) -> C_CAN_canstat_Update<'a>
Set value of TXOK
field.
fn set_rxok<'a>(&'a mut self, new_value: C_CAN_canstat_rxok) -> C_CAN_canstat_Update<'a>
Set value of RXOK
field.
fn set_epass<'a>(&'a mut self, new_value: C_CAN_canstat_epass) -> C_CAN_canstat_Update<'a>
Set value of EPASS
field.
fn set_ewarn<'a>(&'a mut self, new_value: C_CAN_canstat_ewarn) -> C_CAN_canstat_Update<'a>
Set value of EWARN
field.
fn set_boff<'a>(&'a mut self, new_value: C_CAN_canstat_boff) -> C_CAN_canstat_Update<'a>
Set value of BOFF
field.