1#[doc = "Register `THR` writer"]
2pub type W = crate::W<ThrSpec>;
3#[doc = "Field `TXDATA` writer - Master or Slave Transmit Holding Data"]
4pub type TxdataW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
5impl W {
6 #[doc = "Bits 0:7 - Master or Slave Transmit Holding Data"]
7 #[inline(always)]
8 #[must_use]
9 pub fn txdata(&mut self) -> TxdataW<ThrSpec> {
10 TxdataW::new(self, 0)
11 }
12}
13#[doc = "Transmit Holding Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`thr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
14pub struct ThrSpec;
15impl crate::RegisterSpec for ThrSpec {
16 type Ux = u32;
17}
18#[doc = "`write(|w| ..)` method takes [`thr::W`](W) writer structure"]
19impl crate::Writable for ThrSpec {
20 type Safety = crate::Unsafe;
21 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
22 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
23}
24#[doc = "`reset()` method sets THR to value 0"]
25impl crate::Resettable for ThrSpec {
26 const RESET_VALUE: u32 = 0;
27}