cyt4dn_b 0.0.1

Peripheral access crate for cyt4dn_b T2G family
Documentation
#[doc = "Register `TASKBUFFERADDRESS3` reader"]
pub struct R(crate::R<TASKBUFFERADDRESS3_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<TASKBUFFERADDRESS3_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<TASKBUFFERADDRESS3_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<TASKBUFFERADDRESS3_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `TASKBUFFERADDRESS3` writer"]
pub struct W(crate::W<TASKBUFFERADDRESS3_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<TASKBUFFERADDRESS3_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<TASKBUFFERADDRESS3_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<TASKBUFFERADDRESS3_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `ADDRESSTB3` reader - Task buffer 3 base address in multiple of 64-bit words."]
pub type ADDRESSTB3_R = crate::FieldReader<u32, u32>;
#[doc = "Field `ADDRESSTB3` writer - Task buffer 3 base address in multiple of 64-bit words."]
pub type ADDRESSTB3_W<'a, const O: u8> =
    crate::FieldWriter<'a, u32, TASKBUFFERADDRESS3_SPEC, u32, u32, 29, O>;
impl R {
    #[doc = "Bits 3:31 - Task buffer 3 base address in multiple of 64-bit words."]
    #[inline(always)]
    pub fn addresstb3(&self) -> ADDRESSTB3_R {
        ADDRESSTB3_R::new((self.bits >> 3) & 0x1fff_ffff)
    }
}
impl W {
    #[doc = "Bits 3:31 - Task buffer 3 base address in multiple of 64-bit words."]
    #[inline(always)]
    #[must_use]
    pub fn addresstb3(&mut self) -> ADDRESSTB3_W<3> {
        ADDRESSTB3_W::new(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 = "Task buffer 3 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 [taskbufferaddress3](index.html) module"]
pub struct TASKBUFFERADDRESS3_SPEC;
impl crate::RegisterSpec for TASKBUFFERADDRESS3_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [taskbufferaddress3::R](R) reader structure"]
impl crate::Readable for TASKBUFFERADDRESS3_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [taskbufferaddress3::W](W) writer structure"]
impl crate::Writable for TASKBUFFERADDRESS3_SPEC {
    type Writer = W;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets TASKBUFFERADDRESS3 to value 0"]
impl crate::Resettable for TASKBUFFERADDRESS3_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}