va416xx-rs/va416xx/src/dma/chnl_priority_clr.rs
Robin Mueller 5d1740efea
All checks were successful
Rust/va416xx-rs/pipeline/head This commit looks good
Init Commit
Monorepo for Rust support of VA416XX family of radiation hardened MCUs
2024-06-25 20:01:21 +02:00

52 lines
2.0 KiB
Rust

#[doc = "Register `CHNL_PRIORITY_CLR` writer"]
pub type W = crate::W<ChnlPriorityClrSpec>;
#[doc = "Field `CH0` writer - Channel PRIORITY clear"]
pub type Ch0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CH1` writer - Channel PRIORITY clear"]
pub type Ch1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CH2` writer - Channel PRIORITY clear"]
pub type Ch2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CH3` writer - Channel PRIORITY clear"]
pub type Ch3W<'a, REG> = crate::BitWriter<'a, REG>;
impl W {
#[doc = "Bit 0 - Channel PRIORITY clear"]
#[inline(always)]
#[must_use]
pub fn ch0(&mut self) -> Ch0W<ChnlPriorityClrSpec> {
Ch0W::new(self, 0)
}
#[doc = "Bit 1 - Channel PRIORITY clear"]
#[inline(always)]
#[must_use]
pub fn ch1(&mut self) -> Ch1W<ChnlPriorityClrSpec> {
Ch1W::new(self, 1)
}
#[doc = "Bit 2 - Channel PRIORITY clear"]
#[inline(always)]
#[must_use]
pub fn ch2(&mut self) -> Ch2W<ChnlPriorityClrSpec> {
Ch2W::new(self, 2)
}
#[doc = "Bit 3 - Channel PRIORITY clear"]
#[inline(always)]
#[must_use]
pub fn ch3(&mut self) -> Ch3W<ChnlPriorityClrSpec> {
Ch3W::new(self, 3)
}
}
#[doc = "DMA channel priority clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`chnl_priority_clr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ChnlPriorityClrSpec;
impl crate::RegisterSpec for ChnlPriorityClrSpec {
type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [`chnl_priority_clr::W`](W) writer structure"]
impl crate::Writable for ChnlPriorityClrSpec {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets CHNL_PRIORITY_CLR to value 0"]
impl crate::Resettable for ChnlPriorityClrSpec {
const RESET_VALUE: u32 = 0;
}