pub type R = crate::R<SHSRrs>;
pub type W = crate::W<SHSRrs>;
pub type TSAMPLE_R = crate::FieldReader<u16>;
pub type TSAMPLE_W<'a, REG> = crate::FieldWriter<'a, REG, 10, u16, crate::Safe>;
impl R {
#[inline(always)]
pub fn tsample(&self) -> TSAMPLE_R {
TSAMPLE_R::new((self.bits & 0x03ff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SHSR").field("tsample", &self.tsample()).finish()
}
}
impl W {
#[inline(always)]
pub fn tsample(&mut self) -> TSAMPLE_W<SHSRrs> {
TSAMPLE_W::new(self, 0)
}
}
pub struct SHSRrs;
impl crate::RegisterSpec for SHSRrs {
type Ux = u32;
}
impl crate::Readable for SHSRrs {}
impl crate::Writable for SHSRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for SHSRrs {}