1#[doc = "Register `THR` writer"]
2pub type W = crate::W<ThrSpec>;
3#[doc = "Field `TXCHR` writer - Character to be Transmitted"]
4pub type TxchrW<'a, REG> = crate::FieldWriter<'a, REG, 9, u16>;
5#[doc = "Field `TXSYNH` writer - Sync Field to be Transmitted"]
6pub type TxsynhW<'a, REG> = crate::BitWriter<'a, REG>;
7impl W {
8 #[doc = "Bits 0:8 - Character to be Transmitted"]
9 #[inline(always)]
10 #[must_use]
11 pub fn txchr(&mut self) -> TxchrW<ThrSpec> {
12 TxchrW::new(self, 0)
13 }
14 #[doc = "Bit 15 - Sync Field to be Transmitted"]
15 #[inline(always)]
16 #[must_use]
17 pub fn txsynh(&mut self) -> TxsynhW<ThrSpec> {
18 TxsynhW::new(self, 15)
19 }
20}
21#[doc = "Transmitter Holding Register\n\nYou can [`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)."]
22pub struct ThrSpec;
23impl crate::RegisterSpec for ThrSpec {
24 type Ux = u32;
25}
26#[doc = "`write(|w| ..)` method takes [`thr::W`](W) writer structure"]
27impl crate::Writable for ThrSpec {
28 type Safety = crate::Unsafe;
29 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
30 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
31}