pub type R = crate::R<SEQ4rs>;
pub type W = crate::W<SEQ4rs>;
pub type Instr16R = crate::FieldReader;
pub type Instr16W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type Instr17R = crate::FieldReader;
pub type Instr17W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type Instr18R = crate::FieldReader;
pub type Instr18W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type Instr19R = crate::FieldReader;
pub type Instr19W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn instr16(&self) -> Instr16R {
Instr16R::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn instr17(&self) -> Instr17R {
Instr17R::new(((self.bits >> 8) & 0xff) as u8)
}
#[inline(always)]
pub fn instr18(&self) -> Instr18R {
Instr18R::new(((self.bits >> 16) & 0xff) as u8)
}
#[inline(always)]
pub fn instr19(&self) -> Instr19R {
Instr19R::new(((self.bits >> 24) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SEQ4")
.field("instr16", &self.instr16())
.field("instr17", &self.instr17())
.field("instr18", &self.instr18())
.field("instr19", &self.instr19())
.finish()
}
}
impl W {
#[inline(always)]
pub fn instr16(&mut self) -> Instr16W<'_, SEQ4rs> {
Instr16W::new(self, 0)
}
#[inline(always)]
pub fn instr17(&mut self) -> Instr17W<'_, SEQ4rs> {
Instr17W::new(self, 8)
}
#[inline(always)]
pub fn instr18(&mut self) -> Instr18W<'_, SEQ4rs> {
Instr18W::new(self, 16)
}
#[inline(always)]
pub fn instr19(&mut self) -> Instr19W<'_, SEQ4rs> {
Instr19W::new(self, 24)
}
}
pub struct SEQ4rs;
impl crate::RegisterSpec for SEQ4rs {
type Ux = u32;
}
impl crate::Readable for SEQ4rs {}
impl crate::Writable for SEQ4rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for SEQ4rs {}