#[doc = "Register `CHPRIS` writer"]
pub struct W(crate::W<CHPRIS_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<CHPRIS_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl core::ops::DerefMut for W {
#[inline(always)]
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl From<crate::W<CHPRIS_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<CHPRIS_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `CH0PRIS` writer - Channel 0 High Priority Set"]
pub type CH0PRIS_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHPRIS_SPEC, bool, O>;
#[doc = "Field `CH1PRIS` writer - Channel 1 High Priority Set"]
pub type CH1PRIS_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHPRIS_SPEC, bool, O>;
#[doc = "Field `CH2PRIS` writer - Channel 2 High Priority Set"]
pub type CH2PRIS_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHPRIS_SPEC, bool, O>;
#[doc = "Field `CH3PRIS` writer - Channel 3 High Priority Set"]
pub type CH3PRIS_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHPRIS_SPEC, bool, O>;
#[doc = "Field `CH4PRIS` writer - Channel 4 High Priority Set"]
pub type CH4PRIS_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHPRIS_SPEC, bool, O>;
#[doc = "Field `CH5PRIS` writer - Channel 5 High Priority Set"]
pub type CH5PRIS_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHPRIS_SPEC, bool, O>;
#[doc = "Field `CH6PRIS` writer - Channel 6 High Priority Set"]
pub type CH6PRIS_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHPRIS_SPEC, bool, O>;
#[doc = "Field `CH7PRIS` writer - Channel 7 High Priority Set"]
pub type CH7PRIS_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHPRIS_SPEC, bool, O>;
#[doc = "Field `CH8PRIS` writer - Channel 8 High Priority Set"]
pub type CH8PRIS_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHPRIS_SPEC, bool, O>;
#[doc = "Field `CH9PRIS` writer - Channel 9 High Priority Set"]
pub type CH9PRIS_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHPRIS_SPEC, bool, O>;
#[doc = "Field `CH10PRIS` writer - Channel 10 High Priority Set"]
pub type CH10PRIS_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHPRIS_SPEC, bool, O>;
#[doc = "Field `CH11PRIS` writer - Channel 11 High Priority Set"]
pub type CH11PRIS_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHPRIS_SPEC, bool, O>;
impl W {
#[doc = "Bit 0 - Channel 0 High Priority Set"]
#[inline(always)]
#[must_use]
pub fn ch0pris(&mut self) -> CH0PRIS_W<0> {
CH0PRIS_W::new(self)
}
#[doc = "Bit 1 - Channel 1 High Priority Set"]
#[inline(always)]
#[must_use]
pub fn ch1pris(&mut self) -> CH1PRIS_W<1> {
CH1PRIS_W::new(self)
}
#[doc = "Bit 2 - Channel 2 High Priority Set"]
#[inline(always)]
#[must_use]
pub fn ch2pris(&mut self) -> CH2PRIS_W<2> {
CH2PRIS_W::new(self)
}
#[doc = "Bit 3 - Channel 3 High Priority Set"]
#[inline(always)]
#[must_use]
pub fn ch3pris(&mut self) -> CH3PRIS_W<3> {
CH3PRIS_W::new(self)
}
#[doc = "Bit 4 - Channel 4 High Priority Set"]
#[inline(always)]
#[must_use]
pub fn ch4pris(&mut self) -> CH4PRIS_W<4> {
CH4PRIS_W::new(self)
}
#[doc = "Bit 5 - Channel 5 High Priority Set"]
#[inline(always)]
#[must_use]
pub fn ch5pris(&mut self) -> CH5PRIS_W<5> {
CH5PRIS_W::new(self)
}
#[doc = "Bit 6 - Channel 6 High Priority Set"]
#[inline(always)]
#[must_use]
pub fn ch6pris(&mut self) -> CH6PRIS_W<6> {
CH6PRIS_W::new(self)
}
#[doc = "Bit 7 - Channel 7 High Priority Set"]
#[inline(always)]
#[must_use]
pub fn ch7pris(&mut self) -> CH7PRIS_W<7> {
CH7PRIS_W::new(self)
}
#[doc = "Bit 8 - Channel 8 High Priority Set"]
#[inline(always)]
#[must_use]
pub fn ch8pris(&mut self) -> CH8PRIS_W<8> {
CH8PRIS_W::new(self)
}
#[doc = "Bit 9 - Channel 9 High Priority Set"]
#[inline(always)]
#[must_use]
pub fn ch9pris(&mut self) -> CH9PRIS_W<9> {
CH9PRIS_W::new(self)
}
#[doc = "Bit 10 - Channel 10 High Priority Set"]
#[inline(always)]
#[must_use]
pub fn ch10pris(&mut self) -> CH10PRIS_W<10> {
CH10PRIS_W::new(self)
}
#[doc = "Bit 11 - Channel 11 High Priority Set"]
#[inline(always)]
#[must_use]
pub fn ch11pris(&mut self) -> CH11PRIS_W<11> {
CH11PRIS_W::new(self)
}
#[doc = "Writes raw bits to the register."]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.0.bits(bits);
self
}
}
#[doc = "Channel Priority Set Register\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [chpris](index.html) module"]
pub struct CHPRIS_SPEC;
impl crate::RegisterSpec for CHPRIS_SPEC {
type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [chpris::W](W) writer structure"]
impl crate::Writable for CHPRIS_SPEC {
type Writer = W;
const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets CHPRIS to value 0"]
impl crate::Resettable for CHPRIS_SPEC {
const RESET_VALUE: Self::Ux = 0;
}