stm32wb_pac/i2c1/pecr.rs
1#[doc = "Reader of register PECR"]
2pub type R = crate::R<u32, super::PECR>;
3#[doc = "Reader of field `PEC`"]
4pub type PEC_R = crate::R<u8, u8>;
5impl R {
6 #[doc = "Bits 0:7 - Packet error checking register"]
7 #[inline(always)]
8 pub fn pec(&self) -> PEC_R {
9 PEC_R::new((self.bits & 0xff) as u8)
10 }
11}