pub type R = crate::R<OR1rs>;
pub type W = crate::W<OR1rs>;
pub type TI1_RMP_R = crate::BitReader;
pub type TI1_RMP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ENCODER_MODE_R = crate::FieldReader;
pub type ENCODER_MODE_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[inline(always)]
pub fn ti1_rmp(&self) -> TI1_RMP_R {
TI1_RMP_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn encoder_mode(&self) -> ENCODER_MODE_R {
ENCODER_MODE_R::new(((self.bits >> 1) & 3) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OR1")
.field("ti1_rmp", &self.ti1_rmp())
.field("encoder_mode", &self.encoder_mode())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ti1_rmp(&mut self) -> TI1_RMP_W<OR1rs> {
TI1_RMP_W::new(self, 0)
}
#[inline(always)]
pub fn encoder_mode(&mut self) -> ENCODER_MODE_W<OR1rs> {
ENCODER_MODE_W::new(self, 1)
}
}
pub struct OR1rs;
impl crate::RegisterSpec for OR1rs {
type Ux = u32;
}
impl crate::Readable for OR1rs {}
impl crate::Writable for OR1rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for OR1rs {}