pub type R = crate::R<TOCVrs>;
pub type W = crate::W<TOCVrs>;
pub type TOC_R = crate::FieldReader<u16>;
pub type TOC_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn toc(&self) -> TOC_R {
TOC_R::new((self.bits & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TOCV").field("toc", &self.toc()).finish()
}
}
impl W {
#[inline(always)]
pub fn toc(&mut self) -> TOC_W<TOCVrs> {
TOC_W::new(self, 0)
}
}
pub struct TOCVrs;
impl crate::RegisterSpec for TOCVrs {
type Ux = u32;
}
impl crate::Readable for TOCVrs {}
impl crate::Writable for TOCVrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TOCVrs {
const RESET_VALUE: u32 = 0xffff;
}