pub type R = crate::R<BOOT7_CURRrs>;
pub type W = crate::W<BOOT7_CURRrs>;
pub type BOOT_CM7_ADD0_R = crate::FieldReader<u16>;
pub type BOOT_CM7_ADD0_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
pub type BOOT_CM7_ADD1_R = crate::FieldReader<u16>;
pub type BOOT_CM7_ADD1_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn boot_cm7_add0(&self) -> BOOT_CM7_ADD0_R {
BOOT_CM7_ADD0_R::new((self.bits & 0xffff) as u16)
}
#[inline(always)]
pub fn boot_cm7_add1(&self) -> BOOT_CM7_ADD1_R {
BOOT_CM7_ADD1_R::new(((self.bits >> 16) & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("BOOT7_CURR")
.field("boot_cm7_add1", &self.boot_cm7_add1())
.field("boot_cm7_add0", &self.boot_cm7_add0())
.finish()
}
}
impl W {
#[inline(always)]
pub fn boot_cm7_add0(&mut self) -> BOOT_CM7_ADD0_W<BOOT7_CURRrs> {
BOOT_CM7_ADD0_W::new(self, 0)
}
#[inline(always)]
pub fn boot_cm7_add1(&mut self) -> BOOT_CM7_ADD1_W<BOOT7_CURRrs> {
BOOT_CM7_ADD1_W::new(self, 16)
}
}
pub struct BOOT7_CURRrs;
impl crate::RegisterSpec for BOOT7_CURRrs {
type Ux = u32;
}
impl crate::Readable for BOOT7_CURRrs {}
impl crate::Writable for BOOT7_CURRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for BOOT7_CURRrs {}