Struct zinc_hal_lpc11xx::ioregs::C_CAN_canec_Get [] [src]

pub struct C_CAN_canec_Get {
    // some fields omitted
}

CANEC: Error counter

Methods

impl C_CAN_canec_Get

fn new(reg: &C_CAN_canec) -> C_CAN_canec_Get

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

fn raw(&self) -> u32

Get the raw value of the register.

fn tec_7_0(&self) -> u32

Get value of TEC_7_0 field: Transmit error counter Current value of the transmit error counter (maximum value 255)

fn rec_6_0(&self) -> u32

Get value of REC_6_0 field: Receive error counter Current value of the receive error counter (maximum value 127).

fn rp(&self) -> C_CAN_canec_rp

Get value of RP field: Receive error passive

Trait Implementations

impl Copy for C_CAN_canec_Get

Derived Implementations

impl Clone for C_CAN_canec_Get

fn clone(&self) -> C_CAN_canec_Get

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