pub type R = crate::R<SEQ1rs>;
pub type W = crate::W<SEQ1rs>;
pub type Instr4R = crate::FieldReader;
pub type Instr4W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type Instr5R = crate::FieldReader;
pub type Instr5W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type Instr6R = crate::FieldReader;
pub type Instr6W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type Instr7R = crate::FieldReader;
pub type Instr7W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn instr4(&self) -> Instr4R {
Instr4R::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn instr5(&self) -> Instr5R {
Instr5R::new(((self.bits >> 8) & 0xff) as u8)
}
#[inline(always)]
pub fn instr6(&self) -> Instr6R {
Instr6R::new(((self.bits >> 16) & 0xff) as u8)
}
#[inline(always)]
pub fn instr7(&self) -> Instr7R {
Instr7R::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("SEQ1")
.field("instr4", &self.instr4())
.field("instr5", &self.instr5())
.field("instr6", &self.instr6())
.field("instr7", &self.instr7())
.finish()
}
}
impl W {
#[inline(always)]
pub fn instr4(&mut self) -> Instr4W<'_, SEQ1rs> {
Instr4W::new(self, 0)
}
#[inline(always)]
pub fn instr5(&mut self) -> Instr5W<'_, SEQ1rs> {
Instr5W::new(self, 8)
}
#[inline(always)]
pub fn instr6(&mut self) -> Instr6W<'_, SEQ1rs> {
Instr6W::new(self, 16)
}
#[inline(always)]
pub fn instr7(&mut self) -> Instr7W<'_, SEQ1rs> {
Instr7W::new(self, 24)
}
}
pub struct SEQ1rs;
impl crate::RegisterSpec for SEQ1rs {
type Ux = u32;
}
impl crate::Readable for SEQ1rs {}
impl crate::Writable for SEQ1rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for SEQ1rs {}