1#[doc = "Register `SOF_RD` reader"]
2pub type R = crate::R<SOF_RD_SPEC>;
3#[doc = "Field `COUNT` reader - "]
4pub type COUNT_R = crate::FieldReader<u16>;
5impl R {
6#[doc = "Bits 0:10"]
7 #[inline(always)]
8pub fn count(&self) -> COUNT_R {
9 COUNT_R::new((self.bits & 0x07ff) as u16)
10 }
11}
12#[doc = "Read the last SOF (Start of Frame) frame number seen. In device mode the last SOF received from the host. In host mode the last SOF sent by the host.
1314You can [`read`](crate::generic::Reg::read) this register and get [`sof_rd::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
15pub struct SOF_RD_SPEC;
16impl crate::RegisterSpec for SOF_RD_SPEC {
17type Ux = u32;
18}
19#[doc = "`read()` method returns [`sof_rd::R`](R) reader structure"]
20impl crate::Readable for SOF_RD_SPEC {}
21#[doc = "`reset()` method sets SOF_RD to value 0"]
22impl crate::Resettable for SOF_RD_SPEC {
23const RESET_VALUE: u32 = 0;
24}