Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #19 from rmsyn/update/svd2rust-0.31.2
Browse files Browse the repository at this point in the history
pac: update generated code with `svd2rust` 0.31.2
  • Loading branch information
rmsyn authored Dec 2, 2023
2 parents 1e0377e + 3f1f6dd commit 6397537
Show file tree
Hide file tree
Showing 3,600 changed files with 57,103 additions and 31,944 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
7 changes: 6 additions & 1 deletion jh7110-vf2-12a-pac/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ license = "GPL-3.0-only"
[dependencies]
critical-section = { version = "1.1.2", optional = true }
riscv = "0.10.1"
riscv-rt = { version = "0.11.0", optional = true }
vcell = "0.1.3"


[dependencies.riscv-rt]
version = "0.11.0"
git = "https://github.com/rust-embedded/riscv-rt"
optional = true

[features]
default = ["critical-section"]
critical-section = ["dep:critical-section"]
Expand Down
286 changes: 214 additions & 72 deletions jh7110-vf2-12a-pac/src/aon_pinctrl.rs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub type W = crate::W<AON_IOMUX_CFGSAIF_SYSCFG100_SPEC>;
#[doc = "Field `padcfg_pad_gmac0_rxd1_syscon` reader - padcfg_pad_gmac0_rxd1_syscon"]
pub type PADCFG_PAD_GMAC0_RXD1_SYSCON_R = crate::FieldReader;
#[doc = "Field `padcfg_pad_gmac0_rxd1_syscon` writer - padcfg_pad_gmac0_rxd1_syscon"]
pub type PADCFG_PAD_GMAC0_RXD1_SYSCON_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 2, O>;
pub type PADCFG_PAD_GMAC0_RXD1_SYSCON_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[doc = "Bits 0:1 - padcfg_pad_gmac0_rxd1_syscon"]
#[inline(always)]
Expand All @@ -19,10 +19,14 @@ impl W {
#[must_use]
pub fn padcfg_pad_gmac0_rxd1_syscon(
&mut self,
) -> PADCFG_PAD_GMAC0_RXD1_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG100_SPEC, 0> {
PADCFG_PAD_GMAC0_RXD1_SYSCON_W::new(self)
) -> PADCFG_PAD_GMAC0_RXD1_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG100_SPEC> {
PADCFG_PAD_GMAC0_RXD1_SYSCON_W::new(self, 0)
}
#[doc = "Writes raw bits to the register."]
#[doc = r" Writes raw bits to the register."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub type W = crate::W<AON_IOMUX_CFGSAIF_SYSCFG104_SPEC>;
#[doc = "Field `padcfg_pad_gmac0_rxd2_syscon` reader - padcfg_pad_gmac0_rxd2_syscon"]
pub type PADCFG_PAD_GMAC0_RXD2_SYSCON_R = crate::FieldReader;
#[doc = "Field `padcfg_pad_gmac0_rxd2_syscon` writer - padcfg_pad_gmac0_rxd2_syscon"]
pub type PADCFG_PAD_GMAC0_RXD2_SYSCON_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 2, O>;
pub type PADCFG_PAD_GMAC0_RXD2_SYSCON_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[doc = "Bits 0:1 - padcfg_pad_gmac0_rxd2_syscon"]
#[inline(always)]
Expand All @@ -19,10 +19,14 @@ impl W {
#[must_use]
pub fn padcfg_pad_gmac0_rxd2_syscon(
&mut self,
) -> PADCFG_PAD_GMAC0_RXD2_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG104_SPEC, 0> {
PADCFG_PAD_GMAC0_RXD2_SYSCON_W::new(self)
) -> PADCFG_PAD_GMAC0_RXD2_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG104_SPEC> {
PADCFG_PAD_GMAC0_RXD2_SYSCON_W::new(self, 0)
}
#[doc = "Writes raw bits to the register."]
#[doc = r" Writes raw bits to the register."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub type W = crate::W<AON_IOMUX_CFGSAIF_SYSCFG108_SPEC>;
#[doc = "Field `padcfg_pad_gmac0_rxd3_syscon` reader - padcfg_pad_gmac0_rxd3_syscon"]
pub type PADCFG_PAD_GMAC0_RXD3_SYSCON_R = crate::FieldReader;
#[doc = "Field `padcfg_pad_gmac0_rxd3_syscon` writer - padcfg_pad_gmac0_rxd3_syscon"]
pub type PADCFG_PAD_GMAC0_RXD3_SYSCON_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 2, O>;
pub type PADCFG_PAD_GMAC0_RXD3_SYSCON_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[doc = "Bits 0:1 - padcfg_pad_gmac0_rxd3_syscon"]
#[inline(always)]
Expand All @@ -19,10 +19,14 @@ impl W {
#[must_use]
pub fn padcfg_pad_gmac0_rxd3_syscon(
&mut self,
) -> PADCFG_PAD_GMAC0_RXD3_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG108_SPEC, 0> {
PADCFG_PAD_GMAC0_RXD3_SYSCON_W::new(self)
) -> PADCFG_PAD_GMAC0_RXD3_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG108_SPEC> {
PADCFG_PAD_GMAC0_RXD3_SYSCON_W::new(self, 0)
}
#[doc = "Writes raw bits to the register."]
#[doc = r" Writes raw bits to the register."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub type W = crate::W<AON_IOMUX_CFGSAIF_SYSCFG112_SPEC>;
#[doc = "Field `padcfg_pad_gmac0_rxdv_syscon` reader - padcfg_pad_gmac0_rxdv_syscon"]
pub type PADCFG_PAD_GMAC0_RXDV_SYSCON_R = crate::FieldReader;
#[doc = "Field `padcfg_pad_gmac0_rxdv_syscon` writer - padcfg_pad_gmac0_rxdv_syscon"]
pub type PADCFG_PAD_GMAC0_RXDV_SYSCON_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 2, O>;
pub type PADCFG_PAD_GMAC0_RXDV_SYSCON_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[doc = "Bits 0:1 - padcfg_pad_gmac0_rxdv_syscon"]
#[inline(always)]
Expand All @@ -19,10 +19,14 @@ impl W {
#[must_use]
pub fn padcfg_pad_gmac0_rxdv_syscon(
&mut self,
) -> PADCFG_PAD_GMAC0_RXDV_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG112_SPEC, 0> {
PADCFG_PAD_GMAC0_RXDV_SYSCON_W::new(self)
) -> PADCFG_PAD_GMAC0_RXDV_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG112_SPEC> {
PADCFG_PAD_GMAC0_RXDV_SYSCON_W::new(self, 0)
}
#[doc = "Writes raw bits to the register."]
#[doc = r" Writes raw bits to the register."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub type W = crate::W<AON_IOMUX_CFGSAIF_SYSCFG116_SPEC>;
#[doc = "Field `padcfg_pad_gmac0_rxc_syscon` reader - padcfg_pad_gmac0_rxc_syscon"]
pub type PADCFG_PAD_GMAC0_RXC_SYSCON_R = crate::FieldReader;
#[doc = "Field `padcfg_pad_gmac0_rxc_syscon` writer - padcfg_pad_gmac0_rxc_syscon"]
pub type PADCFG_PAD_GMAC0_RXC_SYSCON_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 2, O>;
pub type PADCFG_PAD_GMAC0_RXC_SYSCON_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[doc = "Bits 0:1 - padcfg_pad_gmac0_rxc_syscon"]
#[inline(always)]
Expand All @@ -19,10 +19,14 @@ impl W {
#[must_use]
pub fn padcfg_pad_gmac0_rxc_syscon(
&mut self,
) -> PADCFG_PAD_GMAC0_RXC_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG116_SPEC, 0> {
PADCFG_PAD_GMAC0_RXC_SYSCON_W::new(self)
) -> PADCFG_PAD_GMAC0_RXC_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG116_SPEC> {
PADCFG_PAD_GMAC0_RXC_SYSCON_W::new(self, 0)
}
#[doc = "Writes raw bits to the register."]
#[doc = r" Writes raw bits to the register."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub type W = crate::W<AON_IOMUX_CFGSAIF_SYSCFG120_SPEC>;
#[doc = "Field `padcfg_pad_gmac0_txd0_syscon` reader - padcfg_pad_gmac0_txd0_syscon"]
pub type PADCFG_PAD_GMAC0_TXD0_SYSCON_R = crate::FieldReader;
#[doc = "Field `padcfg_pad_gmac0_txd0_syscon` writer - padcfg_pad_gmac0_txd0_syscon"]
pub type PADCFG_PAD_GMAC0_TXD0_SYSCON_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 2, O>;
pub type PADCFG_PAD_GMAC0_TXD0_SYSCON_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[doc = "Bits 0:1 - padcfg_pad_gmac0_txd0_syscon"]
#[inline(always)]
Expand All @@ -19,10 +19,14 @@ impl W {
#[must_use]
pub fn padcfg_pad_gmac0_txd0_syscon(
&mut self,
) -> PADCFG_PAD_GMAC0_TXD0_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG120_SPEC, 0> {
PADCFG_PAD_GMAC0_TXD0_SYSCON_W::new(self)
) -> PADCFG_PAD_GMAC0_TXD0_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG120_SPEC> {
PADCFG_PAD_GMAC0_TXD0_SYSCON_W::new(self, 0)
}
#[doc = "Writes raw bits to the register."]
#[doc = r" Writes raw bits to the register."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub type W = crate::W<AON_IOMUX_CFGSAIF_SYSCFG124_SPEC>;
#[doc = "Field `padcfg_pad_gmac0_txd1_syscon` reader - padcfg_pad_gmac0_txd1_syscon"]
pub type PADCFG_PAD_GMAC0_TXD1_SYSCON_R = crate::FieldReader;
#[doc = "Field `padcfg_pad_gmac0_txd1_syscon` writer - padcfg_pad_gmac0_txd1_syscon"]
pub type PADCFG_PAD_GMAC0_TXD1_SYSCON_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 2, O>;
pub type PADCFG_PAD_GMAC0_TXD1_SYSCON_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[doc = "Bits 0:1 - padcfg_pad_gmac0_txd1_syscon"]
#[inline(always)]
Expand All @@ -19,10 +19,14 @@ impl W {
#[must_use]
pub fn padcfg_pad_gmac0_txd1_syscon(
&mut self,
) -> PADCFG_PAD_GMAC0_TXD1_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG124_SPEC, 0> {
PADCFG_PAD_GMAC0_TXD1_SYSCON_W::new(self)
) -> PADCFG_PAD_GMAC0_TXD1_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG124_SPEC> {
PADCFG_PAD_GMAC0_TXD1_SYSCON_W::new(self, 0)
}
#[doc = "Writes raw bits to the register."]
#[doc = r" Writes raw bits to the register."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub type W = crate::W<AON_IOMUX_CFGSAIF_SYSCFG128_SPEC>;
#[doc = "Field `padcfg_pad_gmac0_txd2_syscon` reader - padcfg_pad_gmac0_txd2_syscon"]
pub type PADCFG_PAD_GMAC0_TXD2_SYSCON_R = crate::FieldReader;
#[doc = "Field `padcfg_pad_gmac0_txd2_syscon` writer - padcfg_pad_gmac0_txd2_syscon"]
pub type PADCFG_PAD_GMAC0_TXD2_SYSCON_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 2, O>;
pub type PADCFG_PAD_GMAC0_TXD2_SYSCON_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[doc = "Bits 0:1 - padcfg_pad_gmac0_txd2_syscon"]
#[inline(always)]
Expand All @@ -19,10 +19,14 @@ impl W {
#[must_use]
pub fn padcfg_pad_gmac0_txd2_syscon(
&mut self,
) -> PADCFG_PAD_GMAC0_TXD2_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG128_SPEC, 0> {
PADCFG_PAD_GMAC0_TXD2_SYSCON_W::new(self)
) -> PADCFG_PAD_GMAC0_TXD2_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG128_SPEC> {
PADCFG_PAD_GMAC0_TXD2_SYSCON_W::new(self, 0)
}
#[doc = "Writes raw bits to the register."]
#[doc = r" Writes raw bits to the register."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub type W = crate::W<AON_IOMUX_CFGSAIF_SYSCFG132_SPEC>;
#[doc = "Field `padcfg_pad_gmac0_txd3_syscon` reader - padcfg_pad_gmac0_txd3_syscon"]
pub type PADCFG_PAD_GMAC0_TXD3_SYSCON_R = crate::FieldReader;
#[doc = "Field `padcfg_pad_gmac0_txd3_syscon` writer - padcfg_pad_gmac0_txd3_syscon"]
pub type PADCFG_PAD_GMAC0_TXD3_SYSCON_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 2, O>;
pub type PADCFG_PAD_GMAC0_TXD3_SYSCON_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[doc = "Bits 0:1 - padcfg_pad_gmac0_txd3_syscon"]
#[inline(always)]
Expand All @@ -19,10 +19,14 @@ impl W {
#[must_use]
pub fn padcfg_pad_gmac0_txd3_syscon(
&mut self,
) -> PADCFG_PAD_GMAC0_TXD3_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG132_SPEC, 0> {
PADCFG_PAD_GMAC0_TXD3_SYSCON_W::new(self)
) -> PADCFG_PAD_GMAC0_TXD3_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG132_SPEC> {
PADCFG_PAD_GMAC0_TXD3_SYSCON_W::new(self, 0)
}
#[doc = "Writes raw bits to the register."]
#[doc = r" Writes raw bits to the register."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub type W = crate::W<AON_IOMUX_CFGSAIF_SYSCFG136_SPEC>;
#[doc = "Field `padcfg_pad_gmac0_txen_syscon` reader - padcfg_pad_gmac0_txen_syscon"]
pub type PADCFG_PAD_GMAC0_TXEN_SYSCON_R = crate::FieldReader;
#[doc = "Field `padcfg_pad_gmac0_txen_syscon` writer - padcfg_pad_gmac0_txen_syscon"]
pub type PADCFG_PAD_GMAC0_TXEN_SYSCON_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 2, O>;
pub type PADCFG_PAD_GMAC0_TXEN_SYSCON_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[doc = "Bits 0:1 - padcfg_pad_gmac0_txen_syscon"]
#[inline(always)]
Expand All @@ -19,10 +19,14 @@ impl W {
#[must_use]
pub fn padcfg_pad_gmac0_txen_syscon(
&mut self,
) -> PADCFG_PAD_GMAC0_TXEN_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG136_SPEC, 0> {
PADCFG_PAD_GMAC0_TXEN_SYSCON_W::new(self)
) -> PADCFG_PAD_GMAC0_TXEN_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG136_SPEC> {
PADCFG_PAD_GMAC0_TXEN_SYSCON_W::new(self, 0)
}
#[doc = "Writes raw bits to the register."]
#[doc = r" Writes raw bits to the register."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub type W = crate::W<AON_IOMUX_CFGSAIF_SYSCFG140_SPEC>;
#[doc = "Field `padcfg_pad_gmac0_txc_syscon` reader - padcfg_pad_gmac0_txc_syscon"]
pub type PADCFG_PAD_GMAC0_TXC_SYSCON_R = crate::FieldReader;
#[doc = "Field `padcfg_pad_gmac0_txc_syscon` writer - padcfg_pad_gmac0_txc_syscon"]
pub type PADCFG_PAD_GMAC0_TXC_SYSCON_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 2, O>;
pub type PADCFG_PAD_GMAC0_TXC_SYSCON_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[doc = "Bits 0:1 - padcfg_pad_gmac0_txc_syscon"]
#[inline(always)]
Expand All @@ -19,10 +19,14 @@ impl W {
#[must_use]
pub fn padcfg_pad_gmac0_txc_syscon(
&mut self,
) -> PADCFG_PAD_GMAC0_TXC_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG140_SPEC, 0> {
PADCFG_PAD_GMAC0_TXC_SYSCON_W::new(self)
) -> PADCFG_PAD_GMAC0_TXC_SYSCON_W<AON_IOMUX_CFGSAIF_SYSCFG140_SPEC> {
PADCFG_PAD_GMAC0_TXC_SYSCON_W::new(self, 0)
}
#[doc = "Writes raw bits to the register."]
#[doc = r" Writes raw bits to the register."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub type W = crate::W<AON_IOMUX_CFGSAIF_SYSCFG144_SPEC>;
#[doc = "Field `pad_gmac0_rxc_func_sel` reader - Function selector of GMAC0_RXC: * Function 0: u0_aon_crg_clk_gmac0_rgmii_rx, * Function 1: u0_aon_crg_clk_gmac0_rmii_ref, * Function 2: None, * Function 3: None"]
pub type PAD_GMAC0_RXC_FUNC_SEL_R = crate::FieldReader;
#[doc = "Field `pad_gmac0_rxc_func_sel` writer - Function selector of GMAC0_RXC: * Function 0: u0_aon_crg_clk_gmac0_rgmii_rx, * Function 1: u0_aon_crg_clk_gmac0_rmii_ref, * Function 2: None, * Function 3: None"]
pub type PAD_GMAC0_RXC_FUNC_SEL_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 2, O>;
pub type PAD_GMAC0_RXC_FUNC_SEL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[doc = "Bits 0:1 - Function selector of GMAC0_RXC: * Function 0: u0_aon_crg_clk_gmac0_rgmii_rx, * Function 1: u0_aon_crg_clk_gmac0_rmii_ref, * Function 2: None, * Function 3: None"]
#[inline(always)]
Expand All @@ -19,10 +19,14 @@ impl W {
#[must_use]
pub fn pad_gmac0_rxc_func_sel(
&mut self,
) -> PAD_GMAC0_RXC_FUNC_SEL_W<AON_IOMUX_CFGSAIF_SYSCFG144_SPEC, 0> {
PAD_GMAC0_RXC_FUNC_SEL_W::new(self)
) -> PAD_GMAC0_RXC_FUNC_SEL_W<AON_IOMUX_CFGSAIF_SYSCFG144_SPEC> {
PAD_GMAC0_RXC_FUNC_SEL_W::new(self, 0)
}
#[doc = "Writes raw bits to the register."]
#[doc = r" Writes raw bits to the register."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
Expand Down
12 changes: 8 additions & 4 deletions jh7110-vf2-12a-pac/src/aon_pinctrl/aon_iomux_cfgsaif_syscfg48.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub type W = crate::W<AON_IOMUX_CFGSAIF_SYSCFG48_SPEC>;
#[doc = "Field `padcfg_pad_testen_pos` reader - Power-on-Start (POS) enabler - 1: Enable active pull down for loss of core power, 0: Active pull-down capability disabled"]
pub type PADCFG_PAD_TESTEN_POS_R = crate::BitReader;
#[doc = "Field `padcfg_pad_testen_pos` writer - Power-on-Start (POS) enabler - 1: Enable active pull down for loss of core power, 0: Active pull-down capability disabled"]
pub type PADCFG_PAD_TESTEN_POS_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
pub type PADCFG_PAD_TESTEN_POS_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[doc = "Bit 0 - Power-on-Start (POS) enabler - 1: Enable active pull down for loss of core power, 0: Active pull-down capability disabled"]
#[inline(always)]
Expand All @@ -19,10 +19,14 @@ impl W {
#[must_use]
pub fn padcfg_pad_testen_pos(
&mut self,
) -> PADCFG_PAD_TESTEN_POS_W<AON_IOMUX_CFGSAIF_SYSCFG48_SPEC, 0> {
PADCFG_PAD_TESTEN_POS_W::new(self)
) -> PADCFG_PAD_TESTEN_POS_W<AON_IOMUX_CFGSAIF_SYSCFG48_SPEC> {
PADCFG_PAD_TESTEN_POS_W::new(self, 0)
}
#[doc = "Writes raw bits to the register."]
#[doc = r" Writes raw bits to the register."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
Expand Down
Loading

0 comments on commit 6397537

Please sign in to comment.