#![allow(clippy::identity_op)]
#![allow(clippy::module_inception)]
#![allow(clippy::derivable_impls)]
#[allow(unused_imports)]
use crate::common::sealed;
#[allow(unused_imports)]
use crate::common::*;
#[doc = r"PWM Delay Generation Circuit"]
unsafe impl ::core::marker::Send for super::Pdg {}
unsafe impl ::core::marker::Sync for super::Pdg {}
impl super::Pdg {
#[allow(unused)]
#[inline(always)]
pub(crate) const fn _svd2pac_as_ptr(&self) -> *mut u8 {
self.ptr
}
#[doc = "PWM Output Delay Control Register"]
#[inline(always)]
pub const fn gtdlycr(
&self,
) -> &'static crate::common::Reg<self::Gtdlycr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Gtdlycr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0usize),
)
}
}
#[doc = "PWM Output Delay Control Register 2"]
#[inline(always)]
pub const fn gtdlycr2(
&self,
) -> &'static crate::common::Reg<self::Gtdlycr2_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Gtdlycr2_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(2usize),
)
}
}
#[doc = "GTIOCnA Rising Output Delay Register"]
#[inline(always)]
pub const fn gtdlyra(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Gtdlyra_SPEC, crate::common::RW>,
4,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x18usize))
}
}
#[inline(always)]
pub const fn gtdlyr0a(
&self,
) -> &'static crate::common::Reg<self::Gtdlyra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Gtdlyra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x18usize),
)
}
}
#[inline(always)]
pub const fn gtdlyr1a(
&self,
) -> &'static crate::common::Reg<self::Gtdlyra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Gtdlyra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x1cusize),
)
}
}
#[inline(always)]
pub const fn gtdlyr2a(
&self,
) -> &'static crate::common::Reg<self::Gtdlyra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Gtdlyra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x20usize),
)
}
}
#[inline(always)]
pub const fn gtdlyr3a(
&self,
) -> &'static crate::common::Reg<self::Gtdlyra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Gtdlyra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x24usize),
)
}
}
#[doc = "GTIOCnB Rising Output Delay Register"]
#[inline(always)]
pub const fn gtdlyrb(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Gtdlyrb_SPEC, crate::common::RW>,
4,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x1ausize))
}
}
#[inline(always)]
pub const fn gtdlyr0b(
&self,
) -> &'static crate::common::Reg<self::Gtdlyrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Gtdlyrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x1ausize),
)
}
}
#[inline(always)]
pub const fn gtdlyr1b(
&self,
) -> &'static crate::common::Reg<self::Gtdlyrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Gtdlyrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x1eusize),
)
}
}
#[inline(always)]
pub const fn gtdlyr2b(
&self,
) -> &'static crate::common::Reg<self::Gtdlyrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Gtdlyrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x22usize),
)
}
}
#[inline(always)]
pub const fn gtdlyr3b(
&self,
) -> &'static crate::common::Reg<self::Gtdlyrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Gtdlyrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x26usize),
)
}
}
#[doc = "GTIOCnA Falling Output Delay Register"]
#[inline(always)]
pub const fn gtdlyfa(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Gtdlyfa_SPEC, crate::common::RW>,
4,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x28usize))
}
}
#[inline(always)]
pub const fn gtdlyf0a(
&self,
) -> &'static crate::common::Reg<self::Gtdlyfa_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Gtdlyfa_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x28usize),
)
}
}
#[inline(always)]
pub const fn gtdlyf1a(
&self,
) -> &'static crate::common::Reg<self::Gtdlyfa_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Gtdlyfa_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x2cusize),
)
}
}
#[inline(always)]
pub const fn gtdlyf2a(
&self,
) -> &'static crate::common::Reg<self::Gtdlyfa_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Gtdlyfa_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x30usize),
)
}
}
#[inline(always)]
pub const fn gtdlyf3a(
&self,
) -> &'static crate::common::Reg<self::Gtdlyfa_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Gtdlyfa_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x34usize),
)
}
}
#[doc = "GTIOCnB Falling Output Delay Register"]
#[inline(always)]
pub const fn gtdlyfb(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Gtdlyfb_SPEC, crate::common::RW>,
4,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x2ausize))
}
}
#[inline(always)]
pub const fn gtdlyf0b(
&self,
) -> &'static crate::common::Reg<self::Gtdlyfb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Gtdlyfb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x2ausize),
)
}
}
#[inline(always)]
pub const fn gtdlyf1b(
&self,
) -> &'static crate::common::Reg<self::Gtdlyfb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Gtdlyfb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x2eusize),
)
}
}
#[inline(always)]
pub const fn gtdlyf2b(
&self,
) -> &'static crate::common::Reg<self::Gtdlyfb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Gtdlyfb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x32usize),
)
}
}
#[inline(always)]
pub const fn gtdlyf3b(
&self,
) -> &'static crate::common::Reg<self::Gtdlyfb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Gtdlyfb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x36usize),
)
}
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Gtdlycr_SPEC;
impl crate::sealed::RegSpec for Gtdlycr_SPEC {
type DataType = u16;
}
#[doc = "PWM Output Delay Control Register"]
pub type Gtdlycr = crate::RegValueT<Gtdlycr_SPEC>;
impl Gtdlycr {
#[doc = "DLL Operation Enable"]
#[inline(always)]
pub fn dllen(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
gtdlycr::Dllen,
gtdlycr::Dllen,
Gtdlycr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
gtdlycr::Dllen,
gtdlycr::Dllen,
Gtdlycr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "PWM Delay Generation Circuit Reset"]
#[inline(always)]
pub fn dlyrst(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
gtdlycr::Dlyrst,
gtdlycr::Dlyrst,
Gtdlycr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
gtdlycr::Dlyrst,
gtdlycr::Dlyrst,
Gtdlycr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT core clock Frequency Range"]
#[inline(always)]
pub fn frange(
self,
) -> crate::common::RegisterField<
8,
0x3,
1,
0,
gtdlycr::Frange,
gtdlycr::Frange,
Gtdlycr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x3,
1,
0,
gtdlycr::Frange,
gtdlycr::Frange,
Gtdlycr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Gtdlycr {
#[inline(always)]
fn default() -> Gtdlycr {
<crate::RegValueT<Gtdlycr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod gtdlycr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dllen_SPEC;
pub type Dllen = crate::EnumBitfieldStruct<u8, Dllen_SPEC>;
impl Dllen {
#[doc = "DLL operation disabled"]
pub const _0: Self = Self::new(0);
#[doc = "DLL operation enabled"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dlyrst_SPEC;
pub type Dlyrst = crate::EnumBitfieldStruct<u8, Dlyrst_SPEC>;
impl Dlyrst {
#[doc = "Normal operation"]
pub const _0: Self = Self::new(0);
#[doc = "Reset"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Frange_SPEC;
pub type Frange = crate::EnumBitfieldStruct<u8, Frange_SPEC>;
impl Frange {
#[doc = "GPT core clock frequency is 80 MHz to 160 MHz"]
pub const _00: Self = Self::new(0);
#[doc = "GPT core clock frequency is 155 MHz to 300 MHz"]
pub const _01: Self = Self::new(1);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Gtdlycr2_SPEC;
impl crate::sealed::RegSpec for Gtdlycr2_SPEC {
type DataType = u16;
}
#[doc = "PWM Output Delay Control Register 2"]
pub type Gtdlycr2 = crate::RegValueT<Gtdlycr2_SPEC>;
impl Gtdlycr2 {
#[doc = "PWM Delay Generation Circuit bypass for channel 0"]
#[inline(always)]
pub fn dlybs0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
gtdlycr2::Dlybs0,
gtdlycr2::Dlybs0,
Gtdlycr2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
gtdlycr2::Dlybs0,
gtdlycr2::Dlybs0,
Gtdlycr2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "PWM Delay Generation Circuit bypass for channel 1"]
#[inline(always)]
pub fn dlybs1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
gtdlycr2::Dlybs1,
gtdlycr2::Dlybs1,
Gtdlycr2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
gtdlycr2::Dlybs1,
gtdlycr2::Dlybs1,
Gtdlycr2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "PWM Delay Generation Circuit bypass for channel 2"]
#[inline(always)]
pub fn dlybs2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
gtdlycr2::Dlybs2,
gtdlycr2::Dlybs2,
Gtdlycr2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
gtdlycr2::Dlybs2,
gtdlycr2::Dlybs2,
Gtdlycr2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "PWM Delay Generation Circuit bypass for channel 3"]
#[inline(always)]
pub fn dlybs3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
gtdlycr2::Dlybs3,
gtdlycr2::Dlybs3,
Gtdlycr2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
gtdlycr2::Dlybs3,
gtdlycr2::Dlybs3,
Gtdlycr2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "PWM Delay Generation Circuit enable for channel 0"]
#[inline(always)]
pub fn dlyen0(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
gtdlycr2::Dlyen0,
gtdlycr2::Dlyen0,
Gtdlycr2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
gtdlycr2::Dlyen0,
gtdlycr2::Dlyen0,
Gtdlycr2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "PWM Delay Generation Circuit enable for channel 1"]
#[inline(always)]
pub fn dlyen1(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
gtdlycr2::Dlyen1,
gtdlycr2::Dlyen1,
Gtdlycr2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
gtdlycr2::Dlyen1,
gtdlycr2::Dlyen1,
Gtdlycr2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "PWM Delay Generation Circuit enable for channel 2"]
#[inline(always)]
pub fn dlyen2(
self,
) -> crate::common::RegisterField<
10,
0x1,
1,
0,
gtdlycr2::Dlyen2,
gtdlycr2::Dlyen2,
Gtdlycr2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
10,
0x1,
1,
0,
gtdlycr2::Dlyen2,
gtdlycr2::Dlyen2,
Gtdlycr2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "PWM Delay Generation Circuit enable for channel 3"]
#[inline(always)]
pub fn dlyen3(
self,
) -> crate::common::RegisterField<
11,
0x1,
1,
0,
gtdlycr2::Dlyen3,
gtdlycr2::Dlyen3,
Gtdlycr2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
11,
0x1,
1,
0,
gtdlycr2::Dlyen3,
gtdlycr2::Dlyen3,
Gtdlycr2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Gtdlycr2 {
#[inline(always)]
fn default() -> Gtdlycr2 {
<crate::RegValueT<Gtdlycr2_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod gtdlycr2 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dlybs0_SPEC;
pub type Dlybs0 = crate::EnumBitfieldStruct<u8, Dlybs0_SPEC>;
impl Dlybs0 {
#[doc = "Delay generation circuit of channel 0 bypassed"]
pub const _0: Self = Self::new(0);
#[doc = "Delay generation circuit of channel 0 not bypassed"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dlybs1_SPEC;
pub type Dlybs1 = crate::EnumBitfieldStruct<u8, Dlybs1_SPEC>;
impl Dlybs1 {
#[doc = "Delay generation circuit of channel 1 bypassed"]
pub const _0: Self = Self::new(0);
#[doc = "Delay generation circuit of channel 1 not bypassed"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dlybs2_SPEC;
pub type Dlybs2 = crate::EnumBitfieldStruct<u8, Dlybs2_SPEC>;
impl Dlybs2 {
#[doc = "Delay generation circuit of channel 2 bypassed"]
pub const _0: Self = Self::new(0);
#[doc = "Delay generation circuit of channel 2 not bypassed"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dlybs3_SPEC;
pub type Dlybs3 = crate::EnumBitfieldStruct<u8, Dlybs3_SPEC>;
impl Dlybs3 {
#[doc = "Delay generation circuit of channel 3 bypassed"]
pub const _0: Self = Self::new(0);
#[doc = "Delay generation circuit of channel 3 not bypassed"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dlyen0_SPEC;
pub type Dlyen0 = crate::EnumBitfieldStruct<u8, Dlyen0_SPEC>;
impl Dlyen0 {
#[doc = "Delay generation circuit of channel 0 enabled"]
pub const _0: Self = Self::new(0);
#[doc = "Delay generation circuit of channel 0 disabled"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dlyen1_SPEC;
pub type Dlyen1 = crate::EnumBitfieldStruct<u8, Dlyen1_SPEC>;
impl Dlyen1 {
#[doc = "Delay generation circuit of channel 1 enabled"]
pub const _0: Self = Self::new(0);
#[doc = "Delay generation circuit of channel 1 disabled"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dlyen2_SPEC;
pub type Dlyen2 = crate::EnumBitfieldStruct<u8, Dlyen2_SPEC>;
impl Dlyen2 {
#[doc = "Delay generation circuit of channel 2 enabled"]
pub const _0: Self = Self::new(0);
#[doc = "Delay generation circuit of channel 2 disabled"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dlyen3_SPEC;
pub type Dlyen3 = crate::EnumBitfieldStruct<u8, Dlyen3_SPEC>;
impl Dlyen3 {
#[doc = "Delay generation circuit of channel 3 enabled"]
pub const _0: Self = Self::new(0);
#[doc = "Delay generation circuit of channel 3 disabled"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Gtdlyra_SPEC;
impl crate::sealed::RegSpec for Gtdlyra_SPEC {
type DataType = u16;
}
#[doc = "GTIOCnA Rising Output Delay Register"]
pub type Gtdlyra = crate::RegValueT<Gtdlyra_SPEC>;
impl Gtdlyra {
#[doc = "GTIOCnA Output Rising Edge Delay Setting"]
#[inline(always)]
pub fn dly(
self,
) -> crate::common::RegisterField<0, 0x7f, 1, 0, u8, u8, Gtdlyra_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0x7f,1,0,u8,u8,Gtdlyra_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Gtdlyra {
#[inline(always)]
fn default() -> Gtdlyra {
<crate::RegValueT<Gtdlyra_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Gtdlyrb_SPEC;
impl crate::sealed::RegSpec for Gtdlyrb_SPEC {
type DataType = u16;
}
#[doc = "GTIOCnB Rising Output Delay Register"]
pub type Gtdlyrb = crate::RegValueT<Gtdlyrb_SPEC>;
impl Gtdlyrb {
#[doc = "GTIOCnB Output Rising Edge Delay Setting"]
#[inline(always)]
pub fn dly(
self,
) -> crate::common::RegisterField<0, 0x7f, 1, 0, u8, u8, Gtdlyrb_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0x7f,1,0,u8,u8,Gtdlyrb_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Gtdlyrb {
#[inline(always)]
fn default() -> Gtdlyrb {
<crate::RegValueT<Gtdlyrb_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Gtdlyfa_SPEC;
impl crate::sealed::RegSpec for Gtdlyfa_SPEC {
type DataType = u16;
}
#[doc = "GTIOCnA Falling Output Delay Register"]
pub type Gtdlyfa = crate::RegValueT<Gtdlyfa_SPEC>;
impl Gtdlyfa {
#[doc = "GTIOCnA Output Falling Edge Delay Setting"]
#[inline(always)]
pub fn dly(
self,
) -> crate::common::RegisterField<0, 0x7f, 1, 0, u8, u8, Gtdlyfa_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0x7f,1,0,u8,u8,Gtdlyfa_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Gtdlyfa {
#[inline(always)]
fn default() -> Gtdlyfa {
<crate::RegValueT<Gtdlyfa_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Gtdlyfb_SPEC;
impl crate::sealed::RegSpec for Gtdlyfb_SPEC {
type DataType = u16;
}
#[doc = "GTIOCnB Falling Output Delay Register"]
pub type Gtdlyfb = crate::RegValueT<Gtdlyfb_SPEC>;
impl Gtdlyfb {
#[doc = "GTIOCnB Output Falling Edge Delay Setting"]
#[inline(always)]
pub fn dly(
self,
) -> crate::common::RegisterField<0, 0x7f, 1, 0, u8, u8, Gtdlyfb_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0x7f,1,0,u8,u8,Gtdlyfb_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Gtdlyfb {
#[inline(always)]
fn default() -> Gtdlyfb {
<crate::RegValueT<Gtdlyfb_SPEC> as RegisterValue<_>>::new(0)
}
}