esp32p4/axi_dma/
in_reset_avail_ch.rs

1#[doc = "Register `IN_RESET_AVAIL_CH%s` reader"]
2pub type R = crate::R<IN_RESET_AVAIL_CH_SPEC>;
3#[doc = "Field `IN_RESET_AVAIL` reader - rx chan0 reset valid reg."]
4pub type IN_RESET_AVAIL_R = crate::BitReader;
5impl R {
6    #[doc = "Bit 0 - rx chan0 reset valid reg."]
7    #[inline(always)]
8    pub fn in_reset_avail(&self) -> IN_RESET_AVAIL_R {
9        IN_RESET_AVAIL_R::new((self.bits & 1) != 0)
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("IN_RESET_AVAIL_CH")
16            .field(
17                "in_reset_avail",
18                &format_args!("{}", self.in_reset_avail().bit()),
19            )
20            .finish()
21    }
22}
23#[cfg(feature = "impl-register-debug")]
24impl core::fmt::Debug for crate::generic::Reg<IN_RESET_AVAIL_CH_SPEC> {
25    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
26        core::fmt::Debug::fmt(&self.read(), f)
27    }
28}
29#[doc = "The rx channel 0 reset valid_flag register.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`in_reset_avail_ch::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
30pub struct IN_RESET_AVAIL_CH_SPEC;
31impl crate::RegisterSpec for IN_RESET_AVAIL_CH_SPEC {
32    type Ux = u32;
33}
34#[doc = "`read()` method returns [`in_reset_avail_ch::R`](R) reader structure"]
35impl crate::Readable for IN_RESET_AVAIL_CH_SPEC {}
36#[doc = "`reset()` method sets IN_RESET_AVAIL_CH%s to value 0x01"]
37impl crate::Resettable for IN_RESET_AVAIL_CH_SPEC {
38    const RESET_VALUE: u32 = 0x01;
39}