Struct zinc_hal_lpc11xx::ioregs::C_CAN_canbt_Get [] [src]

pub struct C_CAN_canbt_Get {
    // some fields omitted
}

CANBT: Bit timing register

Methods

impl C_CAN_canbt_Get

fn new(reg: &C_CAN_canbt) -> C_CAN_canbt_Get

Create a getter reflecting the current value of the given register.

fn raw(&self) -> u32

Get the raw value of the register.

fn brp(&self) -> u32

Get value of BRP field: Baud rate prescaler The value by which the oscillator frequency is divided for generating the bit time quanta. The bit time is built up from a multiple of this quanta. Valid values for the Baud Rate Prescaler are 0 to 63.[1]

fn sjw(&self) -> u32

Get value of SJW field: (Re)synchronization jump width Valid programmed values are 0 to 3.[1]

fn tseg1(&self) -> u32

Get value of TSEG1 field: Time segment before the sample point Valid values are 1 to 15.[1]

fn tseg2(&self) -> u32

Get value of TSEG2 field: Time segment after the sample point Valid values are 0 to 7.[1]

Trait Implementations

impl Copy for C_CAN_canbt_Get

Derived Implementations

impl Clone for C_CAN_canbt_Get

fn clone(&self) -> C_CAN_canbt_Get

fn clone_from(&mut self, source: &Self)