pub type R = crate::R<OPAMP1_HSOTRrs>;
pub type W = crate::W<OPAMP1_HSOTRrs>;
pub type TRIMLPOFFSETN_R = crate::FieldReader;
pub type TRIMLPOFFSETN_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
pub type TRIMLPOFFSETP_R = crate::FieldReader;
pub type TRIMLPOFFSETP_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
impl R {
#[inline(always)]
pub fn trimlpoffsetn(&self) -> TRIMLPOFFSETN_R {
TRIMLPOFFSETN_R::new((self.bits & 0x1f) as u8)
}
#[inline(always)]
pub fn trimlpoffsetp(&self) -> TRIMLPOFFSETP_R {
TRIMLPOFFSETP_R::new(((self.bits >> 8) & 0x1f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OPAMP1_HSOTR")
.field("trimlpoffsetn", &self.trimlpoffsetn())
.field("trimlpoffsetp", &self.trimlpoffsetp())
.finish()
}
}
impl W {
#[inline(always)]
pub fn trimlpoffsetn(&mut self) -> TRIMLPOFFSETN_W<OPAMP1_HSOTRrs> {
TRIMLPOFFSETN_W::new(self, 0)
}
#[inline(always)]
pub fn trimlpoffsetp(&mut self) -> TRIMLPOFFSETP_W<OPAMP1_HSOTRrs> {
TRIMLPOFFSETP_W::new(self, 8)
}
}
pub struct OPAMP1_HSOTRrs;
impl crate::RegisterSpec for OPAMP1_HSOTRrs {
type Ux = u32;
}
impl crate::Readable for OPAMP1_HSOTRrs {}
impl crate::Writable for OPAMP1_HSOTRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for OPAMP1_HSOTRrs {}