esp32c5 0.2.1

Peripheral access crate for the ESP32-C5
Documentation
#[doc = "Register `RX_CH_ARB_WEIGHT_CH%s` reader"]
pub type R = crate::R<RX_CH_ARB_WEIGHT_CH_SPEC>;
#[doc = "Register `RX_CH_ARB_WEIGHT_CH%s` writer"]
pub type W = crate::W<RX_CH_ARB_WEIGHT_CH_SPEC>;
#[doc = "Field `RX_CH_ARB_WEIGHT_CH` reader - Configures the weight(i.e the number of tokens) of RX channel%s"]
pub type RX_CH_ARB_WEIGHT_CH_R = crate::FieldReader;
#[doc = "Field `RX_CH_ARB_WEIGHT_CH` writer - Configures the weight(i.e the number of tokens) of RX channel%s"]
pub type RX_CH_ARB_WEIGHT_CH_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
impl R {
    #[doc = "Bits 0:3 - Configures the weight(i.e the number of tokens) of RX channel%s"]
    #[inline(always)]
    pub fn rx_ch_arb_weight_ch(&self) -> RX_CH_ARB_WEIGHT_CH_R {
        RX_CH_ARB_WEIGHT_CH_R::new((self.bits & 0x0f) as u8)
    }
}
#[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("RX_CH_ARB_WEIGHT_CH")
            .field("rx_ch_arb_weight_ch", &self.rx_ch_arb_weight_ch())
            .finish()
    }
}
impl W {
    #[doc = "Bits 0:3 - Configures the weight(i.e the number of tokens) of RX channel%s"]
    #[inline(always)]
    pub fn rx_ch_arb_weight_ch(&mut self) -> RX_CH_ARB_WEIGHT_CH_W<'_, RX_CH_ARB_WEIGHT_CH_SPEC> {
        RX_CH_ARB_WEIGHT_CH_W::new(self, 0)
    }
}
#[doc = "RX channel %s arbitration weight configuration register\n\nYou can [`read`](crate::Reg::read) this register and get [`rx_ch_arb_weight_ch::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rx_ch_arb_weight_ch::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RX_CH_ARB_WEIGHT_CH_SPEC;
impl crate::RegisterSpec for RX_CH_ARB_WEIGHT_CH_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`rx_ch_arb_weight_ch::R`](R) reader structure"]
impl crate::Readable for RX_CH_ARB_WEIGHT_CH_SPEC {}
#[doc = "`write(|w| ..)` method takes [`rx_ch_arb_weight_ch::W`](W) writer structure"]
impl crate::Writable for RX_CH_ARB_WEIGHT_CH_SPEC {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets RX_CH_ARB_WEIGHT_CH%s to value 0"]
impl crate::Resettable for RX_CH_ARB_WEIGHT_CH_SPEC {}