efm32pg1b-pac 0.4.3

Peripheral access API for Silicon Labs EFM32PG1B microcontrollers
Documentation
///Register `TXDOUBLE` reader
pub type R = crate::R<TXDOUBLErs>;
///Register `TXDOUBLE` writer
pub type W = crate::W<TXDOUBLErs>;
///Field `TXDATA0` reader - TX Data
pub type Txdata0R = crate::FieldReader;
///Field `TXDATA0` writer - TX Data
pub type Txdata0W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
///Field `TXDATA1` reader - TX Data
pub type Txdata1R = crate::FieldReader;
///Field `TXDATA1` writer - TX Data
pub type Txdata1W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
    ///Bits 0:7 - TX Data
    #[inline(always)]
    pub fn txdata0(&self) -> Txdata0R {
        Txdata0R::new((self.bits & 0xff) as u8)
    }
    ///Bits 8:15 - TX Data
    #[inline(always)]
    pub fn txdata1(&self) -> Txdata1R {
        Txdata1R::new(((self.bits >> 8) & 0xff) as u8)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("TXDOUBLE")
            .field("txdata0", &self.txdata0())
            .field("txdata1", &self.txdata1())
            .finish()
    }
}
impl W {
    ///Bits 0:7 - TX Data
    #[inline(always)]
    pub fn txdata0(&mut self) -> Txdata0W<'_, TXDOUBLErs> {
        Txdata0W::new(self, 0)
    }
    ///Bits 8:15 - TX Data
    #[inline(always)]
    pub fn txdata1(&mut self) -> Txdata1W<'_, TXDOUBLErs> {
        Txdata1W::new(self, 8)
    }
}
///TX Buffer Double Data Register
///
///You can [`read`](crate::Reg::read) this register and get [`txdouble::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`txdouble::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
pub struct TXDOUBLErs;
impl crate::RegisterSpec for TXDOUBLErs {
    type Ux = u32;
}
///`read()` method returns [`txdouble::R`](R) reader structure
impl crate::Readable for TXDOUBLErs {}
///`write(|w| ..)` method takes [`txdouble::W`](W) writer structure
impl crate::Writable for TXDOUBLErs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets TXDOUBLE to value 0
impl crate::Resettable for TXDOUBLErs {}