Type Alias esp32c3::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 ecc_segment(&self) -> ECC_SEGMENT_R

Bits 0:4 - This register contains information about the location of errors, see Table 181 for details.

source

pub fn ecc_direction(&self) -> ECC_DIRECTION_R

Bit 5 - This register contains information about transmission direction of the node when error occurs. 1: Error occurs when receiving a message; 0: Error occurs when transmitting a message

source

pub fn ecc_type(&self) -> ECC_TYPE_R

Bits 6:7 - This register contains information about error types: 00: bit error; 01: form error; 10: stuff error; 11: other type of error