esp32c5 0.2.0

Peripheral access crate for the ESP32-C5
Documentation
#[doc = "Register `SLC1TX_LINK` reader"]
pub type R = crate::R<SLC1TX_LINK_SPEC>;
#[doc = "Register `SLC1TX_LINK` writer"]
pub type W = crate::W<SLC1TX_LINK_SPEC>;
#[doc = "Field `SDIO_SLC1_TXLINK_STOP` reader - Configures whether to stop SLC1 TX linked list operation."]
pub type SDIO_SLC1_TXLINK_STOP_R = crate::BitReader;
#[doc = "Field `SDIO_SLC1_TXLINK_STOP` writer - Configures whether to stop SLC1 TX linked list operation."]
pub type SDIO_SLC1_TXLINK_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SDIO_SLC1_TXLINK_START` reader - Configures whether to start SLC1 TX linked list operation from the address indicated by SDIO_SLC1_TXLINK_ADDR."]
pub type SDIO_SLC1_TXLINK_START_R = crate::BitReader;
#[doc = "Field `SDIO_SLC1_TXLINK_START` writer - Configures whether to start SLC1 TX linked list operation from the address indicated by SDIO_SLC1_TXLINK_ADDR."]
pub type SDIO_SLC1_TXLINK_START_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SDIO_SLC1_TXLINK_RESTART` reader - Configures whether to restart and continue SLC1 TX linked list operation."]
pub type SDIO_SLC1_TXLINK_RESTART_R = crate::BitReader;
#[doc = "Field `SDIO_SLC1_TXLINK_RESTART` writer - Configures whether to restart and continue SLC1 TX linked list operation."]
pub type SDIO_SLC1_TXLINK_RESTART_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SDIO_SLC1_TXLINK_PARK` reader - Represents SLC1 TX linked list FSM state."]
pub type SDIO_SLC1_TXLINK_PARK_R = crate::BitReader;
#[doc = "Field `SDIO_SLC1_TXLINK_PARK` writer - Represents SLC1 TX linked list FSM state."]
pub type SDIO_SLC1_TXLINK_PARK_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 28 - Configures whether to stop SLC1 TX linked list operation."]
    #[inline(always)]
    pub fn sdio_slc1_txlink_stop(&self) -> SDIO_SLC1_TXLINK_STOP_R {
        SDIO_SLC1_TXLINK_STOP_R::new(((self.bits >> 28) & 1) != 0)
    }
    #[doc = "Bit 29 - Configures whether to start SLC1 TX linked list operation from the address indicated by SDIO_SLC1_TXLINK_ADDR."]
    #[inline(always)]
    pub fn sdio_slc1_txlink_start(&self) -> SDIO_SLC1_TXLINK_START_R {
        SDIO_SLC1_TXLINK_START_R::new(((self.bits >> 29) & 1) != 0)
    }
    #[doc = "Bit 30 - Configures whether to restart and continue SLC1 TX linked list operation."]
    #[inline(always)]
    pub fn sdio_slc1_txlink_restart(&self) -> SDIO_SLC1_TXLINK_RESTART_R {
        SDIO_SLC1_TXLINK_RESTART_R::new(((self.bits >> 30) & 1) != 0)
    }
    #[doc = "Bit 31 - Represents SLC1 TX linked list FSM state."]
    #[inline(always)]
    pub fn sdio_slc1_txlink_park(&self) -> SDIO_SLC1_TXLINK_PARK_R {
        SDIO_SLC1_TXLINK_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("SLC1TX_LINK")
            .field("sdio_slc1_txlink_stop", &self.sdio_slc1_txlink_stop())
            .field("sdio_slc1_txlink_start", &self.sdio_slc1_txlink_start())
            .field("sdio_slc1_txlink_restart", &self.sdio_slc1_txlink_restart())
            .field("sdio_slc1_txlink_park", &self.sdio_slc1_txlink_park())
            .finish()
    }
}
impl W {
    #[doc = "Bit 28 - Configures whether to stop SLC1 TX linked list operation."]
    #[inline(always)]
    pub fn sdio_slc1_txlink_stop(&mut self) -> SDIO_SLC1_TXLINK_STOP_W<'_, SLC1TX_LINK_SPEC> {
        SDIO_SLC1_TXLINK_STOP_W::new(self, 28)
    }
    #[doc = "Bit 29 - Configures whether to start SLC1 TX linked list operation from the address indicated by SDIO_SLC1_TXLINK_ADDR."]
    #[inline(always)]
    pub fn sdio_slc1_txlink_start(&mut self) -> SDIO_SLC1_TXLINK_START_W<'_, SLC1TX_LINK_SPEC> {
        SDIO_SLC1_TXLINK_START_W::new(self, 29)
    }
    #[doc = "Bit 30 - Configures whether to restart and continue SLC1 TX linked list operation."]
    #[inline(always)]
    pub fn sdio_slc1_txlink_restart(&mut self) -> SDIO_SLC1_TXLINK_RESTART_W<'_, SLC1TX_LINK_SPEC> {
        SDIO_SLC1_TXLINK_RESTART_W::new(self, 30)
    }
    #[doc = "Bit 31 - Represents SLC1 TX linked list FSM state."]
    #[inline(always)]
    pub fn sdio_slc1_txlink_park(&mut self) -> SDIO_SLC1_TXLINK_PARK_W<'_, SLC1TX_LINK_SPEC> {
        SDIO_SLC1_TXLINK_PARK_W::new(self, 31)
    }
}
#[doc = "SLC1 TX linked list configuration\n\nYou can [`read`](crate::Reg::read) this register and get [`slc1tx_link::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`slc1tx_link::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SLC1TX_LINK_SPEC;
impl crate::RegisterSpec for SLC1TX_LINK_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`slc1tx_link::R`](R) reader structure"]
impl crate::Readable for SLC1TX_LINK_SPEC {}
#[doc = "`write(|w| ..)` method takes [`slc1tx_link::W`](W) writer structure"]
impl crate::Writable for SLC1TX_LINK_SPEC {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets SLC1TX_LINK to value 0x8000_0000"]
impl crate::Resettable for SLC1TX_LINK_SPEC {
    const RESET_VALUE: u32 = 0x8000_0000;
}