1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#[doc = "Reader of register RMON_R_PACKETS"]
pub type R = crate::R<u32, super::RMON_R_PACKETS>;
#[doc = "Reader of field `COUNT`"]
pub type COUNT_R = crate::R<u16, u16>;
impl R {
    #[doc = "Bits 0:15 - Number of packets received"]
    #[inline(always)]
    pub fn count(&self) -> COUNT_R {
        COUNT_R::new((self.bits & 0xffff) as u16)
    }
}