pub type R = crate::R<IDMALARrs>;
pub type W = crate::W<IDMALARrs>;
pub type IDMALA_R = crate::FieldReader<u16>;
pub type IDMALA_W<'a, REG> = crate::FieldWriter<'a, REG, 14, u16>;
pub type ABR_R = crate::BitReader;
pub type ABR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ULS_R = crate::BitReader;
pub type ULS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ULA_R = crate::BitReader;
pub type ULA_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn idmala(&self) -> IDMALA_R {
IDMALA_R::new(((self.bits >> 2) & 0x3fff) as u16)
}
#[inline(always)]
pub fn abr(&self) -> ABR_R {
ABR_R::new(((self.bits >> 29) & 1) != 0)
}
#[inline(always)]
pub fn uls(&self) -> ULS_R {
ULS_R::new(((self.bits >> 30) & 1) != 0)
}
#[inline(always)]
pub fn ula(&self) -> ULA_R {
ULA_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IDMALAR")
.field("idmala", &self.idmala())
.field("abr", &self.abr())
.field("uls", &self.uls())
.field("ula", &self.ula())
.finish()
}
}
impl W {
#[inline(always)]
pub fn idmala(&mut self) -> IDMALA_W<IDMALARrs> {
IDMALA_W::new(self, 2)
}
#[inline(always)]
pub fn abr(&mut self) -> ABR_W<IDMALARrs> {
ABR_W::new(self, 29)
}
#[inline(always)]
pub fn uls(&mut self) -> ULS_W<IDMALARrs> {
ULS_W::new(self, 30)
}
#[inline(always)]
pub fn ula(&mut self) -> ULA_W<IDMALARrs> {
ULA_W::new(self, 31)
}
}
pub struct IDMALARrs;
impl crate::RegisterSpec for IDMALARrs {
type Ux = u32;
}
impl crate::Readable for IDMALARrs {}
impl crate::Writable for IDMALARrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IDMALARrs {}