esp32c6 0.23.0

Peripheral access crate for the ESP32-C6
Documentation
#[doc = "Register `SLC0RX_LINK` reader"]
pub type R = crate::R<SLC0RX_LINK_SPEC>;
#[doc = "Register `SLC0RX_LINK` writer"]
pub type W = crate::W<SLC0RX_LINK_SPEC>;
#[doc = "Field `SDIO_SLC0_RXLINK_STOP` reader - Configures whether to stop SLC0 RX linked list operation."]
pub type SDIO_SLC0_RXLINK_STOP_R = crate::BitReader;
#[doc = "Field `SDIO_SLC0_RXLINK_STOP` writer - Configures whether to stop SLC0 RX linked list operation."]
pub type SDIO_SLC0_RXLINK_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SDIO_SLC0_RXLINK_START` reader - Configures whether to start SLC0 RX linked list operation from the address indicated by SDIO_SLC0_RXLINK_ADDR."]
pub type SDIO_SLC0_RXLINK_START_R = crate::BitReader;
#[doc = "Field `SDIO_SLC0_RXLINK_START` writer - Configures whether to start SLC0 RX linked list operation from the address indicated by SDIO_SLC0_RXLINK_ADDR."]
pub type SDIO_SLC0_RXLINK_START_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SDIO_SLC0_RXLINK_RESTART` reader - Configures whether to restart and continue SLC0 RX linked list operation."]
pub type SDIO_SLC0_RXLINK_RESTART_R = crate::BitReader;
#[doc = "Field `SDIO_SLC0_RXLINK_RESTART` writer - Configures whether to restart and continue SLC0 RX linked list operation."]
pub type SDIO_SLC0_RXLINK_RESTART_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SDIO_SLC0_RXLINK_PARK` reader - Represents SLC0 RX linked list FSM state."]
pub type SDIO_SLC0_RXLINK_PARK_R = crate::BitReader;
#[doc = "Field `SDIO_SLC0_RXLINK_PARK` writer - Represents SLC0 RX linked list FSM state."]
pub type SDIO_SLC0_RXLINK_PARK_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 28 - Configures whether to stop SLC0 RX linked list operation."]
    #[inline(always)]
    pub fn sdio_slc0_rxlink_stop(&self) -> SDIO_SLC0_RXLINK_STOP_R {
        SDIO_SLC0_RXLINK_STOP_R::new(((self.bits >> 28) & 1) != 0)
    }
    #[doc = "Bit 29 - Configures whether to start SLC0 RX linked list operation from the address indicated by SDIO_SLC0_RXLINK_ADDR."]
    #[inline(always)]
    pub fn sdio_slc0_rxlink_start(&self) -> SDIO_SLC0_RXLINK_START_R {
        SDIO_SLC0_RXLINK_START_R::new(((self.bits >> 29) & 1) != 0)
    }
    #[doc = "Bit 30 - Configures whether to restart and continue SLC0 RX linked list operation."]
    #[inline(always)]
    pub fn sdio_slc0_rxlink_restart(&self) -> SDIO_SLC0_RXLINK_RESTART_R {
        SDIO_SLC0_RXLINK_RESTART_R::new(((self.bits >> 30) & 1) != 0)
    }
    #[doc = "Bit 31 - Represents SLC0 RX linked list FSM state."]
    #[inline(always)]
    pub fn sdio_slc0_rxlink_park(&self) -> SDIO_SLC0_RXLINK_PARK_R {
        SDIO_SLC0_RXLINK_PARK_R::new(((self.bits >> 31) & 1) != 0)
    }
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("SLC0RX_LINK")
            .field("sdio_slc0_rxlink_stop", &self.sdio_slc0_rxlink_stop())
            .field("sdio_slc0_rxlink_start", &self.sdio_slc0_rxlink_start())
            .field("sdio_slc0_rxlink_restart", &self.sdio_slc0_rxlink_restart())
            .field("sdio_slc0_rxlink_park", &self.sdio_slc0_rxlink_park())
            .finish()
    }
}
impl W {
    #[doc = "Bit 28 - Configures whether to stop SLC0 RX linked list operation."]
    #[inline(always)]
    pub fn sdio_slc0_rxlink_stop(&mut self) -> SDIO_SLC0_RXLINK_STOP_W<'_, SLC0RX_LINK_SPEC> {
        SDIO_SLC0_RXLINK_STOP_W::new(self, 28)
    }
    #[doc = "Bit 29 - Configures whether to start SLC0 RX linked list operation from the address indicated by SDIO_SLC0_RXLINK_ADDR."]
    #[inline(always)]
    pub fn sdio_slc0_rxlink_start(&mut self) -> SDIO_SLC0_RXLINK_START_W<'_, SLC0RX_LINK_SPEC> {
        SDIO_SLC0_RXLINK_START_W::new(self, 29)
    }
    #[doc = "Bit 30 - Configures whether to restart and continue SLC0 RX linked list operation."]
    #[inline(always)]
    pub fn sdio_slc0_rxlink_restart(&mut self) -> SDIO_SLC0_RXLINK_RESTART_W<'_, SLC0RX_LINK_SPEC> {
        SDIO_SLC0_RXLINK_RESTART_W::new(self, 30)
    }
    #[doc = "Bit 31 - Represents SLC0 RX linked list FSM state."]
    #[inline(always)]
    pub fn sdio_slc0_rxlink_park(&mut self) -> SDIO_SLC0_RXLINK_PARK_W<'_, SLC0RX_LINK_SPEC> {
        SDIO_SLC0_RXLINK_PARK_W::new(self, 31)
    }
}
#[doc = "SLC0 RX linked list configuration\n\nYou can [`read`](crate::Reg::read) this register and get [`slc0rx_link::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`slc0rx_link::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SLC0RX_LINK_SPEC;
impl crate::RegisterSpec for SLC0RX_LINK_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`slc0rx_link::R`](R) reader structure"]
impl crate::Readable for SLC0RX_LINK_SPEC {}
#[doc = "`write(|w| ..)` method takes [`slc0rx_link::W`](W) writer structure"]
impl crate::Writable for SLC0RX_LINK_SPEC {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets SLC0RX_LINK to value 0x8000_0000"]
impl crate::Resettable for SLC0RX_LINK_SPEC {
    const RESET_VALUE: u32 = 0x8000_0000;
}