xmc4500 0.5.0

XMC peripheral library for XMC4500 generated from SVD
Documentation
#[doc = "Register `TRANSMIT_DESCRIPTOR_LIST_ADDRESS` reader"]
pub struct R(crate::R<TRANSMIT_DESCRIPTOR_LIST_ADDRESS_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<TRANSMIT_DESCRIPTOR_LIST_ADDRESS_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<TRANSMIT_DESCRIPTOR_LIST_ADDRESS_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<TRANSMIT_DESCRIPTOR_LIST_ADDRESS_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `TRANSMIT_DESCRIPTOR_LIST_ADDRESS` writer"]
pub struct W(crate::W<TRANSMIT_DESCRIPTOR_LIST_ADDRESS_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<TRANSMIT_DESCRIPTOR_LIST_ADDRESS_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<TRANSMIT_DESCRIPTOR_LIST_ADDRESS_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<TRANSMIT_DESCRIPTOR_LIST_ADDRESS_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `TDESLA_32bit` reader - Start of Transmit List"]
pub struct TDESLA_32BIT_R(crate::FieldReader<u32, u32>);
impl TDESLA_32BIT_R {
    pub(crate) fn new(bits: u32) -> Self {
        TDESLA_32BIT_R(crate::FieldReader::new(bits))
    }
}
impl core::ops::Deref for TDESLA_32BIT_R {
    type Target = crate::FieldReader<u32, u32>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `TDESLA_32bit` writer - Start of Transmit List"]
pub struct TDESLA_32BIT_W<'a> {
    w: &'a mut W,
}
impl<'a> TDESLA_32BIT_W<'a> {
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub unsafe fn bits(self, value: u32) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x3fff_ffff << 2)) | ((value as u32 & 0x3fff_ffff) << 2);
        self.w
    }
}
impl R {
    #[doc = "Bits 2:31 - Start of Transmit List"]
    #[inline(always)]
    pub fn tdesla_32bit(&self) -> TDESLA_32BIT_R {
        TDESLA_32BIT_R::new(((self.bits >> 2) & 0x3fff_ffff) as u32)
    }
}
impl W {
    #[doc = "Bits 2:31 - Start of Transmit List"]
    #[inline(always)]
    pub fn tdesla_32bit(&mut self) -> TDESLA_32BIT_W {
        TDESLA_32BIT_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 = "Transmit descripter Address Register\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 [transmit_descriptor_list_address](index.html) module"]
pub struct TRANSMIT_DESCRIPTOR_LIST_ADDRESS_SPEC;
impl crate::RegisterSpec for TRANSMIT_DESCRIPTOR_LIST_ADDRESS_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [transmit_descriptor_list_address::R](R) reader structure"]
impl crate::Readable for TRANSMIT_DESCRIPTOR_LIST_ADDRESS_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [transmit_descriptor_list_address::W](W) writer structure"]
impl crate::Writable for TRANSMIT_DESCRIPTOR_LIST_ADDRESS_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets TRANSMIT_DESCRIPTOR_LIST_ADDRESS to value 0"]
impl crate::Resettable for TRANSMIT_DESCRIPTOR_LIST_ADDRESS_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}