atsame54p 0.14.2

Peripheral access API for ATSAME54P microcontrollers (generated using svd2rust)
Documentation
#[doc = "Register `UR` reader"]
pub type R = crate::R<UrSpec>;
#[doc = "Register `UR` writer"]
pub type W = crate::W<UrSpec>;
#[doc = "Field `MII` reader - MII Mode"]
pub type MiiR = crate::BitReader;
#[doc = "Field `MII` writer - MII Mode"]
pub type MiiW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 0 - MII Mode"]
    #[inline(always)]
    pub fn mii(&self) -> MiiR {
        MiiR::new((self.bits & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - MII Mode"]
    #[inline(always)]
    #[must_use]
    pub fn mii(&mut self) -> MiiW<UrSpec> {
        MiiW::new(self, 0)
    }
}
#[doc = "User Register\n\nYou can [`read`](crate::Reg::read) this register and get [`ur::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ur::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct UrSpec;
impl crate::RegisterSpec for UrSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`ur::R`](R) reader structure"]
impl crate::Readable for UrSpec {}
#[doc = "`write(|w| ..)` method takes [`ur::W`](W) writer structure"]
impl crate::Writable for UrSpec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets UR to value 0"]
impl crate::Resettable for UrSpec {
    const RESET_VALUE: u32 = 0;
}