diff --git a/esp32c6/src/twai0/err_code_cap.rs b/esp32c6/src/twai0/err_code_cap.rs index 96dfde897..f1d556755 100644 --- a/esp32c6/src/twai0/err_code_cap.rs +++ b/esp32c6/src/twai0/err_code_cap.rs @@ -2,8 +2,8 @@ pub type R = crate::R; #[doc = "Field `ERR_CAPTURE_CODE_SEGMENT` reader - This register contains information about the location of errors on the bus."] pub type ERR_CAPTURE_CODE_SEGMENT_R = crate::FieldReader; -#[doc = "Field `ERR_CAPTURE_CODE_DIRECTION` reader - 1: RX, error occurred during reception. 0: TX, error occurred during transmission."] -pub type ERR_CAPTURE_CODE_DIRECTION_R = crate::BitReader; +#[doc = "Field `ECC_DIRECTION` reader - 1: RX, error occurred during reception. 0: TX, error occurred during transmission."] +pub type ECC_DIRECTION_R = crate::BitReader; #[doc = "Field `ERR_CAPTURE_CODE_TYPE` reader - 00: bit error. 01: form error. 10:stuff error. 11:other type of error."] pub type ERR_CAPTURE_CODE_TYPE_R = crate::FieldReader; impl R { @@ -14,8 +14,8 @@ impl R { } #[doc = "Bit 5 - 1: RX, error occurred during reception. 0: TX, error occurred during transmission."] #[inline(always)] - pub fn err_capture_code_direction(&self) -> ERR_CAPTURE_CODE_DIRECTION_R { - ERR_CAPTURE_CODE_DIRECTION_R::new(((self.bits >> 5) & 1) != 0) + pub fn ecc_direction(&self) -> ECC_DIRECTION_R { + ECC_DIRECTION_R::new(((self.bits >> 5) & 1) != 0) } #[doc = "Bits 6:7 - 00: bit error. 01: form error. 10:stuff error. 11:other type of error."] #[inline(always)] @@ -28,10 +28,7 @@ impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { f.debug_struct("ERR_CODE_CAP") .field("err_capture_code_segment", &self.err_capture_code_segment()) - .field( - "err_capture_code_direction", - &self.err_capture_code_direction(), - ) + .field("ecc_direction", &self.ecc_direction()) .field("err_capture_code_type", &self.err_capture_code_type()) .finish() } diff --git a/esp32c6/svd/patches/esp32c6.yaml b/esp32c6/svd/patches/esp32c6.yaml index 151a7f17b..b9e6eaded 100644 --- a/esp32c6/svd/patches/esp32c6.yaml +++ b/esp32c6/svd/patches/esp32c6.yaml @@ -490,3 +490,8 @@ TWAI*: _modify: SELF_RX_REQUEST: name: SELF_RX_REQ + + ERR_CODE_CAP: + _modify: + ERR_CAPTURE_CODE_DIRECTION: + name: ECC_DIRECTION diff --git a/esp32h2/src/twai0/err_code_cap.rs b/esp32h2/src/twai0/err_code_cap.rs index 96dfde897..f1d556755 100644 --- a/esp32h2/src/twai0/err_code_cap.rs +++ b/esp32h2/src/twai0/err_code_cap.rs @@ -2,8 +2,8 @@ pub type R = crate::R; #[doc = "Field `ERR_CAPTURE_CODE_SEGMENT` reader - This register contains information about the location of errors on the bus."] pub type ERR_CAPTURE_CODE_SEGMENT_R = crate::FieldReader; -#[doc = "Field `ERR_CAPTURE_CODE_DIRECTION` reader - 1: RX, error occurred during reception. 0: TX, error occurred during transmission."] -pub type ERR_CAPTURE_CODE_DIRECTION_R = crate::BitReader; +#[doc = "Field `ECC_DIRECTION` reader - 1: RX, error occurred during reception. 0: TX, error occurred during transmission."] +pub type ECC_DIRECTION_R = crate::BitReader; #[doc = "Field `ERR_CAPTURE_CODE_TYPE` reader - 00: bit error. 01: form error. 10:stuff error. 11:other type of error."] pub type ERR_CAPTURE_CODE_TYPE_R = crate::FieldReader; impl R { @@ -14,8 +14,8 @@ impl R { } #[doc = "Bit 5 - 1: RX, error occurred during reception. 0: TX, error occurred during transmission."] #[inline(always)] - pub fn err_capture_code_direction(&self) -> ERR_CAPTURE_CODE_DIRECTION_R { - ERR_CAPTURE_CODE_DIRECTION_R::new(((self.bits >> 5) & 1) != 0) + pub fn ecc_direction(&self) -> ECC_DIRECTION_R { + ECC_DIRECTION_R::new(((self.bits >> 5) & 1) != 0) } #[doc = "Bits 6:7 - 00: bit error. 01: form error. 10:stuff error. 11:other type of error."] #[inline(always)] @@ -28,10 +28,7 @@ impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { f.debug_struct("ERR_CODE_CAP") .field("err_capture_code_segment", &self.err_capture_code_segment()) - .field( - "err_capture_code_direction", - &self.err_capture_code_direction(), - ) + .field("ecc_direction", &self.ecc_direction()) .field("err_capture_code_type", &self.err_capture_code_type()) .finish() } diff --git a/esp32h2/svd/patches/esp32h2.yaml b/esp32h2/svd/patches/esp32h2.yaml index c107d36de..9562b4fb6 100644 --- a/esp32h2/svd/patches/esp32h2.yaml +++ b/esp32h2/svd/patches/esp32h2.yaml @@ -506,3 +506,8 @@ TWAI*: _modify: SELF_RX_REQUEST: name: SELF_RX_REQ + + ERR_CODE_CAP: + _modify: + ERR_CAPTURE_CODE_DIRECTION: + name: ECC_DIRECTION