stm32f1_staging/stm32f100/cec/
txd.rs

1///Register `TXD` reader
2pub type R = crate::R<TXDrs>;
3///Register `TXD` writer
4pub type W = crate::W<TXDrs>;
5///Field `TXD` reader - Tx Data register
6pub type TXD_R = crate::FieldReader;
7///Field `TXD` writer - Tx Data register
8pub type TXD_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9impl R {
10    ///Bits 0:7 - Tx Data register
11    #[inline(always)]
12    pub fn txd(&self) -> TXD_R {
13        TXD_R::new((self.bits & 0xff) as u8)
14    }
15}
16impl core::fmt::Debug for R {
17    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
18        f.debug_struct("TXD").field("txd", &self.txd()).finish()
19    }
20}
21impl W {
22    ///Bits 0:7 - Tx Data register
23    #[inline(always)]
24    pub fn txd(&mut self) -> TXD_W<TXDrs> {
25        TXD_W::new(self, 0)
26    }
27}
28/**CEC Tx data register
29
30You can [`read`](crate::Reg::read) this register and get [`txd::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`txd::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
31
32See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F100.html#CEC:TXD)*/
33pub struct TXDrs;
34impl crate::RegisterSpec for TXDrs {
35    type Ux = u32;
36}
37///`read()` method returns [`txd::R`](R) reader structure
38impl crate::Readable for TXDrs {}
39///`write(|w| ..)` method takes [`txd::W`](W) writer structure
40impl crate::Writable for TXDrs {
41    type Safety = crate::Unsafe;
42}
43///`reset()` method sets TXD to value 0
44impl crate::Resettable for TXDrs {}