moondancer_pac/generated/uart1/
rx_avail.rs1#[doc = "Register `rx_avail` reader"]
2pub type R = crate::R<RX_AVAIL_SPEC>;
3#[doc = "Register `rx_avail` writer"]
4pub type W = crate::W<RX_AVAIL_SPEC>;
5#[doc = "Field `rxe` reader - rxe field"]
6pub type RXE_R = crate::BitReader;
7impl R {
8 #[doc = "Bit 0 - rxe field"]
9 #[inline(always)]
10 pub fn rxe(&self) -> RXE_R {
11 RXE_R::new((self.bits & 1) != 0)
12 }
13}
14impl W {}
15#[doc = "is '1' when 1-byte receive buffer is full; reset by a read from rx_data\n\nYou can [`read`](crate::Reg::read) this register and get [`rx_avail::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rx_avail::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
16pub struct RX_AVAIL_SPEC;
17impl crate::RegisterSpec for RX_AVAIL_SPEC {
18 type Ux = u8;
19}
20#[doc = "`read()` method returns [`rx_avail::R`](R) reader structure"]
21impl crate::Readable for RX_AVAIL_SPEC {}
22#[doc = "`write(|w| ..)` method takes [`rx_avail::W`](W) writer structure"]
23impl crate::Writable for RX_AVAIL_SPEC {
24 type Safety = crate::Unsafe;
25 const ZERO_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
26 const ONE_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
27}
28#[doc = "`reset()` method sets rx_avail to value 0"]
29impl crate::Resettable for RX_AVAIL_SPEC {
30 const RESET_VALUE: u8 = 0;
31}