moondancer_pac/generated/uart0/
tx_data.rs1#[doc = "Register `tx_data` reader"]
2pub type R = crate::R<TX_DATA_SPEC>;
3#[doc = "Register `tx_data` writer"]
4pub type W = crate::W<TX_DATA_SPEC>;
5#[doc = "Field `data` writer - data field"]
6pub type DATA_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
7impl W {
8 #[doc = "Bits 0:7 - data field"]
9 #[inline(always)]
10 pub fn data(&mut self) -> DATA_W<TX_DATA_SPEC> {
11 DATA_W::new(self, 0)
12 }
13}
14#[doc = "valid to write to when tx_rdy is high, will trigger a transmit\n\nYou can [`read`](crate::Reg::read) this register and get [`tx_data::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tx_data::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
15pub struct TX_DATA_SPEC;
16impl crate::RegisterSpec for TX_DATA_SPEC {
17 type Ux = u8;
18}
19#[doc = "`read()` method returns [`tx_data::R`](R) reader structure"]
20impl crate::Readable for TX_DATA_SPEC {}
21#[doc = "`write(|w| ..)` method takes [`tx_data::W`](W) writer structure"]
22impl crate::Writable for TX_DATA_SPEC {
23 type Safety = crate::Unsafe;
24 const ZERO_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
25 const ONE_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
26}
27#[doc = "`reset()` method sets tx_data to value 0"]
28impl crate::Resettable for TX_DATA_SPEC {
29 const RESET_VALUE: u8 = 0;
30}