stm32u5/stm32u545/spi1/
txdr.rs

1///Register `TXDR` writer
2pub type W = crate::W<TXDRrs>;
3///Field `TXDR` writer - Transmit data register
4pub type TXDR_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32, crate::Safe>;
5impl core::fmt::Debug for crate::generic::Reg<TXDRrs> {
6    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
7        write!(f, "(not readable)")
8    }
9}
10impl W {
11    ///Bits 0:31 - Transmit data register
12    #[inline(always)]
13    pub fn txdr(&mut self) -> TXDR_W<TXDRrs> {
14        TXDR_W::new(self, 0)
15    }
16}
17/**Transmit Data Register
18
19You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`txdr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
20
21See register [structure](https://stm32-rs.github.io/stm32-rs/STM32U545.html#SPI1:TXDR)*/
22pub struct TXDRrs;
23impl crate::RegisterSpec for TXDRrs {
24    type Ux = u32;
25}
26///`write(|w| ..)` method takes [`txdr::W`](W) writer structure
27impl crate::Writable for TXDRrs {
28    type Safety = crate::Safe;
29}
30///`reset()` method sets TXDR to value 0
31impl crate::Resettable for TXDRrs {}