pub type R = crate::R<SEQ3rs>;
pub type W = crate::W<SEQ3rs>;
pub type Instr12R = crate::FieldReader;
pub type Instr12W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type Instr13R = crate::FieldReader;
pub type Instr13W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type Instr14R = crate::FieldReader;
pub type Instr14W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type Instr15R = crate::FieldReader;
pub type Instr15W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn instr12(&self) -> Instr12R {
Instr12R::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn instr13(&self) -> Instr13R {
Instr13R::new(((self.bits >> 8) & 0xff) as u8)
}
#[inline(always)]
pub fn instr14(&self) -> Instr14R {
Instr14R::new(((self.bits >> 16) & 0xff) as u8)
}
#[inline(always)]
pub fn instr15(&self) -> Instr15R {
Instr15R::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("SEQ3")
.field("instr12", &self.instr12())
.field("instr13", &self.instr13())
.field("instr14", &self.instr14())
.field("instr15", &self.instr15())
.finish()
}
}
impl W {
#[inline(always)]
pub fn instr12(&mut self) -> Instr12W<'_, SEQ3rs> {
Instr12W::new(self, 0)
}
#[inline(always)]
pub fn instr13(&mut self) -> Instr13W<'_, SEQ3rs> {
Instr13W::new(self, 8)
}
#[inline(always)]
pub fn instr14(&mut self) -> Instr14W<'_, SEQ3rs> {
Instr14W::new(self, 16)
}
#[inline(always)]
pub fn instr15(&mut self) -> Instr15W<'_, SEQ3rs> {
Instr15W::new(self, 24)
}
}
pub struct SEQ3rs;
impl crate::RegisterSpec for SEQ3rs {
type Ux = u32;
}
impl crate::Readable for SEQ3rs {}
impl crate::Writable for SEQ3rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for SEQ3rs {}