esp32p4/i3c_slv/
rdarab.rs

1#[doc = "Register `RDARAB` reader"]
2pub type R = crate::R<RDARAB_SPEC>;
3#[doc = "Field `DATA0` reader - This register allows reading a byte from the bus unless external FIFO is used. A byte should not be read unless there is data waiting, as indicated by the RXPEND bit being set in the STATUS register"]
4pub type DATA0_R = crate::FieldReader;
5impl R {
6    #[doc = "Bits 0:7 - This register allows reading a byte from the bus unless external FIFO is used. A byte should not be read unless there is data waiting, as indicated by the RXPEND bit being set in the STATUS register"]
7    #[inline(always)]
8    pub fn data0(&self) -> DATA0_R {
9        DATA0_R::new((self.bits & 0xff) as u8)
10    }
11}
12#[cfg(feature = "impl-register-debug")]
13impl core::fmt::Debug for R {
14    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15        f.debug_struct("RDARAB")
16            .field("data0", &format_args!("{}", self.data0().bits()))
17            .finish()
18    }
19}
20#[cfg(feature = "impl-register-debug")]
21impl core::fmt::Debug for crate::generic::Reg<RDARAB_SPEC> {
22    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
23        core::fmt::Debug::fmt(&self.read(), f)
24    }
25}
26#[doc = "Read Byte Data (from-bus) register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rdarab::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
27pub struct RDARAB_SPEC;
28impl crate::RegisterSpec for RDARAB_SPEC {
29    type Ux = u32;
30}
31#[doc = "`read()` method returns [`rdarab::R`](R) reader structure"]
32impl crate::Readable for RDARAB_SPEC {}
33#[doc = "`reset()` method sets RDARAB to value 0"]
34impl crate::Resettable for RDARAB_SPEC {
35    const RESET_VALUE: u32 = 0;
36}