Skip to content

Commit 166db44

Browse files
authored
Remove the _I2C postfix from I2C-ST timeout fields (#328)
1 parent ad30212 commit 166db44

File tree

19 files changed

+129
-108
lines changed

19 files changed

+129
-108
lines changed

common_patches/i2c_st_timeouts.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
SCL_ST_TIME_OUT:
2+
_strip_end:
3+
- "_I2C"
4+
5+
SCL_MAIN_ST_TIME_OUT:
6+
_strip_end:
7+
- "_I2C"

esp32c2/src/i2c0/scl_main_st_time_out.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22
pub type R = crate::R<SCL_MAIN_ST_TIME_OUT_SPEC>;
33
#[doc = "Register `SCL_MAIN_ST_TIME_OUT` writer"]
44
pub type W = crate::W<SCL_MAIN_ST_TIME_OUT_SPEC>;
5-
#[doc = "Field `SCL_MAIN_ST_TO_I2C` reader - The threshold value of SCL_MAIN_FSM state unchanged period.nIt should be o more than 23"]
6-
pub type SCL_MAIN_ST_TO_I2C_R = crate::FieldReader;
7-
#[doc = "Field `SCL_MAIN_ST_TO_I2C` writer - The threshold value of SCL_MAIN_FSM state unchanged period.nIt should be o more than 23"]
8-
pub type SCL_MAIN_ST_TO_I2C_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
5+
#[doc = "Field `SCL_MAIN_ST_TO` reader - The threshold value of SCL_MAIN_FSM state unchanged period.nIt should be o more than 23"]
6+
pub type SCL_MAIN_ST_TO_R = crate::FieldReader;
7+
#[doc = "Field `SCL_MAIN_ST_TO` writer - The threshold value of SCL_MAIN_FSM state unchanged period.nIt should be o more than 23"]
8+
pub type SCL_MAIN_ST_TO_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
99
impl R {
1010
#[doc = "Bits 0:4 - The threshold value of SCL_MAIN_FSM state unchanged period.nIt should be o more than 23"]
1111
#[inline(always)]
12-
pub fn scl_main_st_to_i2c(&self) -> SCL_MAIN_ST_TO_I2C_R {
13-
SCL_MAIN_ST_TO_I2C_R::new((self.bits & 0x1f) as u8)
12+
pub fn scl_main_st_to(&self) -> SCL_MAIN_ST_TO_R {
13+
SCL_MAIN_ST_TO_R::new((self.bits & 0x1f) as u8)
1414
}
1515
}
1616
#[cfg(feature = "impl-register-debug")]
1717
impl core::fmt::Debug for R {
1818
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
1919
f.debug_struct("SCL_MAIN_ST_TIME_OUT")
20-
.field("scl_main_st_to_i2c", &self.scl_main_st_to_i2c())
20+
.field("scl_main_st_to", &self.scl_main_st_to())
2121
.finish()
2222
}
2323
}
2424
impl W {
2525
#[doc = "Bits 0:4 - The threshold value of SCL_MAIN_FSM state unchanged period.nIt should be o more than 23"]
2626
#[inline(always)]
27-
pub fn scl_main_st_to_i2c(&mut self) -> SCL_MAIN_ST_TO_I2C_W<SCL_MAIN_ST_TIME_OUT_SPEC> {
28-
SCL_MAIN_ST_TO_I2C_W::new(self, 0)
27+
pub fn scl_main_st_to(&mut self) -> SCL_MAIN_ST_TO_W<SCL_MAIN_ST_TIME_OUT_SPEC> {
28+
SCL_MAIN_ST_TO_W::new(self, 0)
2929
}
3030
}
3131
#[doc = "SCL main status time out register\n\nYou can [`read`](crate::Reg::read) this register and get [`scl_main_st_time_out::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`scl_main_st_time_out::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]

esp32c2/src/i2c0/scl_st_time_out.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22
pub type R = crate::R<SCL_ST_TIME_OUT_SPEC>;
33
#[doc = "Register `SCL_ST_TIME_OUT` writer"]
44
pub type W = crate::W<SCL_ST_TIME_OUT_SPEC>;
5-
#[doc = "Field `SCL_ST_TO_I2C` reader - The threshold value of SCL_FSM state unchanged period. It should be o more than 23"]
6-
pub type SCL_ST_TO_I2C_R = crate::FieldReader;
7-
#[doc = "Field `SCL_ST_TO_I2C` writer - The threshold value of SCL_FSM state unchanged period. It should be o more than 23"]
8-
pub type SCL_ST_TO_I2C_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
5+
#[doc = "Field `SCL_ST_TO` reader - The threshold value of SCL_FSM state unchanged period. It should be o more than 23"]
6+
pub type SCL_ST_TO_R = crate::FieldReader;
7+
#[doc = "Field `SCL_ST_TO` writer - The threshold value of SCL_FSM state unchanged period. It should be o more than 23"]
8+
pub type SCL_ST_TO_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
99
impl R {
1010
#[doc = "Bits 0:4 - The threshold value of SCL_FSM state unchanged period. It should be o more than 23"]
1111
#[inline(always)]
12-
pub fn scl_st_to_i2c(&self) -> SCL_ST_TO_I2C_R {
13-
SCL_ST_TO_I2C_R::new((self.bits & 0x1f) as u8)
12+
pub fn scl_st_to(&self) -> SCL_ST_TO_R {
13+
SCL_ST_TO_R::new((self.bits & 0x1f) as u8)
1414
}
1515
}
1616
#[cfg(feature = "impl-register-debug")]
1717
impl core::fmt::Debug for R {
1818
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
1919
f.debug_struct("SCL_ST_TIME_OUT")
20-
.field("scl_st_to_i2c", &self.scl_st_to_i2c())
20+
.field("scl_st_to", &self.scl_st_to())
2121
.finish()
2222
}
2323
}
2424
impl W {
2525
#[doc = "Bits 0:4 - The threshold value of SCL_FSM state unchanged period. It should be o more than 23"]
2626
#[inline(always)]
27-
pub fn scl_st_to_i2c(&mut self) -> SCL_ST_TO_I2C_W<SCL_ST_TIME_OUT_SPEC> {
28-
SCL_ST_TO_I2C_W::new(self, 0)
27+
pub fn scl_st_to(&mut self) -> SCL_ST_TO_W<SCL_ST_TIME_OUT_SPEC> {
28+
SCL_ST_TO_W::new(self, 0)
2929
}
3030
}
3131
#[doc = "SCL status time out register\n\nYou can [`read`](crate::Reg::read) this register and get [`scl_st_time_out::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`scl_st_time_out::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]

esp32c2/svd/patches/esp32c2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ I2C0:
2424
name: INT_ST
2525
_include:
2626
- ../../../common_patches/i2c0.yaml
27+
- ../../../common_patches/i2c_st_timeouts.yaml
2728

2829
RTC_CNTL:
2930
_include: ../../../common_patches/rtc_cntl_int_strip.yaml

esp32c3/src/i2c0/scl_main_st_time_out.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22
pub type R = crate::R<SCL_MAIN_ST_TIME_OUT_SPEC>;
33
#[doc = "Register `SCL_MAIN_ST_TIME_OUT` writer"]
44
pub type W = crate::W<SCL_MAIN_ST_TIME_OUT_SPEC>;
5-
#[doc = "Field `SCL_MAIN_ST_TO_I2C` reader - reg_scl_main_st_to_regno more than 23"]
6-
pub type SCL_MAIN_ST_TO_I2C_R = crate::FieldReader;
7-
#[doc = "Field `SCL_MAIN_ST_TO_I2C` writer - reg_scl_main_st_to_regno more than 23"]
8-
pub type SCL_MAIN_ST_TO_I2C_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
5+
#[doc = "Field `SCL_MAIN_ST_TO` reader - reg_scl_main_st_to_regno more than 23"]
6+
pub type SCL_MAIN_ST_TO_R = crate::FieldReader;
7+
#[doc = "Field `SCL_MAIN_ST_TO` writer - reg_scl_main_st_to_regno more than 23"]
8+
pub type SCL_MAIN_ST_TO_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
99
impl R {
1010
#[doc = "Bits 0:4 - reg_scl_main_st_to_regno more than 23"]
1111
#[inline(always)]
12-
pub fn scl_main_st_to_i2c(&self) -> SCL_MAIN_ST_TO_I2C_R {
13-
SCL_MAIN_ST_TO_I2C_R::new((self.bits & 0x1f) as u8)
12+
pub fn scl_main_st_to(&self) -> SCL_MAIN_ST_TO_R {
13+
SCL_MAIN_ST_TO_R::new((self.bits & 0x1f) as u8)
1414
}
1515
}
1616
#[cfg(feature = "impl-register-debug")]
1717
impl core::fmt::Debug for R {
1818
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
1919
f.debug_struct("SCL_MAIN_ST_TIME_OUT")
20-
.field("scl_main_st_to_i2c", &self.scl_main_st_to_i2c())
20+
.field("scl_main_st_to", &self.scl_main_st_to())
2121
.finish()
2222
}
2323
}
2424
impl W {
2525
#[doc = "Bits 0:4 - reg_scl_main_st_to_regno more than 23"]
2626
#[inline(always)]
27-
pub fn scl_main_st_to_i2c(&mut self) -> SCL_MAIN_ST_TO_I2C_W<SCL_MAIN_ST_TIME_OUT_SPEC> {
28-
SCL_MAIN_ST_TO_I2C_W::new(self, 0)
27+
pub fn scl_main_st_to(&mut self) -> SCL_MAIN_ST_TO_W<SCL_MAIN_ST_TIME_OUT_SPEC> {
28+
SCL_MAIN_ST_TO_W::new(self, 0)
2929
}
3030
}
3131
#[doc = "I2C_SCL_MAIN_ST_TIME_OUT_REG\n\nYou can [`read`](crate::Reg::read) this register and get [`scl_main_st_time_out::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`scl_main_st_time_out::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]

esp32c3/src/i2c0/scl_st_time_out.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22
pub type R = crate::R<SCL_ST_TIME_OUT_SPEC>;
33
#[doc = "Register `SCL_ST_TIME_OUT` writer"]
44
pub type W = crate::W<SCL_ST_TIME_OUT_SPEC>;
5-
#[doc = "Field `SCL_ST_TO_I2C` reader - reg_scl_st_to_regno more than 23"]
6-
pub type SCL_ST_TO_I2C_R = crate::FieldReader;
7-
#[doc = "Field `SCL_ST_TO_I2C` writer - reg_scl_st_to_regno more than 23"]
8-
pub type SCL_ST_TO_I2C_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
5+
#[doc = "Field `SCL_ST_TO` reader - reg_scl_st_to_regno more than 23"]
6+
pub type SCL_ST_TO_R = crate::FieldReader;
7+
#[doc = "Field `SCL_ST_TO` writer - reg_scl_st_to_regno more than 23"]
8+
pub type SCL_ST_TO_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
99
impl R {
1010
#[doc = "Bits 0:4 - reg_scl_st_to_regno more than 23"]
1111
#[inline(always)]
12-
pub fn scl_st_to_i2c(&self) -> SCL_ST_TO_I2C_R {
13-
SCL_ST_TO_I2C_R::new((self.bits & 0x1f) as u8)
12+
pub fn scl_st_to(&self) -> SCL_ST_TO_R {
13+
SCL_ST_TO_R::new((self.bits & 0x1f) as u8)
1414
}
1515
}
1616
#[cfg(feature = "impl-register-debug")]
1717
impl core::fmt::Debug for R {
1818
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
1919
f.debug_struct("SCL_ST_TIME_OUT")
20-
.field("scl_st_to_i2c", &self.scl_st_to_i2c())
20+
.field("scl_st_to", &self.scl_st_to())
2121
.finish()
2222
}
2323
}
2424
impl W {
2525
#[doc = "Bits 0:4 - reg_scl_st_to_regno more than 23"]
2626
#[inline(always)]
27-
pub fn scl_st_to_i2c(&mut self) -> SCL_ST_TO_I2C_W<SCL_ST_TIME_OUT_SPEC> {
28-
SCL_ST_TO_I2C_W::new(self, 0)
27+
pub fn scl_st_to(&mut self) -> SCL_ST_TO_W<SCL_ST_TIME_OUT_SPEC> {
28+
SCL_ST_TO_W::new(self, 0)
2929
}
3030
}
3131
#[doc = "I2C_SCL_ST_TIME_OUT_REG\n\nYou can [`read`](crate::Reg::read) this register and get [`scl_st_time_out::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`scl_st_time_out::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]

esp32c3/svd/patches/esp32c3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ I2C0:
187187
name: INT_ST
188188
_include:
189189
- ../../../common_patches/i2c0.yaml
190+
- ../../../common_patches/i2c_st_timeouts.yaml
190191

191192
RTC_CNTL:
192193
_include: ../../../common_patches/rtc_cntl_int_strip.yaml

esp32c6/src/i2c0/scl_main_st_time_out.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22
pub type R = crate::R<SCL_MAIN_ST_TIME_OUT_SPEC>;
33
#[doc = "Register `SCL_MAIN_ST_TIME_OUT` writer"]
44
pub type W = crate::W<SCL_MAIN_ST_TIME_OUT_SPEC>;
5-
#[doc = "Field `SCL_MAIN_ST_TO_I2C` reader - The threshold value of SCL_MAIN_FSM state unchanged period.nIt should be o more than 23"]
6-
pub type SCL_MAIN_ST_TO_I2C_R = crate::FieldReader;
7-
#[doc = "Field `SCL_MAIN_ST_TO_I2C` writer - The threshold value of SCL_MAIN_FSM state unchanged period.nIt should be o more than 23"]
8-
pub type SCL_MAIN_ST_TO_I2C_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
5+
#[doc = "Field `SCL_MAIN_ST_TO` reader - The threshold value of SCL_MAIN_FSM state unchanged period.nIt should be o more than 23"]
6+
pub type SCL_MAIN_ST_TO_R = crate::FieldReader;
7+
#[doc = "Field `SCL_MAIN_ST_TO` writer - The threshold value of SCL_MAIN_FSM state unchanged period.nIt should be o more than 23"]
8+
pub type SCL_MAIN_ST_TO_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
99
impl R {
1010
#[doc = "Bits 0:4 - The threshold value of SCL_MAIN_FSM state unchanged period.nIt should be o more than 23"]
1111
#[inline(always)]
12-
pub fn scl_main_st_to_i2c(&self) -> SCL_MAIN_ST_TO_I2C_R {
13-
SCL_MAIN_ST_TO_I2C_R::new((self.bits & 0x1f) as u8)
12+
pub fn scl_main_st_to(&self) -> SCL_MAIN_ST_TO_R {
13+
SCL_MAIN_ST_TO_R::new((self.bits & 0x1f) as u8)
1414
}
1515
}
1616
#[cfg(feature = "impl-register-debug")]
1717
impl core::fmt::Debug for R {
1818
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
1919
f.debug_struct("SCL_MAIN_ST_TIME_OUT")
20-
.field("scl_main_st_to_i2c", &self.scl_main_st_to_i2c())
20+
.field("scl_main_st_to", &self.scl_main_st_to())
2121
.finish()
2222
}
2323
}
2424
impl W {
2525
#[doc = "Bits 0:4 - The threshold value of SCL_MAIN_FSM state unchanged period.nIt should be o more than 23"]
2626
#[inline(always)]
27-
pub fn scl_main_st_to_i2c(&mut self) -> SCL_MAIN_ST_TO_I2C_W<SCL_MAIN_ST_TIME_OUT_SPEC> {
28-
SCL_MAIN_ST_TO_I2C_W::new(self, 0)
27+
pub fn scl_main_st_to(&mut self) -> SCL_MAIN_ST_TO_W<SCL_MAIN_ST_TIME_OUT_SPEC> {
28+
SCL_MAIN_ST_TO_W::new(self, 0)
2929
}
3030
}
3131
#[doc = "SCL main status time out register\n\nYou can [`read`](crate::Reg::read) this register and get [`scl_main_st_time_out::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`scl_main_st_time_out::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]

esp32c6/src/i2c0/scl_st_time_out.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22
pub type R = crate::R<SCL_ST_TIME_OUT_SPEC>;
33
#[doc = "Register `SCL_ST_TIME_OUT` writer"]
44
pub type W = crate::W<SCL_ST_TIME_OUT_SPEC>;
5-
#[doc = "Field `SCL_ST_TO_I2C` reader - The threshold value of SCL_FSM state unchanged period. It should be o more than 23"]
6-
pub type SCL_ST_TO_I2C_R = crate::FieldReader;
7-
#[doc = "Field `SCL_ST_TO_I2C` writer - The threshold value of SCL_FSM state unchanged period. It should be o more than 23"]
8-
pub type SCL_ST_TO_I2C_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
5+
#[doc = "Field `SCL_ST_TO` reader - The threshold value of SCL_FSM state unchanged period. It should be o more than 23"]
6+
pub type SCL_ST_TO_R = crate::FieldReader;
7+
#[doc = "Field `SCL_ST_TO` writer - The threshold value of SCL_FSM state unchanged period. It should be o more than 23"]
8+
pub type SCL_ST_TO_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
99
impl R {
1010
#[doc = "Bits 0:4 - The threshold value of SCL_FSM state unchanged period. It should be o more than 23"]
1111
#[inline(always)]
12-
pub fn scl_st_to_i2c(&self) -> SCL_ST_TO_I2C_R {
13-
SCL_ST_TO_I2C_R::new((self.bits & 0x1f) as u8)
12+
pub fn scl_st_to(&self) -> SCL_ST_TO_R {
13+
SCL_ST_TO_R::new((self.bits & 0x1f) as u8)
1414
}
1515
}
1616
#[cfg(feature = "impl-register-debug")]
1717
impl core::fmt::Debug for R {
1818
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
1919
f.debug_struct("SCL_ST_TIME_OUT")
20-
.field("scl_st_to_i2c", &self.scl_st_to_i2c())
20+
.field("scl_st_to", &self.scl_st_to())
2121
.finish()
2222
}
2323
}
2424
impl W {
2525
#[doc = "Bits 0:4 - The threshold value of SCL_FSM state unchanged period. It should be o more than 23"]
2626
#[inline(always)]
27-
pub fn scl_st_to_i2c(&mut self) -> SCL_ST_TO_I2C_W<SCL_ST_TIME_OUT_SPEC> {
28-
SCL_ST_TO_I2C_W::new(self, 0)
27+
pub fn scl_st_to(&mut self) -> SCL_ST_TO_W<SCL_ST_TIME_OUT_SPEC> {
28+
SCL_ST_TO_W::new(self, 0)
2929
}
3030
}
3131
#[doc = "SCL status time out register\n\nYou can [`read`](crate::Reg::read) this register and get [`scl_st_time_out::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`scl_st_time_out::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]

esp32c6/svd/patches/esp32c6.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,6 +1572,7 @@ I2C0:
15721572
name: INT_ST
15731573
_include:
15741574
- ../../../common_patches/i2c0.yaml
1575+
- ../../../common_patches/i2c_st_timeouts.yaml
15751576

15761577
GPIO:
15771578
_modify:

0 commit comments

Comments
 (0)