Struct esp32c6::twai0::err_code_cap::R
source · pub struct R(_);Expand description
Register ERR_CODE_CAP reader
Implementations§
source§impl R
impl R
sourcepub fn err_capture_code_segment(&self) -> ERR_CAPTURE_CODE_SEGMENT_R
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.
sourcepub fn err_capture_code_direction(&self) -> ERR_CAPTURE_CODE_DIRECTION_R
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.
sourcepub fn err_capture_code_type(&self) -> ERR_CAPTURE_CODE_TYPE_R
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.
Methods from Deref<Target = R<ERR_CODE_CAP_SPEC>>§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more