Struct zinc_hal_lpc11xx::ioregs::C_CAN_canbt_Update [] [src]

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

Updater for CANBT register.

Methods

impl<'a> C_CAN_canbt_Update<'a>

fn new(reg: &'a C_CAN_canbt) -> C_CAN_canbt_Update<'a>

Create a new updater.

fn new_ignoring_state(reg: &'a C_CAN_canbt) -> C_CAN_canbt_Update<'a>

Create a new updater that ignores current state.

fn set_brp<'b>(&'b mut self, new_value: u32) -> &'b mut C_CAN_canbt_Update<'a>

Set value of BRP field.

fn set_sjw<'b>(&'b mut self, new_value: u32) -> &'b mut C_CAN_canbt_Update<'a>

Set value of SJW field.

fn set_tseg1<'b>(&'b mut self, new_value: u32) -> &'b mut C_CAN_canbt_Update<'a>

Set value of TSEG1 field.

fn set_tseg2<'b>(&'b mut self, new_value: u32) -> &'b mut C_CAN_canbt_Update<'a>

Set value of TSEG2 field.

fn done(self)

Commit changes to register.

Trait Implementations

impl<'a> Drop for C_CAN_canbt_Update<'a>

This performs the register update.

fn drop(&mut self)