Struct zinc_hal_lpc11xx::ioregs::C_CAN_canbt
[−]
[src]
pub struct C_CAN_canbt { // some fields omitted }
Register CANBT
: Bit timing register
Methods
impl C_CAN_canbt
fn get(&self) -> C_CAN_canbt_Get
Fetch the value of the CANBT
register.
fn brp(&self) -> u32
Get value of BRP
field.
fn sjw(&self) -> u32
Get value of SJW
field.
fn tseg1(&self) -> u32
Get value of TSEG1
field.
fn tseg2(&self) -> u32
Get value of TSEG2
field.
fn ignoring_state(&self) -> C_CAN_canbt_Update
Create new updater that ignores current value of the CANBT
register.
fn set_brp<'a>(&'a mut self, new_value: u32) -> C_CAN_canbt_Update<'a>
Set value of BRP
field.
fn set_sjw<'a>(&'a mut self, new_value: u32) -> C_CAN_canbt_Update<'a>
Set value of SJW
field.
fn set_tseg1<'a>(&'a mut self, new_value: u32) -> C_CAN_canbt_Update<'a>
Set value of TSEG1
field.
fn set_tseg2<'a>(&'a mut self, new_value: u32) -> C_CAN_canbt_Update<'a>
Set value of TSEG2
field.