#[doc = "Reader of register REVNP1"]
pub type R = crate::R<u32, super::REVNP1>;
#[doc = "Writer for register REVNP1"]
pub type W = crate::W<u32, super::REVNP1>;
#[doc = "Register REVNP1 `reset()`'s with value 0"]
impl crate::ResetValue for super::REVNP1 {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0
}
}
#[doc = "Service Request Node Pointer Result Event i\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum REV8NP_A {
#[doc = "0: Select service request line 0 of group x"]
VALUE1 = 0,
#[doc = "3: Select service request line 3 of group x"]
VALUE2 = 3,
#[doc = "4: Select shared service request line 0"]
VALUE3 = 4,
#[doc = "7: Select shared service request line 3"]
VALUE4 = 7,
}
impl From<REV8NP_A> for u8 {
#[inline(always)]
fn from(variant: REV8NP_A) -> Self {
variant as _
}
}
#[doc = "Reader of field `REV8NP`"]
pub type REV8NP_R = crate::R<u8, REV8NP_A>;
impl REV8NP_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> crate::Variant<u8, REV8NP_A> {
use crate::Variant::*;
match self.bits {
0 => Val(REV8NP_A::VALUE1),
3 => Val(REV8NP_A::VALUE2),
4 => Val(REV8NP_A::VALUE3),
7 => Val(REV8NP_A::VALUE4),
i => Res(i),
}
}
#[doc = "Checks if the value of the field is `VALUE1`"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == REV8NP_A::VALUE1
}
#[doc = "Checks if the value of the field is `VALUE2`"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == REV8NP_A::VALUE2
}
#[doc = "Checks if the value of the field is `VALUE3`"]
#[inline(always)]
pub fn is_value3(&self) -> bool {
*self == REV8NP_A::VALUE3
}
#[doc = "Checks if the value of the field is `VALUE4`"]
#[inline(always)]
pub fn is_value4(&self) -> bool {
*self == REV8NP_A::VALUE4
}
}
#[doc = "Write proxy for field `REV8NP`"]
pub struct REV8NP_W<'a> {
w: &'a mut W,
}
impl<'a> REV8NP_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: REV8NP_A) -> &'a mut W {
unsafe { self.bits(variant.into()) }
}
#[doc = "Select service request line 0 of group x"]
#[inline(always)]
pub fn value1(self) -> &'a mut W {
self.variant(REV8NP_A::VALUE1)
}
#[doc = "Select service request line 3 of group x"]
#[inline(always)]
pub fn value2(self) -> &'a mut W {
self.variant(REV8NP_A::VALUE2)
}
#[doc = "Select shared service request line 0"]
#[inline(always)]
pub fn value3(self) -> &'a mut W {
self.variant(REV8NP_A::VALUE3)
}
#[doc = "Select shared service request line 3"]
#[inline(always)]
pub fn value4(self) -> &'a mut W {
self.variant(REV8NP_A::VALUE4)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !0x0f) | ((value as u32) & 0x0f);
self.w
}
}
#[doc = "Service Request Node Pointer Result Event i\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum REV9NP_A {
#[doc = "0: Select service request line 0 of group x"]
VALUE1 = 0,
#[doc = "3: Select service request line 3 of group x"]
VALUE2 = 3,
#[doc = "4: Select shared service request line 0"]
VALUE3 = 4,
#[doc = "7: Select shared service request line 3"]
VALUE4 = 7,
}
impl From<REV9NP_A> for u8 {
#[inline(always)]
fn from(variant: REV9NP_A) -> Self {
variant as _
}
}
#[doc = "Reader of field `REV9NP`"]
pub type REV9NP_R = crate::R<u8, REV9NP_A>;
impl REV9NP_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> crate::Variant<u8, REV9NP_A> {
use crate::Variant::*;
match self.bits {
0 => Val(REV9NP_A::VALUE1),
3 => Val(REV9NP_A::VALUE2),
4 => Val(REV9NP_A::VALUE3),
7 => Val(REV9NP_A::VALUE4),
i => Res(i),
}
}
#[doc = "Checks if the value of the field is `VALUE1`"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == REV9NP_A::VALUE1
}
#[doc = "Checks if the value of the field is `VALUE2`"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == REV9NP_A::VALUE2
}
#[doc = "Checks if the value of the field is `VALUE3`"]
#[inline(always)]
pub fn is_value3(&self) -> bool {
*self == REV9NP_A::VALUE3
}
#[doc = "Checks if the value of the field is `VALUE4`"]
#[inline(always)]
pub fn is_value4(&self) -> bool {
*self == REV9NP_A::VALUE4
}
}
#[doc = "Write proxy for field `REV9NP`"]
pub struct REV9NP_W<'a> {
w: &'a mut W,
}
impl<'a> REV9NP_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: REV9NP_A) -> &'a mut W {
unsafe { self.bits(variant.into()) }
}
#[doc = "Select service request line 0 of group x"]
#[inline(always)]
pub fn value1(self) -> &'a mut W {
self.variant(REV9NP_A::VALUE1)
}
#[doc = "Select service request line 3 of group x"]
#[inline(always)]
pub fn value2(self) -> &'a mut W {
self.variant(REV9NP_A::VALUE2)
}
#[doc = "Select shared service request line 0"]
#[inline(always)]
pub fn value3(self) -> &'a mut W {
self.variant(REV9NP_A::VALUE3)
}
#[doc = "Select shared service request line 3"]
#[inline(always)]
pub fn value4(self) -> &'a mut W {
self.variant(REV9NP_A::VALUE4)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x0f << 4)) | (((value as u32) & 0x0f) << 4);
self.w
}
}
#[doc = "Service Request Node Pointer Result Event i\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum REV10NP_A {
#[doc = "0: Select service request line 0 of group x"]
VALUE1 = 0,
#[doc = "3: Select service request line 3 of group x"]
VALUE2 = 3,
#[doc = "4: Select shared service request line 0"]
VALUE3 = 4,
#[doc = "7: Select shared service request line 3"]
VALUE4 = 7,
}
impl From<REV10NP_A> for u8 {
#[inline(always)]
fn from(variant: REV10NP_A) -> Self {
variant as _
}
}
#[doc = "Reader of field `REV10NP`"]
pub type REV10NP_R = crate::R<u8, REV10NP_A>;
impl REV10NP_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> crate::Variant<u8, REV10NP_A> {
use crate::Variant::*;
match self.bits {
0 => Val(REV10NP_A::VALUE1),
3 => Val(REV10NP_A::VALUE2),
4 => Val(REV10NP_A::VALUE3),
7 => Val(REV10NP_A::VALUE4),
i => Res(i),
}
}
#[doc = "Checks if the value of the field is `VALUE1`"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == REV10NP_A::VALUE1
}
#[doc = "Checks if the value of the field is `VALUE2`"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == REV10NP_A::VALUE2
}
#[doc = "Checks if the value of the field is `VALUE3`"]
#[inline(always)]
pub fn is_value3(&self) -> bool {
*self == REV10NP_A::VALUE3
}
#[doc = "Checks if the value of the field is `VALUE4`"]
#[inline(always)]
pub fn is_value4(&self) -> bool {
*self == REV10NP_A::VALUE4
}
}
#[doc = "Write proxy for field `REV10NP`"]
pub struct REV10NP_W<'a> {
w: &'a mut W,
}
impl<'a> REV10NP_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: REV10NP_A) -> &'a mut W {
unsafe { self.bits(variant.into()) }
}
#[doc = "Select service request line 0 of group x"]
#[inline(always)]
pub fn value1(self) -> &'a mut W {
self.variant(REV10NP_A::VALUE1)
}
#[doc = "Select service request line 3 of group x"]
#[inline(always)]
pub fn value2(self) -> &'a mut W {
self.variant(REV10NP_A::VALUE2)
}
#[doc = "Select shared service request line 0"]
#[inline(always)]
pub fn value3(self) -> &'a mut W {
self.variant(REV10NP_A::VALUE3)
}
#[doc = "Select shared service request line 3"]
#[inline(always)]
pub fn value4(self) -> &'a mut W {
self.variant(REV10NP_A::VALUE4)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x0f << 8)) | (((value as u32) & 0x0f) << 8);
self.w
}
}
#[doc = "Service Request Node Pointer Result Event i\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum REV11NP_A {
#[doc = "0: Select service request line 0 of group x"]
VALUE1 = 0,
#[doc = "3: Select service request line 3 of group x"]
VALUE2 = 3,
#[doc = "4: Select shared service request line 0"]
VALUE3 = 4,
#[doc = "7: Select shared service request line 3"]
VALUE4 = 7,
}
impl From<REV11NP_A> for u8 {
#[inline(always)]
fn from(variant: REV11NP_A) -> Self {
variant as _
}
}
#[doc = "Reader of field `REV11NP`"]
pub type REV11NP_R = crate::R<u8, REV11NP_A>;
impl REV11NP_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> crate::Variant<u8, REV11NP_A> {
use crate::Variant::*;
match self.bits {
0 => Val(REV11NP_A::VALUE1),
3 => Val(REV11NP_A::VALUE2),
4 => Val(REV11NP_A::VALUE3),
7 => Val(REV11NP_A::VALUE4),
i => Res(i),
}
}
#[doc = "Checks if the value of the field is `VALUE1`"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == REV11NP_A::VALUE1
}
#[doc = "Checks if the value of the field is `VALUE2`"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == REV11NP_A::VALUE2
}
#[doc = "Checks if the value of the field is `VALUE3`"]
#[inline(always)]
pub fn is_value3(&self) -> bool {
*self == REV11NP_A::VALUE3
}
#[doc = "Checks if the value of the field is `VALUE4`"]
#[inline(always)]
pub fn is_value4(&self) -> bool {
*self == REV11NP_A::VALUE4
}
}
#[doc = "Write proxy for field `REV11NP`"]
pub struct REV11NP_W<'a> {
w: &'a mut W,
}
impl<'a> REV11NP_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: REV11NP_A) -> &'a mut W {
unsafe { self.bits(variant.into()) }
}
#[doc = "Select service request line 0 of group x"]
#[inline(always)]
pub fn value1(self) -> &'a mut W {
self.variant(REV11NP_A::VALUE1)
}
#[doc = "Select service request line 3 of group x"]
#[inline(always)]
pub fn value2(self) -> &'a mut W {
self.variant(REV11NP_A::VALUE2)
}
#[doc = "Select shared service request line 0"]
#[inline(always)]
pub fn value3(self) -> &'a mut W {
self.variant(REV11NP_A::VALUE3)
}
#[doc = "Select shared service request line 3"]
#[inline(always)]
pub fn value4(self) -> &'a mut W {
self.variant(REV11NP_A::VALUE4)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x0f << 12)) | (((value as u32) & 0x0f) << 12);
self.w
}
}
#[doc = "Service Request Node Pointer Result Event i\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum REV12NP_A {
#[doc = "0: Select service request line 0 of group x"]
VALUE1 = 0,
#[doc = "3: Select service request line 3 of group x"]
VALUE2 = 3,
#[doc = "4: Select shared service request line 0"]
VALUE3 = 4,
#[doc = "7: Select shared service request line 3"]
VALUE4 = 7,
}
impl From<REV12NP_A> for u8 {
#[inline(always)]
fn from(variant: REV12NP_A) -> Self {
variant as _
}
}
#[doc = "Reader of field `REV12NP`"]
pub type REV12NP_R = crate::R<u8, REV12NP_A>;
impl REV12NP_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> crate::Variant<u8, REV12NP_A> {
use crate::Variant::*;
match self.bits {
0 => Val(REV12NP_A::VALUE1),
3 => Val(REV12NP_A::VALUE2),
4 => Val(REV12NP_A::VALUE3),
7 => Val(REV12NP_A::VALUE4),
i => Res(i),
}
}
#[doc = "Checks if the value of the field is `VALUE1`"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == REV12NP_A::VALUE1
}
#[doc = "Checks if the value of the field is `VALUE2`"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == REV12NP_A::VALUE2
}
#[doc = "Checks if the value of the field is `VALUE3`"]
#[inline(always)]
pub fn is_value3(&self) -> bool {
*self == REV12NP_A::VALUE3
}
#[doc = "Checks if the value of the field is `VALUE4`"]
#[inline(always)]
pub fn is_value4(&self) -> bool {
*self == REV12NP_A::VALUE4
}
}
#[doc = "Write proxy for field `REV12NP`"]
pub struct REV12NP_W<'a> {
w: &'a mut W,
}
impl<'a> REV12NP_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: REV12NP_A) -> &'a mut W {
unsafe { self.bits(variant.into()) }
}
#[doc = "Select service request line 0 of group x"]
#[inline(always)]
pub fn value1(self) -> &'a mut W {
self.variant(REV12NP_A::VALUE1)
}
#[doc = "Select service request line 3 of group x"]
#[inline(always)]
pub fn value2(self) -> &'a mut W {
self.variant(REV12NP_A::VALUE2)
}
#[doc = "Select shared service request line 0"]
#[inline(always)]
pub fn value3(self) -> &'a mut W {
self.variant(REV12NP_A::VALUE3)
}
#[doc = "Select shared service request line 3"]
#[inline(always)]
pub fn value4(self) -> &'a mut W {
self.variant(REV12NP_A::VALUE4)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x0f << 16)) | (((value as u32) & 0x0f) << 16);
self.w
}
}
#[doc = "Service Request Node Pointer Result Event i\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum REV13NP_A {
#[doc = "0: Select service request line 0 of group x"]
VALUE1 = 0,
#[doc = "3: Select service request line 3 of group x"]
VALUE2 = 3,
#[doc = "4: Select shared service request line 0"]
VALUE3 = 4,
#[doc = "7: Select shared service request line 3"]
VALUE4 = 7,
}
impl From<REV13NP_A> for u8 {
#[inline(always)]
fn from(variant: REV13NP_A) -> Self {
variant as _
}
}
#[doc = "Reader of field `REV13NP`"]
pub type REV13NP_R = crate::R<u8, REV13NP_A>;
impl REV13NP_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> crate::Variant<u8, REV13NP_A> {
use crate::Variant::*;
match self.bits {
0 => Val(REV13NP_A::VALUE1),
3 => Val(REV13NP_A::VALUE2),
4 => Val(REV13NP_A::VALUE3),
7 => Val(REV13NP_A::VALUE4),
i => Res(i),
}
}
#[doc = "Checks if the value of the field is `VALUE1`"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == REV13NP_A::VALUE1
}
#[doc = "Checks if the value of the field is `VALUE2`"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == REV13NP_A::VALUE2
}
#[doc = "Checks if the value of the field is `VALUE3`"]
#[inline(always)]
pub fn is_value3(&self) -> bool {
*self == REV13NP_A::VALUE3
}
#[doc = "Checks if the value of the field is `VALUE4`"]
#[inline(always)]
pub fn is_value4(&self) -> bool {
*self == REV13NP_A::VALUE4
}
}
#[doc = "Write proxy for field `REV13NP`"]
pub struct REV13NP_W<'a> {
w: &'a mut W,
}
impl<'a> REV13NP_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: REV13NP_A) -> &'a mut W {
unsafe { self.bits(variant.into()) }
}
#[doc = "Select service request line 0 of group x"]
#[inline(always)]
pub fn value1(self) -> &'a mut W {
self.variant(REV13NP_A::VALUE1)
}
#[doc = "Select service request line 3 of group x"]
#[inline(always)]
pub fn value2(self) -> &'a mut W {
self.variant(REV13NP_A::VALUE2)
}
#[doc = "Select shared service request line 0"]
#[inline(always)]
pub fn value3(self) -> &'a mut W {
self.variant(REV13NP_A::VALUE3)
}
#[doc = "Select shared service request line 3"]
#[inline(always)]
pub fn value4(self) -> &'a mut W {
self.variant(REV13NP_A::VALUE4)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x0f << 20)) | (((value as u32) & 0x0f) << 20);
self.w
}
}
#[doc = "Service Request Node Pointer Result Event i\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum REV14NP_A {
#[doc = "0: Select service request line 0 of group x"]
VALUE1 = 0,
#[doc = "3: Select service request line 3 of group x"]
VALUE2 = 3,
#[doc = "4: Select shared service request line 0"]
VALUE3 = 4,
#[doc = "7: Select shared service request line 3"]
VALUE4 = 7,
}
impl From<REV14NP_A> for u8 {
#[inline(always)]
fn from(variant: REV14NP_A) -> Self {
variant as _
}
}
#[doc = "Reader of field `REV14NP`"]
pub type REV14NP_R = crate::R<u8, REV14NP_A>;
impl REV14NP_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> crate::Variant<u8, REV14NP_A> {
use crate::Variant::*;
match self.bits {
0 => Val(REV14NP_A::VALUE1),
3 => Val(REV14NP_A::VALUE2),
4 => Val(REV14NP_A::VALUE3),
7 => Val(REV14NP_A::VALUE4),
i => Res(i),
}
}
#[doc = "Checks if the value of the field is `VALUE1`"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == REV14NP_A::VALUE1
}
#[doc = "Checks if the value of the field is `VALUE2`"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == REV14NP_A::VALUE2
}
#[doc = "Checks if the value of the field is `VALUE3`"]
#[inline(always)]
pub fn is_value3(&self) -> bool {
*self == REV14NP_A::VALUE3
}
#[doc = "Checks if the value of the field is `VALUE4`"]
#[inline(always)]
pub fn is_value4(&self) -> bool {
*self == REV14NP_A::VALUE4
}
}
#[doc = "Write proxy for field `REV14NP`"]
pub struct REV14NP_W<'a> {
w: &'a mut W,
}
impl<'a> REV14NP_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: REV14NP_A) -> &'a mut W {
unsafe { self.bits(variant.into()) }
}
#[doc = "Select service request line 0 of group x"]
#[inline(always)]
pub fn value1(self) -> &'a mut W {
self.variant(REV14NP_A::VALUE1)
}
#[doc = "Select service request line 3 of group x"]
#[inline(always)]
pub fn value2(self) -> &'a mut W {
self.variant(REV14NP_A::VALUE2)
}
#[doc = "Select shared service request line 0"]
#[inline(always)]
pub fn value3(self) -> &'a mut W {
self.variant(REV14NP_A::VALUE3)
}
#[doc = "Select shared service request line 3"]
#[inline(always)]
pub fn value4(self) -> &'a mut W {
self.variant(REV14NP_A::VALUE4)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x0f << 24)) | (((value as u32) & 0x0f) << 24);
self.w
}
}
#[doc = "Service Request Node Pointer Result Event i\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum REV15NP_A {
#[doc = "0: Select service request line 0 of group x"]
VALUE1 = 0,
#[doc = "3: Select service request line 3 of group x"]
VALUE2 = 3,
#[doc = "4: Select shared service request line 0"]
VALUE3 = 4,
#[doc = "7: Select shared service request line 3"]
VALUE4 = 7,
}
impl From<REV15NP_A> for u8 {
#[inline(always)]
fn from(variant: REV15NP_A) -> Self {
variant as _
}
}
#[doc = "Reader of field `REV15NP`"]
pub type REV15NP_R = crate::R<u8, REV15NP_A>;
impl REV15NP_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> crate::Variant<u8, REV15NP_A> {
use crate::Variant::*;
match self.bits {
0 => Val(REV15NP_A::VALUE1),
3 => Val(REV15NP_A::VALUE2),
4 => Val(REV15NP_A::VALUE3),
7 => Val(REV15NP_A::VALUE4),
i => Res(i),
}
}
#[doc = "Checks if the value of the field is `VALUE1`"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == REV15NP_A::VALUE1
}
#[doc = "Checks if the value of the field is `VALUE2`"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == REV15NP_A::VALUE2
}
#[doc = "Checks if the value of the field is `VALUE3`"]
#[inline(always)]
pub fn is_value3(&self) -> bool {
*self == REV15NP_A::VALUE3
}
#[doc = "Checks if the value of the field is `VALUE4`"]
#[inline(always)]
pub fn is_value4(&self) -> bool {
*self == REV15NP_A::VALUE4
}
}
#[doc = "Write proxy for field `REV15NP`"]
pub struct REV15NP_W<'a> {
w: &'a mut W,
}
impl<'a> REV15NP_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: REV15NP_A) -> &'a mut W {
unsafe { self.bits(variant.into()) }
}
#[doc = "Select service request line 0 of group x"]
#[inline(always)]
pub fn value1(self) -> &'a mut W {
self.variant(REV15NP_A::VALUE1)
}
#[doc = "Select service request line 3 of group x"]
#[inline(always)]
pub fn value2(self) -> &'a mut W {
self.variant(REV15NP_A::VALUE2)
}
#[doc = "Select shared service request line 0"]
#[inline(always)]
pub fn value3(self) -> &'a mut W {
self.variant(REV15NP_A::VALUE3)
}
#[doc = "Select shared service request line 3"]
#[inline(always)]
pub fn value4(self) -> &'a mut W {
self.variant(REV15NP_A::VALUE4)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x0f << 28)) | (((value as u32) & 0x0f) << 28);
self.w
}
}
impl R {
#[doc = "Bits 0:3 - Service Request Node Pointer Result Event i"]
#[inline(always)]
pub fn rev8np(&self) -> REV8NP_R {
REV8NP_R::new((self.bits & 0x0f) as u8)
}
#[doc = "Bits 4:7 - Service Request Node Pointer Result Event i"]
#[inline(always)]
pub fn rev9np(&self) -> REV9NP_R {
REV9NP_R::new(((self.bits >> 4) & 0x0f) as u8)
}
#[doc = "Bits 8:11 - Service Request Node Pointer Result Event i"]
#[inline(always)]
pub fn rev10np(&self) -> REV10NP_R {
REV10NP_R::new(((self.bits >> 8) & 0x0f) as u8)
}
#[doc = "Bits 12:15 - Service Request Node Pointer Result Event i"]
#[inline(always)]
pub fn rev11np(&self) -> REV11NP_R {
REV11NP_R::new(((self.bits >> 12) & 0x0f) as u8)
}
#[doc = "Bits 16:19 - Service Request Node Pointer Result Event i"]
#[inline(always)]
pub fn rev12np(&self) -> REV12NP_R {
REV12NP_R::new(((self.bits >> 16) & 0x0f) as u8)
}
#[doc = "Bits 20:23 - Service Request Node Pointer Result Event i"]
#[inline(always)]
pub fn rev13np(&self) -> REV13NP_R {
REV13NP_R::new(((self.bits >> 20) & 0x0f) as u8)
}
#[doc = "Bits 24:27 - Service Request Node Pointer Result Event i"]
#[inline(always)]
pub fn rev14np(&self) -> REV14NP_R {
REV14NP_R::new(((self.bits >> 24) & 0x0f) as u8)
}
#[doc = "Bits 28:31 - Service Request Node Pointer Result Event i"]
#[inline(always)]
pub fn rev15np(&self) -> REV15NP_R {
REV15NP_R::new(((self.bits >> 28) & 0x0f) as u8)
}
}
impl W {
#[doc = "Bits 0:3 - Service Request Node Pointer Result Event i"]
#[inline(always)]
pub fn rev8np(&mut self) -> REV8NP_W {
REV8NP_W { w: self }
}
#[doc = "Bits 4:7 - Service Request Node Pointer Result Event i"]
#[inline(always)]
pub fn rev9np(&mut self) -> REV9NP_W {
REV9NP_W { w: self }
}
#[doc = "Bits 8:11 - Service Request Node Pointer Result Event i"]
#[inline(always)]
pub fn rev10np(&mut self) -> REV10NP_W {
REV10NP_W { w: self }
}
#[doc = "Bits 12:15 - Service Request Node Pointer Result Event i"]
#[inline(always)]
pub fn rev11np(&mut self) -> REV11NP_W {
REV11NP_W { w: self }
}
#[doc = "Bits 16:19 - Service Request Node Pointer Result Event i"]
#[inline(always)]
pub fn rev12np(&mut self) -> REV12NP_W {
REV12NP_W { w: self }
}
#[doc = "Bits 20:23 - Service Request Node Pointer Result Event i"]
#[inline(always)]
pub fn rev13np(&mut self) -> REV13NP_W {
REV13NP_W { w: self }
}
#[doc = "Bits 24:27 - Service Request Node Pointer Result Event i"]
#[inline(always)]
pub fn rev14np(&mut self) -> REV14NP_W {
REV14NP_W { w: self }
}
#[doc = "Bits 28:31 - Service Request Node Pointer Result Event i"]
#[inline(always)]
pub fn rev15np(&mut self) -> REV15NP_W {
REV15NP_W { w: self }
}
}