stm32f1_staging/stm32f100/cec/
rxd.rs

1///Register `RXD` reader
2pub type R = crate::R<RXDrs>;
3///Field `RXD` reader - Rx data
4pub type RXD_R = crate::FieldReader;
5impl R {
6    ///Bits 0:7 - Rx data
7    #[inline(always)]
8    pub fn rxd(&self) -> RXD_R {
9        RXD_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("RXD").field("rxd", &self.rxd()).finish()
15    }
16}
17/**CEC Rx data register
18
19You can [`read`](crate::Reg::read) this register and get [`rxd::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
20
21See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F100.html#CEC:RXD)*/
22pub struct RXDrs;
23impl crate::RegisterSpec for RXDrs {
24    type Ux = u32;
25}
26///`read()` method returns [`rxd::R`](R) reader structure
27impl crate::Readable for RXDrs {}
28///`reset()` method sets RXD to value 0
29impl crate::Resettable for RXDrs {}