#[doc = "Register `APB_ADDR` reader"]
pub type R = crate::R<APB_ADDR_SPEC>;
#[doc = "Register `APB_ADDR` writer"]
pub type W = crate::W<APB_ADDR_SPEC>;
#[doc = "Field `APB_START_ADDR` reader - x"]
pub type APB_START_ADDR_R = crate::FieldReader<u32>;
#[doc = "Field `APB_START_ADDR` writer - x"]
pub type APB_START_ADDR_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
impl R {
#[doc = "Bits 0:31 - x"]
#[inline(always)]
pub fn apb_start_addr(&self) -> APB_START_ADDR_R {
APB_START_ADDR_R::new(self.bits)
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("APB_ADDR")
.field("apb_start_addr", &self.apb_start_addr())
.finish()
}
}
impl W {
#[doc = "Bits 0:31 - x"]
#[inline(always)]
pub fn apb_start_addr(&mut self) -> APB_START_ADDR_W<'_, APB_ADDR_SPEC> {
APB_START_ADDR_W::new(self, 0)
}
}
#[doc = "x\n\nYou can [`read`](crate::Reg::read) this register and get [`apb_addr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apb_addr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct APB_ADDR_SPEC;
impl crate::RegisterSpec for APB_ADDR_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`apb_addr::R`](R) reader structure"]
impl crate::Readable for APB_ADDR_SPEC {}
#[doc = "`write(|w| ..)` method takes [`apb_addr::W`](W) writer structure"]
impl crate::Writable for APB_ADDR_SPEC {
type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets APB_ADDR to value 0"]
impl crate::Resettable for APB_ADDR_SPEC {}