pub type R = crate::R<ORrs>;
pub type W = crate::W<ORrs>;
pub type AFOP_R = crate::FieldReader<u16>;
pub type AFOP_W<'a, REG> = crate::FieldWriter<'a, REG, 11, u16>;
pub type OR_R = crate::FieldReader<u32>;
pub type OR_W<'a, REG> = crate::FieldWriter<'a, REG, 21, u32>;
impl R {
#[inline(always)]
pub fn afop(&self) -> AFOP_R {
AFOP_R::new((self.bits & 0x07ff) as u16)
}
#[inline(always)]
pub fn or(&self) -> OR_R {
OR_R::new((self.bits >> 11) & 0x001f_ffff)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OR").field("afop", &self.afop()).field("or", &self.or()).finish()
}
}
impl W {
#[inline(always)]
pub fn afop(&mut self) -> AFOP_W<ORrs> {
AFOP_W::new(self, 0)
}
#[inline(always)]
pub fn or(&mut self) -> OR_W<ORrs> {
OR_W::new(self, 11)
}
}
pub struct ORrs;
impl crate::RegisterSpec for ORrs {
type Ux = u32;
}
impl crate::Readable for ORrs {}
impl crate::Writable for ORrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for ORrs {}