#[doc = "Register `EXT_ADDR6` reader"]
pub type R = crate::R<EXT_ADDR6_SPEC>;
#[doc = "Register `EXT_ADDR6` writer"]
pub type W = crate::W<EXT_ADDR6_SPEC>;
#[doc = "Field `EXT_ADDR6` reader - EXT_ADDR\\[55:48\\]
The IEEE extended address used during destination address filtering"]
pub type EXT_ADDR6_R = crate::FieldReader;
#[doc = "Field `EXT_ADDR6` writer - EXT_ADDR\\[55:48\\]
The IEEE extended address used during destination address filtering"]
pub type EXT_ADDR6_W<'a, REG, const O: u8> = crate::FieldWriter<'a, REG, 8, O>;
impl R {
#[doc = "Bits 0:7 - EXT_ADDR\\[55:48\\]
The IEEE extended address used during destination address filtering"]
#[inline(always)]
pub fn ext_addr6(&self) -> EXT_ADDR6_R {
EXT_ADDR6_R::new((self.bits & 0xff) as u8)
}
}
impl W {
#[doc = "Bits 0:7 - EXT_ADDR\\[55:48\\]
The IEEE extended address used during destination address filtering"]
#[inline(always)]
#[must_use]
pub fn ext_addr6(&mut self) -> EXT_ADDR6_W<EXT_ADDR6_SPEC, 0> {
EXT_ADDR6_W::new(self)
}
#[doc = "Writes raw bits to the register."]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
self
}
}
#[doc = "Local address information This register is stored in RAM; the reset value is undefined.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ext_addr6::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ext_addr6::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EXT_ADDR6_SPEC;
impl crate::RegisterSpec for EXT_ADDR6_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`ext_addr6::R`](R) reader structure"]
impl crate::Readable for EXT_ADDR6_SPEC {}
#[doc = "`write(|w| ..)` method takes [`ext_addr6::W`](W) writer structure"]
impl crate::Writable for EXT_ADDR6_SPEC {
const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets EXT_ADDR6 to value 0"]
impl crate::Resettable for EXT_ADDR6_SPEC {
const RESET_VALUE: Self::Ux = 0;
}