#[doc = "Reader of register DCFG_CC_SOCU_DFLT"]
pub type R = crate::R<u32, super::DCFG_CC_SOCU_DFLT>;
#[doc = "Writer for register DCFG_CC_SOCU_DFLT"]
pub type W = crate::W<u32, super::DCFG_CC_SOCU_DFLT>;
#[doc = "Register DCFG_CC_SOCU_DFLT `reset()`'s with value 0"]
impl crate::ResetValue for super::DCFG_CC_SOCU_DFLT {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0
}
}
#[doc = "Possible values of the field `NIDEN`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum NIDEN_A {
#[doc = "Disable"]
DISABLE,
#[doc = "Enable"]
ENABLE,
}
impl From<NIDEN_A> for bool {
#[inline(always)]
fn from(variant: NIDEN_A) -> Self {
match variant {
NIDEN_A::DISABLE => false,
NIDEN_A::ENABLE => true,
}
}
}
#[doc = "Reader of field `NIDEN`"]
pub type NIDEN_R = crate::R<bool, NIDEN_A>;
impl NIDEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> NIDEN_A {
match self.bits {
false => NIDEN_A::DISABLE,
true => NIDEN_A::ENABLE,
}
}
#[doc = "Checks if the value of the field is `DISABLE`"]
#[inline(always)]
pub fn is_disable(&self) -> bool {
*self == NIDEN_A::DISABLE
}
#[doc = "Checks if the value of the field is `ENABLE`"]
#[inline(always)]
pub fn is_enable(&self) -> bool {
*self == NIDEN_A::ENABLE
}
}
#[doc = "Write proxy for field `NIDEN`"]
pub struct NIDEN_W<'a> {
w: &'a mut W,
}
impl<'a> NIDEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: NIDEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Disable"]
#[inline(always)]
pub fn disable(self) -> &'a mut W {
self.variant(NIDEN_A::DISABLE)
}
#[doc = "Enable"]
#[inline(always)]
pub fn enable(self) -> &'a mut W {
self.variant(NIDEN_A::ENABLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !0x01) | ((value as u32) & 0x01);
self.w
}
}
#[doc = "Possible values of the field `DBGEN`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DBGEN_A {
#[doc = "Disable"]
DISABLE,
#[doc = "Enable"]
ENABLE,
}
impl From<DBGEN_A> for bool {
#[inline(always)]
fn from(variant: DBGEN_A) -> Self {
match variant {
DBGEN_A::DISABLE => false,
DBGEN_A::ENABLE => true,
}
}
}
#[doc = "Reader of field `DBGEN`"]
pub type DBGEN_R = crate::R<bool, DBGEN_A>;
impl DBGEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> DBGEN_A {
match self.bits {
false => DBGEN_A::DISABLE,
true => DBGEN_A::ENABLE,
}
}
#[doc = "Checks if the value of the field is `DISABLE`"]
#[inline(always)]
pub fn is_disable(&self) -> bool {
*self == DBGEN_A::DISABLE
}
#[doc = "Checks if the value of the field is `ENABLE`"]
#[inline(always)]
pub fn is_enable(&self) -> bool {
*self == DBGEN_A::ENABLE
}
}
#[doc = "Write proxy for field `DBGEN`"]
pub struct DBGEN_W<'a> {
w: &'a mut W,
}
impl<'a> DBGEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: DBGEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Disable"]
#[inline(always)]
pub fn disable(self) -> &'a mut W {
self.variant(DBGEN_A::DISABLE)
}
#[doc = "Enable"]
#[inline(always)]
pub fn enable(self) -> &'a mut W {
self.variant(DBGEN_A::ENABLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 1)) | (((value as u32) & 0x01) << 1);
self.w
}
}
#[doc = "Possible values of the field `SPNIDEN`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SPNIDEN_A {
#[doc = "Disable"]
DISABLE,
#[doc = "Enable"]
ENABLE,
}
impl From<SPNIDEN_A> for bool {
#[inline(always)]
fn from(variant: SPNIDEN_A) -> Self {
match variant {
SPNIDEN_A::DISABLE => false,
SPNIDEN_A::ENABLE => true,
}
}
}
#[doc = "Reader of field `SPNIDEN`"]
pub type SPNIDEN_R = crate::R<bool, SPNIDEN_A>;
impl SPNIDEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> SPNIDEN_A {
match self.bits {
false => SPNIDEN_A::DISABLE,
true => SPNIDEN_A::ENABLE,
}
}
#[doc = "Checks if the value of the field is `DISABLE`"]
#[inline(always)]
pub fn is_disable(&self) -> bool {
*self == SPNIDEN_A::DISABLE
}
#[doc = "Checks if the value of the field is `ENABLE`"]
#[inline(always)]
pub fn is_enable(&self) -> bool {
*self == SPNIDEN_A::ENABLE
}
}
#[doc = "Write proxy for field `SPNIDEN`"]
pub struct SPNIDEN_W<'a> {
w: &'a mut W,
}
impl<'a> SPNIDEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: SPNIDEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Disable"]
#[inline(always)]
pub fn disable(self) -> &'a mut W {
self.variant(SPNIDEN_A::DISABLE)
}
#[doc = "Enable"]
#[inline(always)]
pub fn enable(self) -> &'a mut W {
self.variant(SPNIDEN_A::ENABLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 2)) | (((value as u32) & 0x01) << 2);
self.w
}
}
#[doc = "Possible values of the field `SPIDEN`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SPIDEN_A {
#[doc = "Disable"]
DISABLE,
#[doc = "Enable"]
ENABLE,
}
impl From<SPIDEN_A> for bool {
#[inline(always)]
fn from(variant: SPIDEN_A) -> Self {
match variant {
SPIDEN_A::DISABLE => false,
SPIDEN_A::ENABLE => true,
}
}
}
#[doc = "Reader of field `SPIDEN`"]
pub type SPIDEN_R = crate::R<bool, SPIDEN_A>;
impl SPIDEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> SPIDEN_A {
match self.bits {
false => SPIDEN_A::DISABLE,
true => SPIDEN_A::ENABLE,
}
}
#[doc = "Checks if the value of the field is `DISABLE`"]
#[inline(always)]
pub fn is_disable(&self) -> bool {
*self == SPIDEN_A::DISABLE
}
#[doc = "Checks if the value of the field is `ENABLE`"]
#[inline(always)]
pub fn is_enable(&self) -> bool {
*self == SPIDEN_A::ENABLE
}
}
#[doc = "Write proxy for field `SPIDEN`"]
pub struct SPIDEN_W<'a> {
w: &'a mut W,
}
impl<'a> SPIDEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: SPIDEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Disable"]
#[inline(always)]
pub fn disable(self) -> &'a mut W {
self.variant(SPIDEN_A::DISABLE)
}
#[doc = "Enable"]
#[inline(always)]
pub fn enable(self) -> &'a mut W {
self.variant(SPIDEN_A::ENABLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 3)) | (((value as u32) & 0x01) << 3);
self.w
}
}
#[doc = "Possible values of the field `TAPEN`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum TAPEN_A {
#[doc = "Disable"]
DISABLE,
#[doc = "Enable"]
ENABLE,
}
impl From<TAPEN_A> for bool {
#[inline(always)]
fn from(variant: TAPEN_A) -> Self {
match variant {
TAPEN_A::DISABLE => false,
TAPEN_A::ENABLE => true,
}
}
}
#[doc = "Reader of field `TAPEN`"]
pub type TAPEN_R = crate::R<bool, TAPEN_A>;
impl TAPEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> TAPEN_A {
match self.bits {
false => TAPEN_A::DISABLE,
true => TAPEN_A::ENABLE,
}
}
#[doc = "Checks if the value of the field is `DISABLE`"]
#[inline(always)]
pub fn is_disable(&self) -> bool {
*self == TAPEN_A::DISABLE
}
#[doc = "Checks if the value of the field is `ENABLE`"]
#[inline(always)]
pub fn is_enable(&self) -> bool {
*self == TAPEN_A::ENABLE
}
}
#[doc = "Write proxy for field `TAPEN`"]
pub struct TAPEN_W<'a> {
w: &'a mut W,
}
impl<'a> TAPEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: TAPEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Disable"]
#[inline(always)]
pub fn disable(self) -> &'a mut W {
self.variant(TAPEN_A::DISABLE)
}
#[doc = "Enable"]
#[inline(always)]
pub fn enable(self) -> &'a mut W {
self.variant(TAPEN_A::ENABLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 4)) | (((value as u32) & 0x01) << 4);
self.w
}
}
#[doc = "Possible values of the field `MCM33_DBGEN`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum MCM33_DBGEN_A {
#[doc = "Disable"]
DISABLE,
#[doc = "Enable"]
ENABLE,
}
impl From<MCM33_DBGEN_A> for bool {
#[inline(always)]
fn from(variant: MCM33_DBGEN_A) -> Self {
match variant {
MCM33_DBGEN_A::DISABLE => false,
MCM33_DBGEN_A::ENABLE => true,
}
}
}
#[doc = "Reader of field `MCM33_DBGEN`"]
pub type MCM33_DBGEN_R = crate::R<bool, MCM33_DBGEN_A>;
impl MCM33_DBGEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> MCM33_DBGEN_A {
match self.bits {
false => MCM33_DBGEN_A::DISABLE,
true => MCM33_DBGEN_A::ENABLE,
}
}
#[doc = "Checks if the value of the field is `DISABLE`"]
#[inline(always)]
pub fn is_disable(&self) -> bool {
*self == MCM33_DBGEN_A::DISABLE
}
#[doc = "Checks if the value of the field is `ENABLE`"]
#[inline(always)]
pub fn is_enable(&self) -> bool {
*self == MCM33_DBGEN_A::ENABLE
}
}
#[doc = "Write proxy for field `MCM33_DBGEN`"]
pub struct MCM33_DBGEN_W<'a> {
w: &'a mut W,
}
impl<'a> MCM33_DBGEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: MCM33_DBGEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Disable"]
#[inline(always)]
pub fn disable(self) -> &'a mut W {
self.variant(MCM33_DBGEN_A::DISABLE)
}
#[doc = "Enable"]
#[inline(always)]
pub fn enable(self) -> &'a mut W {
self.variant(MCM33_DBGEN_A::ENABLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 5)) | (((value as u32) & 0x01) << 5);
self.w
}
}
#[doc = "Possible values of the field `ISP_CMD_EN`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ISP_CMD_EN_A {
#[doc = "Disable"]
DISABLE,
#[doc = "Enable"]
ENABLE,
}
impl From<ISP_CMD_EN_A> for bool {
#[inline(always)]
fn from(variant: ISP_CMD_EN_A) -> Self {
match variant {
ISP_CMD_EN_A::DISABLE => false,
ISP_CMD_EN_A::ENABLE => true,
}
}
}
#[doc = "Reader of field `ISP_CMD_EN`"]
pub type ISP_CMD_EN_R = crate::R<bool, ISP_CMD_EN_A>;
impl ISP_CMD_EN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> ISP_CMD_EN_A {
match self.bits {
false => ISP_CMD_EN_A::DISABLE,
true => ISP_CMD_EN_A::ENABLE,
}
}
#[doc = "Checks if the value of the field is `DISABLE`"]
#[inline(always)]
pub fn is_disable(&self) -> bool {
*self == ISP_CMD_EN_A::DISABLE
}
#[doc = "Checks if the value of the field is `ENABLE`"]
#[inline(always)]
pub fn is_enable(&self) -> bool {
*self == ISP_CMD_EN_A::ENABLE
}
}
#[doc = "Write proxy for field `ISP_CMD_EN`"]
pub struct ISP_CMD_EN_W<'a> {
w: &'a mut W,
}
impl<'a> ISP_CMD_EN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: ISP_CMD_EN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Disable"]
#[inline(always)]
pub fn disable(self) -> &'a mut W {
self.variant(ISP_CMD_EN_A::DISABLE)
}
#[doc = "Enable"]
#[inline(always)]
pub fn enable(self) -> &'a mut W {
self.variant(ISP_CMD_EN_A::ENABLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 6)) | (((value as u32) & 0x01) << 6);
self.w
}
}
#[doc = "Possible values of the field `FA_CMD_EN`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FA_CMD_EN_A {
#[doc = "Disable"]
DISABLE,
#[doc = "Enable"]
ENABLE,
}
impl From<FA_CMD_EN_A> for bool {
#[inline(always)]
fn from(variant: FA_CMD_EN_A) -> Self {
match variant {
FA_CMD_EN_A::DISABLE => false,
FA_CMD_EN_A::ENABLE => true,
}
}
}
#[doc = "Reader of field `FA_CMD_EN`"]
pub type FA_CMD_EN_R = crate::R<bool, FA_CMD_EN_A>;
impl FA_CMD_EN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> FA_CMD_EN_A {
match self.bits {
false => FA_CMD_EN_A::DISABLE,
true => FA_CMD_EN_A::ENABLE,
}
}
#[doc = "Checks if the value of the field is `DISABLE`"]
#[inline(always)]
pub fn is_disable(&self) -> bool {
*self == FA_CMD_EN_A::DISABLE
}
#[doc = "Checks if the value of the field is `ENABLE`"]
#[inline(always)]
pub fn is_enable(&self) -> bool {
*self == FA_CMD_EN_A::ENABLE
}
}
#[doc = "Write proxy for field `FA_CMD_EN`"]
pub struct FA_CMD_EN_W<'a> {
w: &'a mut W,
}
impl<'a> FA_CMD_EN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: FA_CMD_EN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Disable"]
#[inline(always)]
pub fn disable(self) -> &'a mut W {
self.variant(FA_CMD_EN_A::DISABLE)
}
#[doc = "Enable"]
#[inline(always)]
pub fn enable(self) -> &'a mut W {
self.variant(FA_CMD_EN_A::ENABLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 7)) | (((value as u32) & 0x01) << 7);
self.w
}
}
#[doc = "Possible values of the field `ME_CMD_EN`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ME_CMD_EN_A {
#[doc = "Disable"]
DISABLE,
#[doc = "Enable"]
ENABLE,
}
impl From<ME_CMD_EN_A> for bool {
#[inline(always)]
fn from(variant: ME_CMD_EN_A) -> Self {
match variant {
ME_CMD_EN_A::DISABLE => false,
ME_CMD_EN_A::ENABLE => true,
}
}
}
#[doc = "Reader of field `ME_CMD_EN`"]
pub type ME_CMD_EN_R = crate::R<bool, ME_CMD_EN_A>;
impl ME_CMD_EN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> ME_CMD_EN_A {
match self.bits {
false => ME_CMD_EN_A::DISABLE,
true => ME_CMD_EN_A::ENABLE,
}
}
#[doc = "Checks if the value of the field is `DISABLE`"]
#[inline(always)]
pub fn is_disable(&self) -> bool {
*self == ME_CMD_EN_A::DISABLE
}
#[doc = "Checks if the value of the field is `ENABLE`"]
#[inline(always)]
pub fn is_enable(&self) -> bool {
*self == ME_CMD_EN_A::ENABLE
}
}
#[doc = "Write proxy for field `ME_CMD_EN`"]
pub struct ME_CMD_EN_W<'a> {
w: &'a mut W,
}
impl<'a> ME_CMD_EN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: ME_CMD_EN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Disable"]
#[inline(always)]
pub fn disable(self) -> &'a mut W {
self.variant(ME_CMD_EN_A::DISABLE)
}
#[doc = "Enable"]
#[inline(always)]
pub fn enable(self) -> &'a mut W {
self.variant(ME_CMD_EN_A::ENABLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 8)) | (((value as u32) & 0x01) << 8);
self.w
}
}
#[doc = "Possible values of the field `MCM33_NIDEN`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum MCM33_NIDEN_A {
#[doc = "Disable"]
DISABLE,
#[doc = "Enable"]
ENABLE,
}
impl From<MCM33_NIDEN_A> for bool {
#[inline(always)]
fn from(variant: MCM33_NIDEN_A) -> Self {
match variant {
MCM33_NIDEN_A::DISABLE => false,
MCM33_NIDEN_A::ENABLE => true,
}
}
}
#[doc = "Reader of field `MCM33_NIDEN`"]
pub type MCM33_NIDEN_R = crate::R<bool, MCM33_NIDEN_A>;
impl MCM33_NIDEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> MCM33_NIDEN_A {
match self.bits {
false => MCM33_NIDEN_A::DISABLE,
true => MCM33_NIDEN_A::ENABLE,
}
}
#[doc = "Checks if the value of the field is `DISABLE`"]
#[inline(always)]
pub fn is_disable(&self) -> bool {
*self == MCM33_NIDEN_A::DISABLE
}
#[doc = "Checks if the value of the field is `ENABLE`"]
#[inline(always)]
pub fn is_enable(&self) -> bool {
*self == MCM33_NIDEN_A::ENABLE
}
}
#[doc = "Write proxy for field `MCM33_NIDEN`"]
pub struct MCM33_NIDEN_W<'a> {
w: &'a mut W,
}
impl<'a> MCM33_NIDEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: MCM33_NIDEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Disable"]
#[inline(always)]
pub fn disable(self) -> &'a mut W {
self.variant(MCM33_NIDEN_A::DISABLE)
}
#[doc = "Enable"]
#[inline(always)]
pub fn enable(self) -> &'a mut W {
self.variant(MCM33_NIDEN_A::ENABLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 9)) | (((value as u32) & 0x01) << 9);
self.w
}
}
#[doc = "Reader of field `INVERSE_VALUE`"]
pub type INVERSE_VALUE_R = crate::R<u16, u16>;
#[doc = "Write proxy for field `INVERSE_VALUE`"]
pub struct INVERSE_VALUE_W<'a> {
w: &'a mut W,
}
impl<'a> INVERSE_VALUE_W<'a> {
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u16) -> &'a mut W {
self.w.bits = (self.w.bits & !(0xffff << 16)) | (((value as u32) & 0xffff) << 16);
self.w
}
}
impl R {
#[doc = "Bit 0 - Non Secure non-invasive debug fixed state"]
#[inline(always)]
pub fn niden(&self) -> NIDEN_R {
NIDEN_R::new((self.bits & 0x01) != 0)
}
#[doc = "Bit 1 - Non Secure debug fixed state"]
#[inline(always)]
pub fn dbgen(&self) -> DBGEN_R {
DBGEN_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 2 - Secure non-invasive debug fixed state"]
#[inline(always)]
pub fn spniden(&self) -> SPNIDEN_R {
SPNIDEN_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 3 - Secure invasive debug fixed state"]
#[inline(always)]
pub fn spiden(&self) -> SPIDEN_R {
SPIDEN_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 4 - JTAG TAP fixed state"]
#[inline(always)]
pub fn tapen(&self) -> TAPEN_R {
TAPEN_R::new(((self.bits >> 4) & 0x01) != 0)
}
#[doc = "Bit 5 - Micro CM33 invasive debug fixed state"]
#[inline(always)]
pub fn mcm33_dbgen(&self) -> MCM33_DBGEN_R {
MCM33_DBGEN_R::new(((self.bits >> 5) & 0x01) != 0)
}
#[doc = "Bit 6 - ISP Boot Command fixed state"]
#[inline(always)]
pub fn isp_cmd_en(&self) -> ISP_CMD_EN_R {
ISP_CMD_EN_R::new(((self.bits >> 6) & 0x01) != 0)
}
#[doc = "Bit 7 - FA Command fixed state"]
#[inline(always)]
pub fn fa_cmd_en(&self) -> FA_CMD_EN_R {
FA_CMD_EN_R::new(((self.bits >> 7) & 0x01) != 0)
}
#[doc = "Bit 8 - Flash Mass Erase Command fixed state"]
#[inline(always)]
pub fn me_cmd_en(&self) -> ME_CMD_EN_R {
ME_CMD_EN_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bit 9 - Micro CM33 non-invasive debug fixed state"]
#[inline(always)]
pub fn mcm33_niden(&self) -> MCM33_NIDEN_R {
MCM33_NIDEN_R::new(((self.bits >> 9) & 0x01) != 0)
}
#[doc = "Bits 16:31 - inverse value of bits \\[15:0\\]"]
#[inline(always)]
pub fn inverse_value(&self) -> INVERSE_VALUE_R {
INVERSE_VALUE_R::new(((self.bits >> 16) & 0xffff) as u16)
}
}
impl W {
#[doc = "Bit 0 - Non Secure non-invasive debug fixed state"]
#[inline(always)]
pub fn niden(&mut self) -> NIDEN_W {
NIDEN_W { w: self }
}
#[doc = "Bit 1 - Non Secure debug fixed state"]
#[inline(always)]
pub fn dbgen(&mut self) -> DBGEN_W {
DBGEN_W { w: self }
}
#[doc = "Bit 2 - Secure non-invasive debug fixed state"]
#[inline(always)]
pub fn spniden(&mut self) -> SPNIDEN_W {
SPNIDEN_W { w: self }
}
#[doc = "Bit 3 - Secure invasive debug fixed state"]
#[inline(always)]
pub fn spiden(&mut self) -> SPIDEN_W {
SPIDEN_W { w: self }
}
#[doc = "Bit 4 - JTAG TAP fixed state"]
#[inline(always)]
pub fn tapen(&mut self) -> TAPEN_W {
TAPEN_W { w: self }
}
#[doc = "Bit 5 - Micro CM33 invasive debug fixed state"]
#[inline(always)]
pub fn mcm33_dbgen(&mut self) -> MCM33_DBGEN_W {
MCM33_DBGEN_W { w: self }
}
#[doc = "Bit 6 - ISP Boot Command fixed state"]
#[inline(always)]
pub fn isp_cmd_en(&mut self) -> ISP_CMD_EN_W {
ISP_CMD_EN_W { w: self }
}
#[doc = "Bit 7 - FA Command fixed state"]
#[inline(always)]
pub fn fa_cmd_en(&mut self) -> FA_CMD_EN_W {
FA_CMD_EN_W { w: self }
}
#[doc = "Bit 8 - Flash Mass Erase Command fixed state"]
#[inline(always)]
pub fn me_cmd_en(&mut self) -> ME_CMD_EN_W {
ME_CMD_EN_W { w: self }
}
#[doc = "Bit 9 - Micro CM33 non-invasive debug fixed state"]
#[inline(always)]
pub fn mcm33_niden(&mut self) -> MCM33_NIDEN_W {
MCM33_NIDEN_W { w: self }
}
#[doc = "Bits 16:31 - inverse value of bits \\[15:0\\]"]
#[inline(always)]
pub fn inverse_value(&mut self) -> INVERSE_VALUE_W {
INVERSE_VALUE_W { w: self }
}
}