efm32pg1b_pac/i2c0/
txdouble.rs1pub type R = crate::R<TXDOUBLErs>;
3pub type W = crate::W<TXDOUBLErs>;
5pub type Txdata0R = crate::FieldReader;
7pub type Txdata0W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9pub type Txdata1R = crate::FieldReader;
11pub type Txdata1W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
13impl R {
14 #[inline(always)]
16 pub fn txdata0(&self) -> Txdata0R {
17 Txdata0R::new((self.bits & 0xff) as u8)
18 }
19 #[inline(always)]
21 pub fn txdata1(&self) -> Txdata1R {
22 Txdata1R::new(((self.bits >> 8) & 0xff) as u8)
23 }
24}
25impl core::fmt::Debug for R {
26 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
27 f.debug_struct("TXDOUBLE")
28 .field("txdata0", &self.txdata0())
29 .field("txdata1", &self.txdata1())
30 .finish()
31 }
32}
33impl W {
34 #[inline(always)]
36 pub fn txdata0(&mut self) -> Txdata0W<'_, TXDOUBLErs> {
37 Txdata0W::new(self, 0)
38 }
39 #[inline(always)]
41 pub fn txdata1(&mut self) -> Txdata1W<'_, TXDOUBLErs> {
42 Txdata1W::new(self, 8)
43 }
44}
45pub struct TXDOUBLErs;
49impl crate::RegisterSpec for TXDOUBLErs {
50 type Ux = u32;
51}
52impl crate::Readable for TXDOUBLErs {}
54impl crate::Writable for TXDOUBLErs {
56 type Safety = crate::Unsafe;
57}
58impl crate::Resettable for TXDOUBLErs {}