Type Alias esp32h2::twai0::err_code_cap::R

source ·
pub type R = R<ERR_CODE_CAP_SPEC>;
Expand description

Register ERR_CODE_CAP reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn err_capture_code_segment(&self) -> ERR_CAPTURE_CODE_SEGMENT_R

Bits 0:4 - This register contains information about the location of errors on the bus.

source

pub fn err_capture_code_direction(&self) -> ERR_CAPTURE_CODE_DIRECTION_R

Bit 5 - 1: RX, error occurred during reception. 0: TX, error occurred during transmission.

source

pub fn err_capture_code_type(&self) -> ERR_CAPTURE_CODE_TYPE_R

Bits 6:7 - 00: bit error. 01: form error. 10:stuff error. 11:other type of error.