stm32f1_staging/stm32f102/spi1/
rxcrcr.rs

1///Register `RXCRCR` reader
2pub type R = crate::R<RXCRCRrs>;
3///Field `RxCRC` reader - Rx CRC register
4pub type RX_CRC_R = crate::FieldReader<u16>;
5impl R {
6    ///Bits 0:15 - Rx CRC register
7    #[inline(always)]
8    pub fn rx_crc(&self) -> RX_CRC_R {
9        RX_CRC_R::new(self.bits)
10    }
11}
12impl core::fmt::Debug for R {
13    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
14        f.debug_struct("RXCRCR").field("rx_crc", &self.rx_crc()).finish()
15    }
16}
17/**RX CRC register
18
19You can [`read`](crate::Reg::read) this register and get [`rxcrcr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
20
21See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F102.html#SPI1:RXCRCR)*/
22pub struct RXCRCRrs;
23impl crate::RegisterSpec for RXCRCRrs {
24    type Ux = u16;
25}
26///`read()` method returns [`rxcrcr::R`](R) reader structure
27impl crate::Readable for RXCRCRrs {}
28///`reset()` method sets RXCRCR to value 0
29impl crate::Resettable for RXCRCRrs {}