esp32p4/mipi_dsi_host/
cmd_pkt_status.rs1#[doc = "Register `CMD_PKT_STATUS` reader"]
2pub type R = crate::R<CMD_PKT_STATUS_SPEC>;
3#[doc = "Field `GEN_CMD_EMPTY` reader - NA"]
4pub type GEN_CMD_EMPTY_R = crate::BitReader;
5#[doc = "Field `GEN_CMD_FULL` reader - NA"]
6pub type GEN_CMD_FULL_R = crate::BitReader;
7#[doc = "Field `GEN_PLD_W_EMPTY` reader - NA"]
8pub type GEN_PLD_W_EMPTY_R = crate::BitReader;
9#[doc = "Field `GEN_PLD_W_FULL` reader - NA"]
10pub type GEN_PLD_W_FULL_R = crate::BitReader;
11#[doc = "Field `GEN_PLD_R_EMPTY` reader - NA"]
12pub type GEN_PLD_R_EMPTY_R = crate::BitReader;
13#[doc = "Field `GEN_PLD_R_FULL` reader - NA"]
14pub type GEN_PLD_R_FULL_R = crate::BitReader;
15#[doc = "Field `GEN_RD_CMD_BUSY` reader - NA"]
16pub type GEN_RD_CMD_BUSY_R = crate::BitReader;
17#[doc = "Field `GEN_BUFF_CMD_EMPTY` reader - NA"]
18pub type GEN_BUFF_CMD_EMPTY_R = crate::BitReader;
19#[doc = "Field `GEN_BUFF_CMD_FULL` reader - NA"]
20pub type GEN_BUFF_CMD_FULL_R = crate::BitReader;
21#[doc = "Field `GEN_BUFF_PLD_EMPTY` reader - NA"]
22pub type GEN_BUFF_PLD_EMPTY_R = crate::BitReader;
23#[doc = "Field `GEN_BUFF_PLD_FULL` reader - NA"]
24pub type GEN_BUFF_PLD_FULL_R = crate::BitReader;
25impl R {
26 #[doc = "Bit 0 - NA"]
27 #[inline(always)]
28 pub fn gen_cmd_empty(&self) -> GEN_CMD_EMPTY_R {
29 GEN_CMD_EMPTY_R::new((self.bits & 1) != 0)
30 }
31 #[doc = "Bit 1 - NA"]
32 #[inline(always)]
33 pub fn gen_cmd_full(&self) -> GEN_CMD_FULL_R {
34 GEN_CMD_FULL_R::new(((self.bits >> 1) & 1) != 0)
35 }
36 #[doc = "Bit 2 - NA"]
37 #[inline(always)]
38 pub fn gen_pld_w_empty(&self) -> GEN_PLD_W_EMPTY_R {
39 GEN_PLD_W_EMPTY_R::new(((self.bits >> 2) & 1) != 0)
40 }
41 #[doc = "Bit 3 - NA"]
42 #[inline(always)]
43 pub fn gen_pld_w_full(&self) -> GEN_PLD_W_FULL_R {
44 GEN_PLD_W_FULL_R::new(((self.bits >> 3) & 1) != 0)
45 }
46 #[doc = "Bit 4 - NA"]
47 #[inline(always)]
48 pub fn gen_pld_r_empty(&self) -> GEN_PLD_R_EMPTY_R {
49 GEN_PLD_R_EMPTY_R::new(((self.bits >> 4) & 1) != 0)
50 }
51 #[doc = "Bit 5 - NA"]
52 #[inline(always)]
53 pub fn gen_pld_r_full(&self) -> GEN_PLD_R_FULL_R {
54 GEN_PLD_R_FULL_R::new(((self.bits >> 5) & 1) != 0)
55 }
56 #[doc = "Bit 6 - NA"]
57 #[inline(always)]
58 pub fn gen_rd_cmd_busy(&self) -> GEN_RD_CMD_BUSY_R {
59 GEN_RD_CMD_BUSY_R::new(((self.bits >> 6) & 1) != 0)
60 }
61 #[doc = "Bit 16 - NA"]
62 #[inline(always)]
63 pub fn gen_buff_cmd_empty(&self) -> GEN_BUFF_CMD_EMPTY_R {
64 GEN_BUFF_CMD_EMPTY_R::new(((self.bits >> 16) & 1) != 0)
65 }
66 #[doc = "Bit 17 - NA"]
67 #[inline(always)]
68 pub fn gen_buff_cmd_full(&self) -> GEN_BUFF_CMD_FULL_R {
69 GEN_BUFF_CMD_FULL_R::new(((self.bits >> 17) & 1) != 0)
70 }
71 #[doc = "Bit 18 - NA"]
72 #[inline(always)]
73 pub fn gen_buff_pld_empty(&self) -> GEN_BUFF_PLD_EMPTY_R {
74 GEN_BUFF_PLD_EMPTY_R::new(((self.bits >> 18) & 1) != 0)
75 }
76 #[doc = "Bit 19 - NA"]
77 #[inline(always)]
78 pub fn gen_buff_pld_full(&self) -> GEN_BUFF_PLD_FULL_R {
79 GEN_BUFF_PLD_FULL_R::new(((self.bits >> 19) & 1) != 0)
80 }
81}
82#[cfg(feature = "impl-register-debug")]
83impl core::fmt::Debug for R {
84 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
85 f.debug_struct("CMD_PKT_STATUS")
86 .field(
87 "gen_cmd_empty",
88 &format_args!("{}", self.gen_cmd_empty().bit()),
89 )
90 .field(
91 "gen_cmd_full",
92 &format_args!("{}", self.gen_cmd_full().bit()),
93 )
94 .field(
95 "gen_pld_w_empty",
96 &format_args!("{}", self.gen_pld_w_empty().bit()),
97 )
98 .field(
99 "gen_pld_w_full",
100 &format_args!("{}", self.gen_pld_w_full().bit()),
101 )
102 .field(
103 "gen_pld_r_empty",
104 &format_args!("{}", self.gen_pld_r_empty().bit()),
105 )
106 .field(
107 "gen_pld_r_full",
108 &format_args!("{}", self.gen_pld_r_full().bit()),
109 )
110 .field(
111 "gen_rd_cmd_busy",
112 &format_args!("{}", self.gen_rd_cmd_busy().bit()),
113 )
114 .field(
115 "gen_buff_cmd_empty",
116 &format_args!("{}", self.gen_buff_cmd_empty().bit()),
117 )
118 .field(
119 "gen_buff_cmd_full",
120 &format_args!("{}", self.gen_buff_cmd_full().bit()),
121 )
122 .field(
123 "gen_buff_pld_empty",
124 &format_args!("{}", self.gen_buff_pld_empty().bit()),
125 )
126 .field(
127 "gen_buff_pld_full",
128 &format_args!("{}", self.gen_buff_pld_full().bit()),
129 )
130 .finish()
131 }
132}
133#[cfg(feature = "impl-register-debug")]
134impl core::fmt::Debug for crate::generic::Reg<CMD_PKT_STATUS_SPEC> {
135 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
136 core::fmt::Debug::fmt(&self.read(), f)
137 }
138}
139#[doc = "NA\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmd_pkt_status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
140pub struct CMD_PKT_STATUS_SPEC;
141impl crate::RegisterSpec for CMD_PKT_STATUS_SPEC {
142 type Ux = u32;
143}
144#[doc = "`read()` method returns [`cmd_pkt_status::R`](R) reader structure"]
145impl crate::Readable for CMD_PKT_STATUS_SPEC {}
146#[doc = "`reset()` method sets CMD_PKT_STATUS to value 0x0005_0015"]
147impl crate::Resettable for CMD_PKT_STATUS_SPEC {
148 const RESET_VALUE: u32 = 0x0005_0015;
149}