pub type R = crate::R<BIASCONFrs>;
pub type W = crate::W<BIASCONFrs>;
pub type Nadutyem01R = crate::BitReader;
pub type Nadutyem01W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Lpem01R = crate::BitReader;
pub type Lpem01W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Gmcem23R = crate::BitReader;
pub type Gmcem23W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Uadutyem23R = crate::BitReader;
pub type Uadutyem23W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Nadutyem23R = crate::BitReader;
pub type Nadutyem23W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Lpem23R = crate::BitReader;
pub type Lpem23W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn nadutyem01(&self) -> Nadutyem01R {
Nadutyem01R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn lpem01(&self) -> Lpem01R {
Lpem01R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn gmcem23(&self) -> Gmcem23R {
Gmcem23R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn uadutyem23(&self) -> Uadutyem23R {
Uadutyem23R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn nadutyem23(&self) -> Nadutyem23R {
Nadutyem23R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn lpem23(&self) -> Lpem23R {
Lpem23R::new(((self.bits >> 7) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("BIASCONF")
.field("nadutyem01", &self.nadutyem01())
.field("lpem01", &self.lpem01())
.field("gmcem23", &self.gmcem23())
.field("uadutyem23", &self.uadutyem23())
.field("nadutyem23", &self.nadutyem23())
.field("lpem23", &self.lpem23())
.finish()
}
}
impl W {
#[inline(always)]
pub fn nadutyem01(&mut self) -> Nadutyem01W<'_, BIASCONFrs> {
Nadutyem01W::new(self, 2)
}
#[inline(always)]
pub fn lpem01(&mut self) -> Lpem01W<'_, BIASCONFrs> {
Lpem01W::new(self, 3)
}
#[inline(always)]
pub fn gmcem23(&mut self) -> Gmcem23W<'_, BIASCONFrs> {
Gmcem23W::new(self, 4)
}
#[inline(always)]
pub fn uadutyem23(&mut self) -> Uadutyem23W<'_, BIASCONFrs> {
Uadutyem23W::new(self, 5)
}
#[inline(always)]
pub fn nadutyem23(&mut self) -> Nadutyem23W<'_, BIASCONFrs> {
Nadutyem23W::new(self, 6)
}
#[inline(always)]
pub fn lpem23(&mut self) -> Lpem23W<'_, BIASCONFrs> {
Lpem23W::new(self, 7)
}
}
pub struct BIASCONFrs;
impl crate::RegisterSpec for BIASCONFrs {
type Ux = u32;
}
impl crate::Readable for BIASCONFrs {}
impl crate::Writable for BIASCONFrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for BIASCONFrs {
const RESET_VALUE: u32 = 0xf8;
}