pub type R = crate::R<SEQ2rs>;
pub type W = crate::W<SEQ2rs>;
pub type Instr8R = crate::FieldReader;
pub type Instr8W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type Instr9R = crate::FieldReader;
pub type Instr9W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type Instr10R = crate::FieldReader;
pub type Instr10W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type Instr11R = crate::FieldReader;
pub type Instr11W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn instr8(&self) -> Instr8R {
Instr8R::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn instr9(&self) -> Instr9R {
Instr9R::new(((self.bits >> 8) & 0xff) as u8)
}
#[inline(always)]
pub fn instr10(&self) -> Instr10R {
Instr10R::new(((self.bits >> 16) & 0xff) as u8)
}
#[inline(always)]
pub fn instr11(&self) -> Instr11R {
Instr11R::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("SEQ2")
.field("instr8", &self.instr8())
.field("instr9", &self.instr9())
.field("instr10", &self.instr10())
.field("instr11", &self.instr11())
.finish()
}
}
impl W {
#[inline(always)]
pub fn instr8(&mut self) -> Instr8W<'_, SEQ2rs> {
Instr8W::new(self, 0)
}
#[inline(always)]
pub fn instr9(&mut self) -> Instr9W<'_, SEQ2rs> {
Instr9W::new(self, 8)
}
#[inline(always)]
pub fn instr10(&mut self) -> Instr10W<'_, SEQ2rs> {
Instr10W::new(self, 16)
}
#[inline(always)]
pub fn instr11(&mut self) -> Instr11W<'_, SEQ2rs> {
Instr11W::new(self, 24)
}
}
pub struct SEQ2rs;
impl crate::RegisterSpec for SEQ2rs {
type Ux = u32;
}
impl crate::Readable for SEQ2rs {}
impl crate::Writable for SEQ2rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for SEQ2rs {}