pub type R = crate::R<SEQ0rs>;
pub type W = crate::W<SEQ0rs>;
pub type Instr0R = crate::FieldReader;
pub type Instr0W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type Instr1R = crate::FieldReader;
pub type Instr1W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type Instr2R = crate::FieldReader;
pub type Instr2W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type Instr3R = crate::FieldReader;
pub type Instr3W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn instr0(&self) -> Instr0R {
Instr0R::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn instr1(&self) -> Instr1R {
Instr1R::new(((self.bits >> 8) & 0xff) as u8)
}
#[inline(always)]
pub fn instr2(&self) -> Instr2R {
Instr2R::new(((self.bits >> 16) & 0xff) as u8)
}
#[inline(always)]
pub fn instr3(&self) -> Instr3R {
Instr3R::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("SEQ0")
.field("instr0", &self.instr0())
.field("instr1", &self.instr1())
.field("instr2", &self.instr2())
.field("instr3", &self.instr3())
.finish()
}
}
impl W {
#[inline(always)]
pub fn instr0(&mut self) -> Instr0W<'_, SEQ0rs> {
Instr0W::new(self, 0)
}
#[inline(always)]
pub fn instr1(&mut self) -> Instr1W<'_, SEQ0rs> {
Instr1W::new(self, 8)
}
#[inline(always)]
pub fn instr2(&mut self) -> Instr2W<'_, SEQ0rs> {
Instr2W::new(self, 16)
}
#[inline(always)]
pub fn instr3(&mut self) -> Instr3W<'_, SEQ0rs> {
Instr3W::new(self, 24)
}
}
pub struct SEQ0rs;
impl crate::RegisterSpec for SEQ0rs {
type Ux = u32;
}
impl crate::Readable for SEQ0rs {}
impl crate::Writable for SEQ0rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for SEQ0rs {}