stm32f1_staging/stm32f102/spi2/
txcrcr.rs

1///Register `TXCRCR` reader
2pub type R = crate::R<TXCRCRrs>;
3///Field `TxCRC` reader - Tx CRC register
4pub type TX_CRC_R = crate::FieldReader<u16>;
5impl R {
6    ///Bits 0:15 - Tx CRC register
7    #[inline(always)]
8    pub fn tx_crc(&self) -> TX_CRC_R {
9        TX_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("TXCRCR").field("tx_crc", &self.tx_crc()).finish()
15    }
16}
17/**TX CRC register
18
19You can [`read`](crate::Reg::read) this register and get [`txcrcr::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#SPI2:TXCRCR)*/
22pub struct TXCRCRrs;
23impl crate::RegisterSpec for TXCRCRrs {
24    type Ux = u16;
25}
26///`read()` method returns [`txcrcr::R`](R) reader structure
27impl crate::Readable for TXCRCRrs {}
28///`reset()` method sets TXCRCR to value 0
29impl crate::Resettable for TXCRCRrs {}