#[doc = "Register `DTC` reader"]
pub struct R(crate::R<DTC_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<DTC_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<DTC_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<DTC_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `DTC` writer"]
pub struct W(crate::W<DTC_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<DTC_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl core::ops::DerefMut for W {
#[inline(always)]
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl From<crate::W<DTC_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<DTC_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Dead Time Enable for Channel 1\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DTE1_A {
#[doc = "0: Dead Time for channel 1 is disabled"]
VALUE1 = 0,
#[doc = "1: Dead Time for channel 1 is enabled"]
VALUE2 = 1,
}
impl From<DTE1_A> for bool {
#[inline(always)]
fn from(variant: DTE1_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `DTE1` reader - Dead Time Enable for Channel 1"]
pub struct DTE1_R(crate::FieldReader<bool, DTE1_A>);
impl DTE1_R {
pub(crate) fn new(bits: bool) -> Self {
DTE1_R(crate::FieldReader::new(bits))
}
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> DTE1_A {
match self.bits {
false => DTE1_A::VALUE1,
true => DTE1_A::VALUE2,
}
}
#[doc = "Checks if the value of the field is `VALUE1`"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
**self == DTE1_A::VALUE1
}
#[doc = "Checks if the value of the field is `VALUE2`"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
**self == DTE1_A::VALUE2
}
}
impl core::ops::Deref for DTE1_R {
type Target = crate::FieldReader<bool, DTE1_A>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `DTE1` writer - Dead Time Enable for Channel 1"]
pub struct DTE1_W<'a> {
w: &'a mut W,
}
impl<'a> DTE1_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: DTE1_A) -> &'a mut W {
self.bit(variant.into())
}
#[doc = "Dead Time for channel 1 is disabled"]
#[inline(always)]
pub fn value1(self) -> &'a mut W {
self.variant(DTE1_A::VALUE1)
}
#[doc = "Dead Time for channel 1 is enabled"]
#[inline(always)]
pub fn value2(self) -> &'a mut W {
self.variant(DTE1_A::VALUE2)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01);
self.w
}
}
#[doc = "Dead Time Enable for Channel 2\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DTE2_A {
#[doc = "0: Dead Time for channel 2 is disabled"]
VALUE1 = 0,
#[doc = "1: Dead Time for channel 2 is enabled"]
VALUE2 = 1,
}
impl From<DTE2_A> for bool {
#[inline(always)]
fn from(variant: DTE2_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `DTE2` reader - Dead Time Enable for Channel 2"]
pub struct DTE2_R(crate::FieldReader<bool, DTE2_A>);
impl DTE2_R {
pub(crate) fn new(bits: bool) -> Self {
DTE2_R(crate::FieldReader::new(bits))
}
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> DTE2_A {
match self.bits {
false => DTE2_A::VALUE1,
true => DTE2_A::VALUE2,
}
}
#[doc = "Checks if the value of the field is `VALUE1`"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
**self == DTE2_A::VALUE1
}
#[doc = "Checks if the value of the field is `VALUE2`"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
**self == DTE2_A::VALUE2
}
}
impl core::ops::Deref for DTE2_R {
type Target = crate::FieldReader<bool, DTE2_A>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `DTE2` writer - Dead Time Enable for Channel 2"]
pub struct DTE2_W<'a> {
w: &'a mut W,
}
impl<'a> DTE2_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: DTE2_A) -> &'a mut W {
self.bit(variant.into())
}
#[doc = "Dead Time for channel 2 is disabled"]
#[inline(always)]
pub fn value1(self) -> &'a mut W {
self.variant(DTE2_A::VALUE1)
}
#[doc = "Dead Time for channel 2 is enabled"]
#[inline(always)]
pub fn value2(self) -> &'a mut W {
self.variant(DTE2_A::VALUE2)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1);
self.w
}
}
#[doc = "Dead Time Enable for CC8yST1\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DCEN1_A {
#[doc = "0: Dead Time for CC8yST1 path is disabled"]
VALUE1 = 0,
#[doc = "1: Dead Time for CC8yST1 path is enabled"]
VALUE2 = 1,
}
impl From<DCEN1_A> for bool {
#[inline(always)]
fn from(variant: DCEN1_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `DCEN1` reader - Dead Time Enable for CC8yST1"]
pub struct DCEN1_R(crate::FieldReader<bool, DCEN1_A>);
impl DCEN1_R {
pub(crate) fn new(bits: bool) -> Self {
DCEN1_R(crate::FieldReader::new(bits))
}
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> DCEN1_A {
match self.bits {
false => DCEN1_A::VALUE1,
true => DCEN1_A::VALUE2,
}
}
#[doc = "Checks if the value of the field is `VALUE1`"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
**self == DCEN1_A::VALUE1
}
#[doc = "Checks if the value of the field is `VALUE2`"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
**self == DCEN1_A::VALUE2
}
}
impl core::ops::Deref for DCEN1_R {
type Target = crate::FieldReader<bool, DCEN1_A>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `DCEN1` writer - Dead Time Enable for CC8yST1"]
pub struct DCEN1_W<'a> {
w: &'a mut W,
}
impl<'a> DCEN1_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: DCEN1_A) -> &'a mut W {
self.bit(variant.into())
}
#[doc = "Dead Time for CC8yST1 path is disabled"]
#[inline(always)]
pub fn value1(self) -> &'a mut W {
self.variant(DCEN1_A::VALUE1)
}
#[doc = "Dead Time for CC8yST1 path is enabled"]
#[inline(always)]
pub fn value2(self) -> &'a mut W {
self.variant(DCEN1_A::VALUE2)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2);
self.w
}
}
#[doc = "Dead Time Enable for inverted CC8yST1\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DCEN2_A {
#[doc = "0: Dead Time for inverted CC8yST1 path is disabled"]
VALUE1 = 0,
#[doc = "1: Dead Time for inverted CC8yST1 path is enabled"]
VALUE2 = 1,
}
impl From<DCEN2_A> for bool {
#[inline(always)]
fn from(variant: DCEN2_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `DCEN2` reader - Dead Time Enable for inverted CC8yST1"]
pub struct DCEN2_R(crate::FieldReader<bool, DCEN2_A>);
impl DCEN2_R {
pub(crate) fn new(bits: bool) -> Self {
DCEN2_R(crate::FieldReader::new(bits))
}
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> DCEN2_A {
match self.bits {
false => DCEN2_A::VALUE1,
true => DCEN2_A::VALUE2,
}
}
#[doc = "Checks if the value of the field is `VALUE1`"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
**self == DCEN2_A::VALUE1
}
#[doc = "Checks if the value of the field is `VALUE2`"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
**self == DCEN2_A::VALUE2
}
}
impl core::ops::Deref for DCEN2_R {
type Target = crate::FieldReader<bool, DCEN2_A>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `DCEN2` writer - Dead Time Enable for inverted CC8yST1"]
pub struct DCEN2_W<'a> {
w: &'a mut W,
}
impl<'a> DCEN2_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: DCEN2_A) -> &'a mut W {
self.bit(variant.into())
}
#[doc = "Dead Time for inverted CC8yST1 path is disabled"]
#[inline(always)]
pub fn value1(self) -> &'a mut W {
self.variant(DCEN2_A::VALUE1)
}
#[doc = "Dead Time for inverted CC8yST1 path is enabled"]
#[inline(always)]
pub fn value2(self) -> &'a mut W {
self.variant(DCEN2_A::VALUE2)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3);
self.w
}
}
#[doc = "Dead Time Enable for CC8yST2\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DCEN3_A {
#[doc = "0: Dead Time for CC8yST2 path is disabled"]
VALUE1 = 0,
#[doc = "1: Dead Time for CC8yST2 path is enabled"]
VALUE2 = 1,
}
impl From<DCEN3_A> for bool {
#[inline(always)]
fn from(variant: DCEN3_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `DCEN3` reader - Dead Time Enable for CC8yST2"]
pub struct DCEN3_R(crate::FieldReader<bool, DCEN3_A>);
impl DCEN3_R {
pub(crate) fn new(bits: bool) -> Self {
DCEN3_R(crate::FieldReader::new(bits))
}
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> DCEN3_A {
match self.bits {
false => DCEN3_A::VALUE1,
true => DCEN3_A::VALUE2,
}
}
#[doc = "Checks if the value of the field is `VALUE1`"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
**self == DCEN3_A::VALUE1
}
#[doc = "Checks if the value of the field is `VALUE2`"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
**self == DCEN3_A::VALUE2
}
}
impl core::ops::Deref for DCEN3_R {
type Target = crate::FieldReader<bool, DCEN3_A>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `DCEN3` writer - Dead Time Enable for CC8yST2"]
pub struct DCEN3_W<'a> {
w: &'a mut W,
}
impl<'a> DCEN3_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: DCEN3_A) -> &'a mut W {
self.bit(variant.into())
}
#[doc = "Dead Time for CC8yST2 path is disabled"]
#[inline(always)]
pub fn value1(self) -> &'a mut W {
self.variant(DCEN3_A::VALUE1)
}
#[doc = "Dead Time for CC8yST2 path is enabled"]
#[inline(always)]
pub fn value2(self) -> &'a mut W {
self.variant(DCEN3_A::VALUE2)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4);
self.w
}
}
#[doc = "Dead Time Enable for inverted CC8yST2\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DCEN4_A {
#[doc = "0: Dead Time for inverted CC8yST2 path is disabled"]
VALUE1 = 0,
#[doc = "1: Dead Time for inverted CC8yST2 path is enabled"]
VALUE2 = 1,
}
impl From<DCEN4_A> for bool {
#[inline(always)]
fn from(variant: DCEN4_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `DCEN4` reader - Dead Time Enable for inverted CC8yST2"]
pub struct DCEN4_R(crate::FieldReader<bool, DCEN4_A>);
impl DCEN4_R {
pub(crate) fn new(bits: bool) -> Self {
DCEN4_R(crate::FieldReader::new(bits))
}
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> DCEN4_A {
match self.bits {
false => DCEN4_A::VALUE1,
true => DCEN4_A::VALUE2,
}
}
#[doc = "Checks if the value of the field is `VALUE1`"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
**self == DCEN4_A::VALUE1
}
#[doc = "Checks if the value of the field is `VALUE2`"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
**self == DCEN4_A::VALUE2
}
}
impl core::ops::Deref for DCEN4_R {
type Target = crate::FieldReader<bool, DCEN4_A>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `DCEN4` writer - Dead Time Enable for inverted CC8yST2"]
pub struct DCEN4_W<'a> {
w: &'a mut W,
}
impl<'a> DCEN4_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: DCEN4_A) -> &'a mut W {
self.bit(variant.into())
}
#[doc = "Dead Time for inverted CC8yST2 path is disabled"]
#[inline(always)]
pub fn value1(self) -> &'a mut W {
self.variant(DCEN4_A::VALUE1)
}
#[doc = "Dead Time for inverted CC8yST2 path is enabled"]
#[inline(always)]
pub fn value2(self) -> &'a mut W {
self.variant(DCEN4_A::VALUE2)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5);
self.w
}
}
#[doc = "Dead Time clock control\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum DTCC_A {
#[doc = "0: ftclk"]
VALUE1 = 0,
#[doc = "1: ftclk/2"]
VALUE2 = 1,
#[doc = "2: ftclk/4"]
VALUE3 = 2,
#[doc = "3: ftclk/8"]
VALUE4 = 3,
}
impl From<DTCC_A> for u8 {
#[inline(always)]
fn from(variant: DTCC_A) -> Self {
variant as _
}
}
#[doc = "Field `DTCC` reader - Dead Time clock control"]
pub struct DTCC_R(crate::FieldReader<u8, DTCC_A>);
impl DTCC_R {
pub(crate) fn new(bits: u8) -> Self {
DTCC_R(crate::FieldReader::new(bits))
}
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> DTCC_A {
match self.bits {
0 => DTCC_A::VALUE1,
1 => DTCC_A::VALUE2,
2 => DTCC_A::VALUE3,
3 => DTCC_A::VALUE4,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `VALUE1`"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
**self == DTCC_A::VALUE1
}
#[doc = "Checks if the value of the field is `VALUE2`"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
**self == DTCC_A::VALUE2
}
#[doc = "Checks if the value of the field is `VALUE3`"]
#[inline(always)]
pub fn is_value3(&self) -> bool {
**self == DTCC_A::VALUE3
}
#[doc = "Checks if the value of the field is `VALUE4`"]
#[inline(always)]
pub fn is_value4(&self) -> bool {
**self == DTCC_A::VALUE4
}
}
impl core::ops::Deref for DTCC_R {
type Target = crate::FieldReader<u8, DTCC_A>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `DTCC` writer - Dead Time clock control"]
pub struct DTCC_W<'a> {
w: &'a mut W,
}
impl<'a> DTCC_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: DTCC_A) -> &'a mut W {
self.bits(variant.into())
}
#[doc = "ftclk"]
#[inline(always)]
pub fn value1(self) -> &'a mut W {
self.variant(DTCC_A::VALUE1)
}
#[doc = "ftclk/2"]
#[inline(always)]
pub fn value2(self) -> &'a mut W {
self.variant(DTCC_A::VALUE2)
}
#[doc = "ftclk/4"]
#[inline(always)]
pub fn value3(self) -> &'a mut W {
self.variant(DTCC_A::VALUE3)
}
#[doc = "ftclk/8"]
#[inline(always)]
pub fn value4(self) -> &'a mut W {
self.variant(DTCC_A::VALUE4)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x03 << 6)) | ((value as u32 & 0x03) << 6);
self.w
}
}
impl R {
#[doc = "Bit 0 - Dead Time Enable for Channel 1"]
#[inline(always)]
pub fn dte1(&self) -> DTE1_R {
DTE1_R::new((self.bits & 0x01) != 0)
}
#[doc = "Bit 1 - Dead Time Enable for Channel 2"]
#[inline(always)]
pub fn dte2(&self) -> DTE2_R {
DTE2_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 2 - Dead Time Enable for CC8yST1"]
#[inline(always)]
pub fn dcen1(&self) -> DCEN1_R {
DCEN1_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 3 - Dead Time Enable for inverted CC8yST1"]
#[inline(always)]
pub fn dcen2(&self) -> DCEN2_R {
DCEN2_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 4 - Dead Time Enable for CC8yST2"]
#[inline(always)]
pub fn dcen3(&self) -> DCEN3_R {
DCEN3_R::new(((self.bits >> 4) & 0x01) != 0)
}
#[doc = "Bit 5 - Dead Time Enable for inverted CC8yST2"]
#[inline(always)]
pub fn dcen4(&self) -> DCEN4_R {
DCEN4_R::new(((self.bits >> 5) & 0x01) != 0)
}
#[doc = "Bits 6:7 - Dead Time clock control"]
#[inline(always)]
pub fn dtcc(&self) -> DTCC_R {
DTCC_R::new(((self.bits >> 6) & 0x03) as u8)
}
}
impl W {
#[doc = "Bit 0 - Dead Time Enable for Channel 1"]
#[inline(always)]
pub fn dte1(&mut self) -> DTE1_W {
DTE1_W { w: self }
}
#[doc = "Bit 1 - Dead Time Enable for Channel 2"]
#[inline(always)]
pub fn dte2(&mut self) -> DTE2_W {
DTE2_W { w: self }
}
#[doc = "Bit 2 - Dead Time Enable for CC8yST1"]
#[inline(always)]
pub fn dcen1(&mut self) -> DCEN1_W {
DCEN1_W { w: self }
}
#[doc = "Bit 3 - Dead Time Enable for inverted CC8yST1"]
#[inline(always)]
pub fn dcen2(&mut self) -> DCEN2_W {
DCEN2_W { w: self }
}
#[doc = "Bit 4 - Dead Time Enable for CC8yST2"]
#[inline(always)]
pub fn dcen3(&mut self) -> DCEN3_W {
DCEN3_W { w: self }
}
#[doc = "Bit 5 - Dead Time Enable for inverted CC8yST2"]
#[inline(always)]
pub fn dcen4(&mut self) -> DCEN4_W {
DCEN4_W { w: self }
}
#[doc = "Bits 6:7 - Dead Time clock control"]
#[inline(always)]
pub fn dtcc(&mut self) -> DTCC_W {
DTCC_W { w: self }
}
#[doc = "Writes raw bits to the register."]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.0.bits(bits);
self
}
}
#[doc = "Dead Time Control\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [dtc](index.html) module"]
pub struct DTC_SPEC;
impl crate::RegisterSpec for DTC_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [dtc::R](R) reader structure"]
impl crate::Readable for DTC_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [dtc::W](W) writer structure"]
impl crate::Writable for DTC_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets DTC to value 0"]
impl crate::Resettable for DTC_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}