stm32f4_staging/stm32f413/fmpi2c1/
rxdr.rs

1///Register `RXDR` reader
2pub type R = crate::R<RXDRrs>;
3///Field `RXDATA` reader - RXDATA
4pub type RXDATA_R = crate::FieldReader;
5impl R {
6    ///Bits 0:7 - RXDATA
7    #[inline(always)]
8    pub fn rxdata(&self) -> RXDATA_R {
9        RXDATA_R::new((self.bits & 0xff) as u8)
10    }
11}
12impl core::fmt::Debug for R {
13    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
14        f.debug_struct("RXDR")
15            .field("rxdata", &self.rxdata())
16            .finish()
17    }
18}
19/**Receive data register
20
21You can [`read`](crate::Reg::read) this register and get [`rxdr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
22
23See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F413.html#FMPI2C1:RXDR)*/
24pub struct RXDRrs;
25impl crate::RegisterSpec for RXDRrs {
26    type Ux = u32;
27}
28///`read()` method returns [`rxdr::R`](R) reader structure
29impl crate::Readable for RXDRrs {}
30///`reset()` method sets RXDR to value 0
31impl crate::Resettable for RXDRrs {}