pub type W = crate::W<L1CLUTWRrs>;
pub type BLUE_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type GREEN_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type RED_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type CLUTADD_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl core::fmt::Debug for crate::generic::Reg<L1CLUTWRrs> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "(not readable)")
}
}
impl W {
#[inline(always)]
pub fn blue(&mut self) -> BLUE_W<L1CLUTWRrs> {
BLUE_W::new(self, 0)
}
#[inline(always)]
pub fn green(&mut self) -> GREEN_W<L1CLUTWRrs> {
GREEN_W::new(self, 8)
}
#[inline(always)]
pub fn red(&mut self) -> RED_W<L1CLUTWRrs> {
RED_W::new(self, 16)
}
#[inline(always)]
pub fn clutadd(&mut self) -> CLUTADD_W<L1CLUTWRrs> {
CLUTADD_W::new(self, 24)
}
}
pub struct L1CLUTWRrs;
impl crate::RegisterSpec for L1CLUTWRrs {
type Ux = u32;
}
impl crate::Writable for L1CLUTWRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for L1CLUTWRrs {}