pub type R = crate::R<TRISErs>;
pub type W = crate::W<TRISErs>;
pub type TRISE_R = crate::FieldReader;
pub type TRISE_W<'a, REG> = crate::FieldWriter<'a, REG, 6, u8, crate::Safe>;
impl R {
#[inline(always)]
pub fn trise(&self) -> TRISE_R {
TRISE_R::new((self.bits & 0x3f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TRISE")
.field("trise", &self.trise())
.finish()
}
}
impl W {
#[inline(always)]
pub fn trise(&mut self) -> TRISE_W<TRISErs> {
TRISE_W::new(self, 0)
}
}
pub struct TRISErs;
impl crate::RegisterSpec for TRISErs {
type Ux = u16;
}
impl crate::Readable for TRISErs {}
impl crate::Writable for TRISErs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TRISErs {
const RESET_VALUE: u16 = 0x02;
}