#[doc = "Reader of register IRQSTATEN"]
pub type R = crate::R<u32, super::IRQSTATEN>;
#[doc = "Writer for register IRQSTATEN"]
pub type W = crate::W<u32, super::IRQSTATEN>;
#[doc = "Register IRQSTATEN `reset()`'s with value 0x117f_013f"]
impl crate::ResetValue for super::IRQSTATEN {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0x117f_013f
}
}
#[doc = "Command Complete Status Enable\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CCSEN_A {
#[doc = "0: Masked"]
_0,
#[doc = "1: Enabled"]
_1,
}
impl From<CCSEN_A> for bool {
#[inline(always)]
fn from(variant: CCSEN_A) -> Self {
match variant {
CCSEN_A::_0 => false,
CCSEN_A::_1 => true,
}
}
}
#[doc = "Reader of field `CCSEN`"]
pub type CCSEN_R = crate::R<bool, CCSEN_A>;
impl CCSEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> CCSEN_A {
match self.bits {
false => CCSEN_A::_0,
true => CCSEN_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pub fn is_0(&self) -> bool {
*self == CCSEN_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pub fn is_1(&self) -> bool {
*self == CCSEN_A::_1
}
}
#[doc = "Write proxy for field `CCSEN`"]
pub struct CCSEN_W<'a> {
w: &'a mut W,
}
impl<'a> CCSEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: CCSEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Masked"]
#[inline(always)]
pub fn _0(self) -> &'a mut W {
self.variant(CCSEN_A::_0)
}
#[doc = "Enabled"]
#[inline(always)]
pub fn _1(self) -> &'a mut W {
self.variant(CCSEN_A::_1)
}
#[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 = "Transfer Complete Status Enable\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum TCSEN_A {
#[doc = "0: Masked"]
_0,
#[doc = "1: Enabled"]
_1,
}
impl From<TCSEN_A> for bool {
#[inline(always)]
fn from(variant: TCSEN_A) -> Self {
match variant {
TCSEN_A::_0 => false,
TCSEN_A::_1 => true,
}
}
}
#[doc = "Reader of field `TCSEN`"]
pub type TCSEN_R = crate::R<bool, TCSEN_A>;
impl TCSEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> TCSEN_A {
match self.bits {
false => TCSEN_A::_0,
true => TCSEN_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pub fn is_0(&self) -> bool {
*self == TCSEN_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pub fn is_1(&self) -> bool {
*self == TCSEN_A::_1
}
}
#[doc = "Write proxy for field `TCSEN`"]
pub struct TCSEN_W<'a> {
w: &'a mut W,
}
impl<'a> TCSEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: TCSEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Masked"]
#[inline(always)]
pub fn _0(self) -> &'a mut W {
self.variant(TCSEN_A::_0)
}
#[doc = "Enabled"]
#[inline(always)]
pub fn _1(self) -> &'a mut W {
self.variant(TCSEN_A::_1)
}
#[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 = "Block Gap Event Status Enable\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum BGESEN_A {
#[doc = "0: Masked"]
_0,
#[doc = "1: Enabled"]
_1,
}
impl From<BGESEN_A> for bool {
#[inline(always)]
fn from(variant: BGESEN_A) -> Self {
match variant {
BGESEN_A::_0 => false,
BGESEN_A::_1 => true,
}
}
}
#[doc = "Reader of field `BGESEN`"]
pub type BGESEN_R = crate::R<bool, BGESEN_A>;
impl BGESEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> BGESEN_A {
match self.bits {
false => BGESEN_A::_0,
true => BGESEN_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pub fn is_0(&self) -> bool {
*self == BGESEN_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pub fn is_1(&self) -> bool {
*self == BGESEN_A::_1
}
}
#[doc = "Write proxy for field `BGESEN`"]
pub struct BGESEN_W<'a> {
w: &'a mut W,
}
impl<'a> BGESEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: BGESEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Masked"]
#[inline(always)]
pub fn _0(self) -> &'a mut W {
self.variant(BGESEN_A::_0)
}
#[doc = "Enabled"]
#[inline(always)]
pub fn _1(self) -> &'a mut W {
self.variant(BGESEN_A::_1)
}
#[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 = "DMA Interrupt Status Enable\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DINTSEN_A {
#[doc = "0: Masked"]
_0,
#[doc = "1: Enabled"]
_1,
}
impl From<DINTSEN_A> for bool {
#[inline(always)]
fn from(variant: DINTSEN_A) -> Self {
match variant {
DINTSEN_A::_0 => false,
DINTSEN_A::_1 => true,
}
}
}
#[doc = "Reader of field `DINTSEN`"]
pub type DINTSEN_R = crate::R<bool, DINTSEN_A>;
impl DINTSEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> DINTSEN_A {
match self.bits {
false => DINTSEN_A::_0,
true => DINTSEN_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pub fn is_0(&self) -> bool {
*self == DINTSEN_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pub fn is_1(&self) -> bool {
*self == DINTSEN_A::_1
}
}
#[doc = "Write proxy for field `DINTSEN`"]
pub struct DINTSEN_W<'a> {
w: &'a mut W,
}
impl<'a> DINTSEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: DINTSEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Masked"]
#[inline(always)]
pub fn _0(self) -> &'a mut W {
self.variant(DINTSEN_A::_0)
}
#[doc = "Enabled"]
#[inline(always)]
pub fn _1(self) -> &'a mut W {
self.variant(DINTSEN_A::_1)
}
#[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 = "Buffer Write Ready Status Enable\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum BWRSEN_A {
#[doc = "0: Masked"]
_0,
#[doc = "1: Enabled"]
_1,
}
impl From<BWRSEN_A> for bool {
#[inline(always)]
fn from(variant: BWRSEN_A) -> Self {
match variant {
BWRSEN_A::_0 => false,
BWRSEN_A::_1 => true,
}
}
}
#[doc = "Reader of field `BWRSEN`"]
pub type BWRSEN_R = crate::R<bool, BWRSEN_A>;
impl BWRSEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> BWRSEN_A {
match self.bits {
false => BWRSEN_A::_0,
true => BWRSEN_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pub fn is_0(&self) -> bool {
*self == BWRSEN_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pub fn is_1(&self) -> bool {
*self == BWRSEN_A::_1
}
}
#[doc = "Write proxy for field `BWRSEN`"]
pub struct BWRSEN_W<'a> {
w: &'a mut W,
}
impl<'a> BWRSEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: BWRSEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Masked"]
#[inline(always)]
pub fn _0(self) -> &'a mut W {
self.variant(BWRSEN_A::_0)
}
#[doc = "Enabled"]
#[inline(always)]
pub fn _1(self) -> &'a mut W {
self.variant(BWRSEN_A::_1)
}
#[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 = "Buffer Read Ready Status Enable\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum BRRSEN_A {
#[doc = "0: Masked"]
_0,
#[doc = "1: Enabled"]
_1,
}
impl From<BRRSEN_A> for bool {
#[inline(always)]
fn from(variant: BRRSEN_A) -> Self {
match variant {
BRRSEN_A::_0 => false,
BRRSEN_A::_1 => true,
}
}
}
#[doc = "Reader of field `BRRSEN`"]
pub type BRRSEN_R = crate::R<bool, BRRSEN_A>;
impl BRRSEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> BRRSEN_A {
match self.bits {
false => BRRSEN_A::_0,
true => BRRSEN_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pub fn is_0(&self) -> bool {
*self == BRRSEN_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pub fn is_1(&self) -> bool {
*self == BRRSEN_A::_1
}
}
#[doc = "Write proxy for field `BRRSEN`"]
pub struct BRRSEN_W<'a> {
w: &'a mut W,
}
impl<'a> BRRSEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: BRRSEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Masked"]
#[inline(always)]
pub fn _0(self) -> &'a mut W {
self.variant(BRRSEN_A::_0)
}
#[doc = "Enabled"]
#[inline(always)]
pub fn _1(self) -> &'a mut W {
self.variant(BRRSEN_A::_1)
}
#[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 = "Card Insertion Status Enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CINSEN_A {
#[doc = "0: Masked"]
_0,
#[doc = "1: Enabled"]
_1,
}
impl From<CINSEN_A> for bool {
#[inline(always)]
fn from(variant: CINSEN_A) -> Self {
match variant {
CINSEN_A::_0 => false,
CINSEN_A::_1 => true,
}
}
}
#[doc = "Reader of field `CINSEN`"]
pub type CINSEN_R = crate::R<bool, CINSEN_A>;
impl CINSEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> CINSEN_A {
match self.bits {
false => CINSEN_A::_0,
true => CINSEN_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pub fn is_0(&self) -> bool {
*self == CINSEN_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pub fn is_1(&self) -> bool {
*self == CINSEN_A::_1
}
}
#[doc = "Write proxy for field `CINSEN`"]
pub struct CINSEN_W<'a> {
w: &'a mut W,
}
impl<'a> CINSEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: CINSEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Masked"]
#[inline(always)]
pub fn _0(self) -> &'a mut W {
self.variant(CINSEN_A::_0)
}
#[doc = "Enabled"]
#[inline(always)]
pub fn _1(self) -> &'a mut W {
self.variant(CINSEN_A::_1)
}
#[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 = "Card Removal Status Enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CRMSEN_A {
#[doc = "0: Masked"]
_0,
#[doc = "1: Enabled"]
_1,
}
impl From<CRMSEN_A> for bool {
#[inline(always)]
fn from(variant: CRMSEN_A) -> Self {
match variant {
CRMSEN_A::_0 => false,
CRMSEN_A::_1 => true,
}
}
}
#[doc = "Reader of field `CRMSEN`"]
pub type CRMSEN_R = crate::R<bool, CRMSEN_A>;
impl CRMSEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> CRMSEN_A {
match self.bits {
false => CRMSEN_A::_0,
true => CRMSEN_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pub fn is_0(&self) -> bool {
*self == CRMSEN_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pub fn is_1(&self) -> bool {
*self == CRMSEN_A::_1
}
}
#[doc = "Write proxy for field `CRMSEN`"]
pub struct CRMSEN_W<'a> {
w: &'a mut W,
}
impl<'a> CRMSEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: CRMSEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Masked"]
#[inline(always)]
pub fn _0(self) -> &'a mut W {
self.variant(CRMSEN_A::_0)
}
#[doc = "Enabled"]
#[inline(always)]
pub fn _1(self) -> &'a mut W {
self.variant(CRMSEN_A::_1)
}
#[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 = "Card Interrupt Status Enable\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CINTSEN_A {
#[doc = "0: Masked"]
_0,
#[doc = "1: Enabled"]
_1,
}
impl From<CINTSEN_A> for bool {
#[inline(always)]
fn from(variant: CINTSEN_A) -> Self {
match variant {
CINTSEN_A::_0 => false,
CINTSEN_A::_1 => true,
}
}
}
#[doc = "Reader of field `CINTSEN`"]
pub type CINTSEN_R = crate::R<bool, CINTSEN_A>;
impl CINTSEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> CINTSEN_A {
match self.bits {
false => CINTSEN_A::_0,
true => CINTSEN_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pub fn is_0(&self) -> bool {
*self == CINTSEN_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pub fn is_1(&self) -> bool {
*self == CINTSEN_A::_1
}
}
#[doc = "Write proxy for field `CINTSEN`"]
pub struct CINTSEN_W<'a> {
w: &'a mut W,
}
impl<'a> CINTSEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: CINTSEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Masked"]
#[inline(always)]
pub fn _0(self) -> &'a mut W {
self.variant(CINTSEN_A::_0)
}
#[doc = "Enabled"]
#[inline(always)]
pub fn _1(self) -> &'a mut W {
self.variant(CINTSEN_A::_1)
}
#[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 = "Command Timeout Error Status Enable\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CTOESEN_A {
#[doc = "0: Masked"]
_0,
#[doc = "1: Enabled"]
_1,
}
impl From<CTOESEN_A> for bool {
#[inline(always)]
fn from(variant: CTOESEN_A) -> Self {
match variant {
CTOESEN_A::_0 => false,
CTOESEN_A::_1 => true,
}
}
}
#[doc = "Reader of field `CTOESEN`"]
pub type CTOESEN_R = crate::R<bool, CTOESEN_A>;
impl CTOESEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> CTOESEN_A {
match self.bits {
false => CTOESEN_A::_0,
true => CTOESEN_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pub fn is_0(&self) -> bool {
*self == CTOESEN_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pub fn is_1(&self) -> bool {
*self == CTOESEN_A::_1
}
}
#[doc = "Write proxy for field `CTOESEN`"]
pub struct CTOESEN_W<'a> {
w: &'a mut W,
}
impl<'a> CTOESEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: CTOESEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Masked"]
#[inline(always)]
pub fn _0(self) -> &'a mut W {
self.variant(CTOESEN_A::_0)
}
#[doc = "Enabled"]
#[inline(always)]
pub fn _1(self) -> &'a mut W {
self.variant(CTOESEN_A::_1)
}
#[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 << 16)) | (((value as u32) & 0x01) << 16);
self.w
}
}
#[doc = "Command CRC Error Status Enable\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CCESEN_A {
#[doc = "0: Masked"]
_0,
#[doc = "1: Enabled"]
_1,
}
impl From<CCESEN_A> for bool {
#[inline(always)]
fn from(variant: CCESEN_A) -> Self {
match variant {
CCESEN_A::_0 => false,
CCESEN_A::_1 => true,
}
}
}
#[doc = "Reader of field `CCESEN`"]
pub type CCESEN_R = crate::R<bool, CCESEN_A>;
impl CCESEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> CCESEN_A {
match self.bits {
false => CCESEN_A::_0,
true => CCESEN_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pub fn is_0(&self) -> bool {
*self == CCESEN_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pub fn is_1(&self) -> bool {
*self == CCESEN_A::_1
}
}
#[doc = "Write proxy for field `CCESEN`"]
pub struct CCESEN_W<'a> {
w: &'a mut W,
}
impl<'a> CCESEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: CCESEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Masked"]
#[inline(always)]
pub fn _0(self) -> &'a mut W {
self.variant(CCESEN_A::_0)
}
#[doc = "Enabled"]
#[inline(always)]
pub fn _1(self) -> &'a mut W {
self.variant(CCESEN_A::_1)
}
#[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 << 17)) | (((value as u32) & 0x01) << 17);
self.w
}
}
#[doc = "Command End Bit Error Status Enable\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CEBESEN_A {
#[doc = "0: Masked"]
_0,
#[doc = "1: Enabled"]
_1,
}
impl From<CEBESEN_A> for bool {
#[inline(always)]
fn from(variant: CEBESEN_A) -> Self {
match variant {
CEBESEN_A::_0 => false,
CEBESEN_A::_1 => true,
}
}
}
#[doc = "Reader of field `CEBESEN`"]
pub type CEBESEN_R = crate::R<bool, CEBESEN_A>;
impl CEBESEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> CEBESEN_A {
match self.bits {
false => CEBESEN_A::_0,
true => CEBESEN_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pub fn is_0(&self) -> bool {
*self == CEBESEN_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pub fn is_1(&self) -> bool {
*self == CEBESEN_A::_1
}
}
#[doc = "Write proxy for field `CEBESEN`"]
pub struct CEBESEN_W<'a> {
w: &'a mut W,
}
impl<'a> CEBESEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: CEBESEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Masked"]
#[inline(always)]
pub fn _0(self) -> &'a mut W {
self.variant(CEBESEN_A::_0)
}
#[doc = "Enabled"]
#[inline(always)]
pub fn _1(self) -> &'a mut W {
self.variant(CEBESEN_A::_1)
}
#[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 << 18)) | (((value as u32) & 0x01) << 18);
self.w
}
}
#[doc = "Command Index Error Status Enable\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CIESEN_A {
#[doc = "0: Masked"]
_0,
#[doc = "1: Enabled"]
_1,
}
impl From<CIESEN_A> for bool {
#[inline(always)]
fn from(variant: CIESEN_A) -> Self {
match variant {
CIESEN_A::_0 => false,
CIESEN_A::_1 => true,
}
}
}
#[doc = "Reader of field `CIESEN`"]
pub type CIESEN_R = crate::R<bool, CIESEN_A>;
impl CIESEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> CIESEN_A {
match self.bits {
false => CIESEN_A::_0,
true => CIESEN_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pub fn is_0(&self) -> bool {
*self == CIESEN_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pub fn is_1(&self) -> bool {
*self == CIESEN_A::_1
}
}
#[doc = "Write proxy for field `CIESEN`"]
pub struct CIESEN_W<'a> {
w: &'a mut W,
}
impl<'a> CIESEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: CIESEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Masked"]
#[inline(always)]
pub fn _0(self) -> &'a mut W {
self.variant(CIESEN_A::_0)
}
#[doc = "Enabled"]
#[inline(always)]
pub fn _1(self) -> &'a mut W {
self.variant(CIESEN_A::_1)
}
#[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 << 19)) | (((value as u32) & 0x01) << 19);
self.w
}
}
#[doc = "Data Timeout Error Status Enable\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DTOESEN_A {
#[doc = "0: Masked"]
_0,
#[doc = "1: Enabled"]
_1,
}
impl From<DTOESEN_A> for bool {
#[inline(always)]
fn from(variant: DTOESEN_A) -> Self {
match variant {
DTOESEN_A::_0 => false,
DTOESEN_A::_1 => true,
}
}
}
#[doc = "Reader of field `DTOESEN`"]
pub type DTOESEN_R = crate::R<bool, DTOESEN_A>;
impl DTOESEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> DTOESEN_A {
match self.bits {
false => DTOESEN_A::_0,
true => DTOESEN_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pub fn is_0(&self) -> bool {
*self == DTOESEN_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pub fn is_1(&self) -> bool {
*self == DTOESEN_A::_1
}
}
#[doc = "Write proxy for field `DTOESEN`"]
pub struct DTOESEN_W<'a> {
w: &'a mut W,
}
impl<'a> DTOESEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: DTOESEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Masked"]
#[inline(always)]
pub fn _0(self) -> &'a mut W {
self.variant(DTOESEN_A::_0)
}
#[doc = "Enabled"]
#[inline(always)]
pub fn _1(self) -> &'a mut W {
self.variant(DTOESEN_A::_1)
}
#[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 << 20)) | (((value as u32) & 0x01) << 20);
self.w
}
}
#[doc = "Data CRC Error Status Enable\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DCESEN_A {
#[doc = "0: Masked"]
_0,
#[doc = "1: Enabled"]
_1,
}
impl From<DCESEN_A> for bool {
#[inline(always)]
fn from(variant: DCESEN_A) -> Self {
match variant {
DCESEN_A::_0 => false,
DCESEN_A::_1 => true,
}
}
}
#[doc = "Reader of field `DCESEN`"]
pub type DCESEN_R = crate::R<bool, DCESEN_A>;
impl DCESEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> DCESEN_A {
match self.bits {
false => DCESEN_A::_0,
true => DCESEN_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pub fn is_0(&self) -> bool {
*self == DCESEN_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pub fn is_1(&self) -> bool {
*self == DCESEN_A::_1
}
}
#[doc = "Write proxy for field `DCESEN`"]
pub struct DCESEN_W<'a> {
w: &'a mut W,
}
impl<'a> DCESEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: DCESEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Masked"]
#[inline(always)]
pub fn _0(self) -> &'a mut W {
self.variant(DCESEN_A::_0)
}
#[doc = "Enabled"]
#[inline(always)]
pub fn _1(self) -> &'a mut W {
self.variant(DCESEN_A::_1)
}
#[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 << 21)) | (((value as u32) & 0x01) << 21);
self.w
}
}
#[doc = "Data End Bit Error Status Enable\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DEBESEN_A {
#[doc = "0: Masked"]
_0,
#[doc = "1: Enabled"]
_1,
}
impl From<DEBESEN_A> for bool {
#[inline(always)]
fn from(variant: DEBESEN_A) -> Self {
match variant {
DEBESEN_A::_0 => false,
DEBESEN_A::_1 => true,
}
}
}
#[doc = "Reader of field `DEBESEN`"]
pub type DEBESEN_R = crate::R<bool, DEBESEN_A>;
impl DEBESEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> DEBESEN_A {
match self.bits {
false => DEBESEN_A::_0,
true => DEBESEN_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pub fn is_0(&self) -> bool {
*self == DEBESEN_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pub fn is_1(&self) -> bool {
*self == DEBESEN_A::_1
}
}
#[doc = "Write proxy for field `DEBESEN`"]
pub struct DEBESEN_W<'a> {
w: &'a mut W,
}
impl<'a> DEBESEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: DEBESEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Masked"]
#[inline(always)]
pub fn _0(self) -> &'a mut W {
self.variant(DEBESEN_A::_0)
}
#[doc = "Enabled"]
#[inline(always)]
pub fn _1(self) -> &'a mut W {
self.variant(DEBESEN_A::_1)
}
#[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 << 22)) | (((value as u32) & 0x01) << 22);
self.w
}
}
#[doc = "Auto CMD12 Error Status Enable\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum AC12ESEN_A {
#[doc = "0: Masked"]
_0,
#[doc = "1: Enabled"]
_1,
}
impl From<AC12ESEN_A> for bool {
#[inline(always)]
fn from(variant: AC12ESEN_A) -> Self {
match variant {
AC12ESEN_A::_0 => false,
AC12ESEN_A::_1 => true,
}
}
}
#[doc = "Reader of field `AC12ESEN`"]
pub type AC12ESEN_R = crate::R<bool, AC12ESEN_A>;
impl AC12ESEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> AC12ESEN_A {
match self.bits {
false => AC12ESEN_A::_0,
true => AC12ESEN_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pub fn is_0(&self) -> bool {
*self == AC12ESEN_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pub fn is_1(&self) -> bool {
*self == AC12ESEN_A::_1
}
}
#[doc = "Write proxy for field `AC12ESEN`"]
pub struct AC12ESEN_W<'a> {
w: &'a mut W,
}
impl<'a> AC12ESEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: AC12ESEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Masked"]
#[inline(always)]
pub fn _0(self) -> &'a mut W {
self.variant(AC12ESEN_A::_0)
}
#[doc = "Enabled"]
#[inline(always)]
pub fn _1(self) -> &'a mut W {
self.variant(AC12ESEN_A::_1)
}
#[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 << 24)) | (((value as u32) & 0x01) << 24);
self.w
}
}
#[doc = "DMA Error Status Enable\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DMAESEN_A {
#[doc = "0: Masked"]
_0,
#[doc = "1: Enabled"]
_1,
}
impl From<DMAESEN_A> for bool {
#[inline(always)]
fn from(variant: DMAESEN_A) -> Self {
match variant {
DMAESEN_A::_0 => false,
DMAESEN_A::_1 => true,
}
}
}
#[doc = "Reader of field `DMAESEN`"]
pub type DMAESEN_R = crate::R<bool, DMAESEN_A>;
impl DMAESEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> DMAESEN_A {
match self.bits {
false => DMAESEN_A::_0,
true => DMAESEN_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pub fn is_0(&self) -> bool {
*self == DMAESEN_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pub fn is_1(&self) -> bool {
*self == DMAESEN_A::_1
}
}
#[doc = "Write proxy for field `DMAESEN`"]
pub struct DMAESEN_W<'a> {
w: &'a mut W,
}
impl<'a> DMAESEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: DMAESEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Masked"]
#[inline(always)]
pub fn _0(self) -> &'a mut W {
self.variant(DMAESEN_A::_0)
}
#[doc = "Enabled"]
#[inline(always)]
pub fn _1(self) -> &'a mut W {
self.variant(DMAESEN_A::_1)
}
#[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 << 28)) | (((value as u32) & 0x01) << 28);
self.w
}
}
impl R {
#[doc = "Bit 0 - Command Complete Status Enable"]
#[inline(always)]
pub fn ccsen(&self) -> CCSEN_R {
CCSEN_R::new((self.bits & 0x01) != 0)
}
#[doc = "Bit 1 - Transfer Complete Status Enable"]
#[inline(always)]
pub fn tcsen(&self) -> TCSEN_R {
TCSEN_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 2 - Block Gap Event Status Enable"]
#[inline(always)]
pub fn bgesen(&self) -> BGESEN_R {
BGESEN_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 3 - DMA Interrupt Status Enable"]
#[inline(always)]
pub fn dintsen(&self) -> DINTSEN_R {
DINTSEN_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 4 - Buffer Write Ready Status Enable"]
#[inline(always)]
pub fn bwrsen(&self) -> BWRSEN_R {
BWRSEN_R::new(((self.bits >> 4) & 0x01) != 0)
}
#[doc = "Bit 5 - Buffer Read Ready Status Enable"]
#[inline(always)]
pub fn brrsen(&self) -> BRRSEN_R {
BRRSEN_R::new(((self.bits >> 5) & 0x01) != 0)
}
#[doc = "Bit 6 - Card Insertion Status Enable"]
#[inline(always)]
pub fn cinsen(&self) -> CINSEN_R {
CINSEN_R::new(((self.bits >> 6) & 0x01) != 0)
}
#[doc = "Bit 7 - Card Removal Status Enable"]
#[inline(always)]
pub fn crmsen(&self) -> CRMSEN_R {
CRMSEN_R::new(((self.bits >> 7) & 0x01) != 0)
}
#[doc = "Bit 8 - Card Interrupt Status Enable"]
#[inline(always)]
pub fn cintsen(&self) -> CINTSEN_R {
CINTSEN_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bit 16 - Command Timeout Error Status Enable"]
#[inline(always)]
pub fn ctoesen(&self) -> CTOESEN_R {
CTOESEN_R::new(((self.bits >> 16) & 0x01) != 0)
}
#[doc = "Bit 17 - Command CRC Error Status Enable"]
#[inline(always)]
pub fn ccesen(&self) -> CCESEN_R {
CCESEN_R::new(((self.bits >> 17) & 0x01) != 0)
}
#[doc = "Bit 18 - Command End Bit Error Status Enable"]
#[inline(always)]
pub fn cebesen(&self) -> CEBESEN_R {
CEBESEN_R::new(((self.bits >> 18) & 0x01) != 0)
}
#[doc = "Bit 19 - Command Index Error Status Enable"]
#[inline(always)]
pub fn ciesen(&self) -> CIESEN_R {
CIESEN_R::new(((self.bits >> 19) & 0x01) != 0)
}
#[doc = "Bit 20 - Data Timeout Error Status Enable"]
#[inline(always)]
pub fn dtoesen(&self) -> DTOESEN_R {
DTOESEN_R::new(((self.bits >> 20) & 0x01) != 0)
}
#[doc = "Bit 21 - Data CRC Error Status Enable"]
#[inline(always)]
pub fn dcesen(&self) -> DCESEN_R {
DCESEN_R::new(((self.bits >> 21) & 0x01) != 0)
}
#[doc = "Bit 22 - Data End Bit Error Status Enable"]
#[inline(always)]
pub fn debesen(&self) -> DEBESEN_R {
DEBESEN_R::new(((self.bits >> 22) & 0x01) != 0)
}
#[doc = "Bit 24 - Auto CMD12 Error Status Enable"]
#[inline(always)]
pub fn ac12esen(&self) -> AC12ESEN_R {
AC12ESEN_R::new(((self.bits >> 24) & 0x01) != 0)
}
#[doc = "Bit 28 - DMA Error Status Enable"]
#[inline(always)]
pub fn dmaesen(&self) -> DMAESEN_R {
DMAESEN_R::new(((self.bits >> 28) & 0x01) != 0)
}
}
impl W {
#[doc = "Bit 0 - Command Complete Status Enable"]
#[inline(always)]
pub fn ccsen(&mut self) -> CCSEN_W {
CCSEN_W { w: self }
}
#[doc = "Bit 1 - Transfer Complete Status Enable"]
#[inline(always)]
pub fn tcsen(&mut self) -> TCSEN_W {
TCSEN_W { w: self }
}
#[doc = "Bit 2 - Block Gap Event Status Enable"]
#[inline(always)]
pub fn bgesen(&mut self) -> BGESEN_W {
BGESEN_W { w: self }
}
#[doc = "Bit 3 - DMA Interrupt Status Enable"]
#[inline(always)]
pub fn dintsen(&mut self) -> DINTSEN_W {
DINTSEN_W { w: self }
}
#[doc = "Bit 4 - Buffer Write Ready Status Enable"]
#[inline(always)]
pub fn bwrsen(&mut self) -> BWRSEN_W {
BWRSEN_W { w: self }
}
#[doc = "Bit 5 - Buffer Read Ready Status Enable"]
#[inline(always)]
pub fn brrsen(&mut self) -> BRRSEN_W {
BRRSEN_W { w: self }
}
#[doc = "Bit 6 - Card Insertion Status Enable"]
#[inline(always)]
pub fn cinsen(&mut self) -> CINSEN_W {
CINSEN_W { w: self }
}
#[doc = "Bit 7 - Card Removal Status Enable"]
#[inline(always)]
pub fn crmsen(&mut self) -> CRMSEN_W {
CRMSEN_W { w: self }
}
#[doc = "Bit 8 - Card Interrupt Status Enable"]
#[inline(always)]
pub fn cintsen(&mut self) -> CINTSEN_W {
CINTSEN_W { w: self }
}
#[doc = "Bit 16 - Command Timeout Error Status Enable"]
#[inline(always)]
pub fn ctoesen(&mut self) -> CTOESEN_W {
CTOESEN_W { w: self }
}
#[doc = "Bit 17 - Command CRC Error Status Enable"]
#[inline(always)]
pub fn ccesen(&mut self) -> CCESEN_W {
CCESEN_W { w: self }
}
#[doc = "Bit 18 - Command End Bit Error Status Enable"]
#[inline(always)]
pub fn cebesen(&mut self) -> CEBESEN_W {
CEBESEN_W { w: self }
}
#[doc = "Bit 19 - Command Index Error Status Enable"]
#[inline(always)]
pub fn ciesen(&mut self) -> CIESEN_W {
CIESEN_W { w: self }
}
#[doc = "Bit 20 - Data Timeout Error Status Enable"]
#[inline(always)]
pub fn dtoesen(&mut self) -> DTOESEN_W {
DTOESEN_W { w: self }
}
#[doc = "Bit 21 - Data CRC Error Status Enable"]
#[inline(always)]
pub fn dcesen(&mut self) -> DCESEN_W {
DCESEN_W { w: self }
}
#[doc = "Bit 22 - Data End Bit Error Status Enable"]
#[inline(always)]
pub fn debesen(&mut self) -> DEBESEN_W {
DEBESEN_W { w: self }
}
#[doc = "Bit 24 - Auto CMD12 Error Status Enable"]
#[inline(always)]
pub fn ac12esen(&mut self) -> AC12ESEN_W {
AC12ESEN_W { w: self }
}
#[doc = "Bit 28 - DMA Error Status Enable"]
#[inline(always)]
pub fn dmaesen(&mut self) -> DMAESEN_W {
DMAESEN_W { w: self }
}
}