///Register `TXDR` reader
pub type R = crate::R<TXDRrs>;
///Register `TXDR` writer
pub type W = crate::W<TXDRrs>;
///Field `TXDATA` reader - Data byte to transmit
pub type TXDATA_R = crate::FieldReader;
///Field `TXDATA` writer - Data byte to transmit
pub type TXDATA_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
    ///Bits 0:7 - Data byte to transmit
    #[inline(always)]
    pub fn txdata(&self) -> TXDATA_R {
        TXDATA_R::new((self.bits & 0xff) as u8)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("TXDR").field("txdata", &self.txdata()).finish()
    }
}
impl W {
    ///Bits 0:7 - Data byte to transmit
    #[inline(always)]
    pub fn txdata(&mut self) -> TXDATA_W<TXDRrs> {
        TXDATA_W::new(self, 0)
    }
}
/**UCPD Tx data register

You can [`read`](crate::Reg::read) this register and get [`txdr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`txdr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct TXDRrs;
impl crate::RegisterSpec for TXDRrs {
    type Ux = u32;
}
///`read()` method returns [`txdr::R`](R) reader structure
impl crate::Readable for TXDRrs {}
///`write(|w| ..)` method takes [`txdr::W`](W) writer structure
impl crate::Writable for TXDRrs {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
///`reset()` method sets TXDR to value 0
impl crate::Resettable for TXDRrs {
    const RESET_VALUE: u32 = 0;
}
