pub type R = crate::R<T0VALR1rs>;
pub type TS1_FMT0_R = crate::FieldReader<u16>;
pub type TS1_T0_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn ts1_fmt0(&self) -> TS1_FMT0_R {
TS1_FMT0_R::new((self.bits & 0xffff) as u16)
}
#[inline(always)]
pub fn ts1_t0(&self) -> TS1_T0_R {
TS1_T0_R::new(((self.bits >> 16) & 3) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("T0VALR1")
.field("ts1_fmt0", &self.ts1_fmt0())
.field("ts1_t0", &self.ts1_t0())
.finish()
}
}
pub struct T0VALR1rs;
impl crate::RegisterSpec for T0VALR1rs {
type Ux = u32;
}
impl crate::Readable for T0VALR1rs {}
impl crate::Resettable for T0VALR1rs {}