#[doc = "Reader of register SR"]
pub type R = crate::R<u32, super::SR>;
#[doc = "Writer for register SR"]
pub type W = crate::W<u32, super::SR>;
#[doc = "Register SR `reset()`'s with value 0x04"]
impl crate::ResetValue for super::SR {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0x04
}
}
#[doc = "Write/erase operations in progress\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum BSY_A {
#[doc = "0: No write/erase operation is in progress"]
INACTIVE,
#[doc = "1: No write/erase operation is in progress"]
ACTIVE,
}
impl From<BSY_A> for bool {
#[inline(always)]
fn from(variant: BSY_A) -> Self {
match variant {
BSY_A::INACTIVE => false,
BSY_A::ACTIVE => true,
}
}
}
#[doc = "Reader of field `BSY`"]
pub type BSY_R = crate::R<bool, BSY_A>;
impl BSY_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> BSY_A {
match self.bits {
false => BSY_A::INACTIVE,
true => BSY_A::ACTIVE,
}
}
#[doc = "Checks if the value of the field is `INACTIVE`"]
#[inline(always)]
pub fn is_inactive(&self) -> bool {
*self == BSY_A::INACTIVE
}
#[doc = "Checks if the value of the field is `ACTIVE`"]
#[inline(always)]
pub fn is_active(&self) -> bool {
*self == BSY_A::ACTIVE
}
}
#[doc = "End of operation\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum EOP_A {
#[doc = "0: No EOP operation occurred"]
NOEVENT,
#[doc = "1: An EOP event occurred"]
EVENT,
}
impl From<EOP_A> for bool {
#[inline(always)]
fn from(variant: EOP_A) -> Self {
match variant {
EOP_A::NOEVENT => false,
EOP_A::EVENT => true,
}
}
}
#[doc = "Reader of field `EOP`"]
pub type EOP_R = crate::R<bool, EOP_A>;
impl EOP_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> EOP_A {
match self.bits {
false => EOP_A::NOEVENT,
true => EOP_A::EVENT,
}
}
#[doc = "Checks if the value of the field is `NOEVENT`"]
#[inline(always)]
pub fn is_no_event(&self) -> bool {
*self == EOP_A::NOEVENT
}
#[doc = "Checks if the value of the field is `EVENT`"]
#[inline(always)]
pub fn is_event(&self) -> bool {
*self == EOP_A::EVENT
}
}
#[doc = "End of high voltage\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ENDHV_A {
#[doc = "0: High voltage is executing a write/erase operation in the NVM"]
ACTIVE,
#[doc = "1: High voltage is off, no write/erase operation is ongoing"]
INACTIVE,
}
impl From<ENDHV_A> for bool {
#[inline(always)]
fn from(variant: ENDHV_A) -> Self {
match variant {
ENDHV_A::ACTIVE => false,
ENDHV_A::INACTIVE => true,
}
}
}
#[doc = "Reader of field `ENDHV`"]
pub type ENDHV_R = crate::R<bool, ENDHV_A>;
impl ENDHV_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> ENDHV_A {
match self.bits {
false => ENDHV_A::ACTIVE,
true => ENDHV_A::INACTIVE,
}
}
#[doc = "Checks if the value of the field is `ACTIVE`"]
#[inline(always)]
pub fn is_active(&self) -> bool {
*self == ENDHV_A::ACTIVE
}
#[doc = "Checks if the value of the field is `INACTIVE`"]
#[inline(always)]
pub fn is_inactive(&self) -> bool {
*self == ENDHV_A::INACTIVE
}
}
#[doc = "Flash memory module ready after low power mode\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum READY_A {
#[doc = "0: The NVM is not ready"]
NOTREADY,
#[doc = "1: The NVM is ready"]
READY,
}
impl From<READY_A> for bool {
#[inline(always)]
fn from(variant: READY_A) -> Self {
match variant {
READY_A::NOTREADY => false,
READY_A::READY => true,
}
}
}
#[doc = "Reader of field `READY`"]
pub type READY_R = crate::R<bool, READY_A>;
impl READY_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> READY_A {
match self.bits {
false => READY_A::NOTREADY,
true => READY_A::READY,
}
}
#[doc = "Checks if the value of the field is `NOTREADY`"]
#[inline(always)]
pub fn is_not_ready(&self) -> bool {
*self == READY_A::NOTREADY
}
#[doc = "Checks if the value of the field is `READY`"]
#[inline(always)]
pub fn is_ready(&self) -> bool {
*self == READY_A::READY
}
}
#[doc = "Write protected error\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum WRPERR_A {
#[doc = "0: No protection error happened"]
NOERROR,
#[doc = "1: One protection error happened"]
ERROR,
}
impl From<WRPERR_A> for bool {
#[inline(always)]
fn from(variant: WRPERR_A) -> Self {
match variant {
WRPERR_A::NOERROR => false,
WRPERR_A::ERROR => true,
}
}
}
#[doc = "Reader of field `WRPERR`"]
pub type WRPERR_R = crate::R<bool, WRPERR_A>;
impl WRPERR_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> WRPERR_A {
match self.bits {
false => WRPERR_A::NOERROR,
true => WRPERR_A::ERROR,
}
}
#[doc = "Checks if the value of the field is `NOERROR`"]
#[inline(always)]
pub fn is_no_error(&self) -> bool {
*self == WRPERR_A::NOERROR
}
#[doc = "Checks if the value of the field is `ERROR`"]
#[inline(always)]
pub fn is_error(&self) -> bool {
*self == WRPERR_A::ERROR
}
}
#[doc = "Write protected error\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum WRPERR_AW {
#[doc = "1: Clear the flag"]
CLEAR,
}
impl From<WRPERR_AW> for bool {
#[inline(always)]
fn from(variant: WRPERR_AW) -> Self {
match variant {
WRPERR_AW::CLEAR => true,
}
}
}
#[doc = "Write proxy for field `WRPERR`"]
pub struct WRPERR_W<'a> {
w: &'a mut W,
}
impl<'a> WRPERR_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: WRPERR_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Clear the flag"]
#[inline(always)]
pub fn clear(self) -> &'a mut W {
self.variant(WRPERR_AW::CLEAR)
}
#[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 = "Programming alignment error\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PGAERR_A {
#[doc = "0: No alignment error happened"]
NOERROR,
#[doc = "1: One alignment error happened"]
ERROR,
}
impl From<PGAERR_A> for bool {
#[inline(always)]
fn from(variant: PGAERR_A) -> Self {
match variant {
PGAERR_A::NOERROR => false,
PGAERR_A::ERROR => true,
}
}
}
#[doc = "Reader of field `PGAERR`"]
pub type PGAERR_R = crate::R<bool, PGAERR_A>;
impl PGAERR_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PGAERR_A {
match self.bits {
false => PGAERR_A::NOERROR,
true => PGAERR_A::ERROR,
}
}
#[doc = "Checks if the value of the field is `NOERROR`"]
#[inline(always)]
pub fn is_no_error(&self) -> bool {
*self == PGAERR_A::NOERROR
}
#[doc = "Checks if the value of the field is `ERROR`"]
#[inline(always)]
pub fn is_error(&self) -> bool {
*self == PGAERR_A::ERROR
}
}
#[doc = "Programming alignment error\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PGAERR_AW {
#[doc = "1: Clear the flag"]
CLEAR,
}
impl From<PGAERR_AW> for bool {
#[inline(always)]
fn from(variant: PGAERR_AW) -> Self {
match variant {
PGAERR_AW::CLEAR => true,
}
}
}
#[doc = "Write proxy for field `PGAERR`"]
pub struct PGAERR_W<'a> {
w: &'a mut W,
}
impl<'a> PGAERR_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PGAERR_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Clear the flag"]
#[inline(always)]
pub fn clear(self) -> &'a mut W {
self.variant(PGAERR_AW::CLEAR)
}
#[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 = "Size error\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SIZERR_A {
#[doc = "0: No size error happened"]
NOERROR,
#[doc = "1: One size error happened"]
ERROR,
}
impl From<SIZERR_A> for bool {
#[inline(always)]
fn from(variant: SIZERR_A) -> Self {
match variant {
SIZERR_A::NOERROR => false,
SIZERR_A::ERROR => true,
}
}
}
#[doc = "Reader of field `SIZERR`"]
pub type SIZERR_R = crate::R<bool, SIZERR_A>;
impl SIZERR_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> SIZERR_A {
match self.bits {
false => SIZERR_A::NOERROR,
true => SIZERR_A::ERROR,
}
}
#[doc = "Checks if the value of the field is `NOERROR`"]
#[inline(always)]
pub fn is_no_error(&self) -> bool {
*self == SIZERR_A::NOERROR
}
#[doc = "Checks if the value of the field is `ERROR`"]
#[inline(always)]
pub fn is_error(&self) -> bool {
*self == SIZERR_A::ERROR
}
}
#[doc = "Size error\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SIZERR_AW {
#[doc = "1: Clear the flag"]
CLEAR,
}
impl From<SIZERR_AW> for bool {
#[inline(always)]
fn from(variant: SIZERR_AW) -> Self {
match variant {
SIZERR_AW::CLEAR => true,
}
}
}
#[doc = "Write proxy for field `SIZERR`"]
pub struct SIZERR_W<'a> {
w: &'a mut W,
}
impl<'a> SIZERR_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: SIZERR_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Clear the flag"]
#[inline(always)]
pub fn clear(self) -> &'a mut W {
self.variant(SIZERR_AW::CLEAR)
}
#[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 << 10)) | (((value as u32) & 0x01) << 10);
self.w
}
}
#[doc = "Option validity error\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum OPTVERR_A {
#[doc = "0: No error happened during the Option bytes loading"]
NOERROR,
#[doc = "1: One or more errors happened during the Option bytes loading"]
ERROR,
}
impl From<OPTVERR_A> for bool {
#[inline(always)]
fn from(variant: OPTVERR_A) -> Self {
match variant {
OPTVERR_A::NOERROR => false,
OPTVERR_A::ERROR => true,
}
}
}
#[doc = "Reader of field `OPTVERR`"]
pub type OPTVERR_R = crate::R<bool, OPTVERR_A>;
impl OPTVERR_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> OPTVERR_A {
match self.bits {
false => OPTVERR_A::NOERROR,
true => OPTVERR_A::ERROR,
}
}
#[doc = "Checks if the value of the field is `NOERROR`"]
#[inline(always)]
pub fn is_no_error(&self) -> bool {
*self == OPTVERR_A::NOERROR
}
#[doc = "Checks if the value of the field is `ERROR`"]
#[inline(always)]
pub fn is_error(&self) -> bool {
*self == OPTVERR_A::ERROR
}
}
#[doc = "Option validity error\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum OPTVERR_AW {
#[doc = "1: Clear the flag"]
CLEAR,
}
impl From<OPTVERR_AW> for bool {
#[inline(always)]
fn from(variant: OPTVERR_AW) -> Self {
match variant {
OPTVERR_AW::CLEAR => true,
}
}
}
#[doc = "Write proxy for field `OPTVERR`"]
pub struct OPTVERR_W<'a> {
w: &'a mut W,
}
impl<'a> OPTVERR_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: OPTVERR_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Clear the flag"]
#[inline(always)]
pub fn clear(self) -> &'a mut W {
self.variant(OPTVERR_AW::CLEAR)
}
#[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 << 11)) | (((value as u32) & 0x01) << 11);
self.w
}
}
#[doc = "RDERR\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RDERR_A {
#[doc = "0: No read protection error happened."]
NOERROR,
#[doc = "1: One read protection error happened"]
ERROR,
}
impl From<RDERR_A> for bool {
#[inline(always)]
fn from(variant: RDERR_A) -> Self {
match variant {
RDERR_A::NOERROR => false,
RDERR_A::ERROR => true,
}
}
}
#[doc = "Reader of field `RDERR`"]
pub type RDERR_R = crate::R<bool, RDERR_A>;
impl RDERR_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RDERR_A {
match self.bits {
false => RDERR_A::NOERROR,
true => RDERR_A::ERROR,
}
}
#[doc = "Checks if the value of the field is `NOERROR`"]
#[inline(always)]
pub fn is_no_error(&self) -> bool {
*self == RDERR_A::NOERROR
}
#[doc = "Checks if the value of the field is `ERROR`"]
#[inline(always)]
pub fn is_error(&self) -> bool {
*self == RDERR_A::ERROR
}
}
#[doc = "RDERR\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RDERR_AW {
#[doc = "1: Clear the flag"]
CLEAR,
}
impl From<RDERR_AW> for bool {
#[inline(always)]
fn from(variant: RDERR_AW) -> Self {
match variant {
RDERR_AW::CLEAR => true,
}
}
}
#[doc = "Write proxy for field `RDERR`"]
pub struct RDERR_W<'a> {
w: &'a mut W,
}
impl<'a> RDERR_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RDERR_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Clear the flag"]
#[inline(always)]
pub fn clear(self) -> &'a mut W {
self.variant(RDERR_AW::CLEAR)
}
#[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 << 14)) | (((value as u32) & 0x01) << 14);
self.w
}
}
#[doc = "NOTZEROERR\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum NOTZEROERR_A {
#[doc = "0: The write operation is done in an erased region or the memory interface can apply an erase before a write"]
NOEVENT,
#[doc = "1: The write operation is attempting to write to a not-erased region and the memory interface cannot apply an erase before a write"]
EVENT,
}
impl From<NOTZEROERR_A> for bool {
#[inline(always)]
fn from(variant: NOTZEROERR_A) -> Self {
match variant {
NOTZEROERR_A::NOEVENT => false,
NOTZEROERR_A::EVENT => true,
}
}
}
#[doc = "Reader of field `NOTZEROERR`"]
pub type NOTZEROERR_R = crate::R<bool, NOTZEROERR_A>;
impl NOTZEROERR_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> NOTZEROERR_A {
match self.bits {
false => NOTZEROERR_A::NOEVENT,
true => NOTZEROERR_A::EVENT,
}
}
#[doc = "Checks if the value of the field is `NOEVENT`"]
#[inline(always)]
pub fn is_no_event(&self) -> bool {
*self == NOTZEROERR_A::NOEVENT
}
#[doc = "Checks if the value of the field is `EVENT`"]
#[inline(always)]
pub fn is_event(&self) -> bool {
*self == NOTZEROERR_A::EVENT
}
}
#[doc = "NOTZEROERR\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum NOTZEROERR_AW {
#[doc = "1: Clear the flag"]
CLEAR,
}
impl From<NOTZEROERR_AW> for bool {
#[inline(always)]
fn from(variant: NOTZEROERR_AW) -> Self {
match variant {
NOTZEROERR_AW::CLEAR => true,
}
}
}
#[doc = "Write proxy for field `NOTZEROERR`"]
pub struct NOTZEROERR_W<'a> {
w: &'a mut W,
}
impl<'a> NOTZEROERR_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: NOTZEROERR_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Clear the flag"]
#[inline(always)]
pub fn clear(self) -> &'a mut W {
self.variant(NOTZEROERR_AW::CLEAR)
}
#[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 = "FWWERR\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FWWERR_A {
#[doc = "0: No write/erase operation aborted to perform a fetch"]
NOERROR,
#[doc = "1: A write/erase operation aborted to perform a fetch"]
ERROR,
}
impl From<FWWERR_A> for bool {
#[inline(always)]
fn from(variant: FWWERR_A) -> Self {
match variant {
FWWERR_A::NOERROR => false,
FWWERR_A::ERROR => true,
}
}
}
#[doc = "Reader of field `FWWERR`"]
pub type FWWERR_R = crate::R<bool, FWWERR_A>;
impl FWWERR_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> FWWERR_A {
match self.bits {
false => FWWERR_A::NOERROR,
true => FWWERR_A::ERROR,
}
}
#[doc = "Checks if the value of the field is `NOERROR`"]
#[inline(always)]
pub fn is_no_error(&self) -> bool {
*self == FWWERR_A::NOERROR
}
#[doc = "Checks if the value of the field is `ERROR`"]
#[inline(always)]
pub fn is_error(&self) -> bool {
*self == FWWERR_A::ERROR
}
}
#[doc = "FWWERR\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FWWERR_AW {
#[doc = "1: Clear the flag"]
CLEAR,
}
impl From<FWWERR_AW> for bool {
#[inline(always)]
fn from(variant: FWWERR_AW) -> Self {
match variant {
FWWERR_AW::CLEAR => true,
}
}
}
#[doc = "Write proxy for field `FWWERR`"]
pub struct FWWERR_W<'a> {
w: &'a mut W,
}
impl<'a> FWWERR_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: FWWERR_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Clear the flag"]
#[inline(always)]
pub fn clear(self) -> &'a mut W {
self.variant(FWWERR_AW::CLEAR)
}
#[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
}
}
impl R {
#[doc = "Bit 0 - Write/erase operations in progress"]
#[inline(always)]
pub fn bsy(&self) -> BSY_R {
BSY_R::new((self.bits & 0x01) != 0)
}
#[doc = "Bit 1 - End of operation"]
#[inline(always)]
pub fn eop(&self) -> EOP_R {
EOP_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 2 - End of high voltage"]
#[inline(always)]
pub fn endhv(&self) -> ENDHV_R {
ENDHV_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 3 - Flash memory module ready after low power mode"]
#[inline(always)]
pub fn ready(&self) -> READY_R {
READY_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 8 - Write protected error"]
#[inline(always)]
pub fn wrperr(&self) -> WRPERR_R {
WRPERR_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bit 9 - Programming alignment error"]
#[inline(always)]
pub fn pgaerr(&self) -> PGAERR_R {
PGAERR_R::new(((self.bits >> 9) & 0x01) != 0)
}
#[doc = "Bit 10 - Size error"]
#[inline(always)]
pub fn sizerr(&self) -> SIZERR_R {
SIZERR_R::new(((self.bits >> 10) & 0x01) != 0)
}
#[doc = "Bit 11 - Option validity error"]
#[inline(always)]
pub fn optverr(&self) -> OPTVERR_R {
OPTVERR_R::new(((self.bits >> 11) & 0x01) != 0)
}
#[doc = "Bit 14 - RDERR"]
#[inline(always)]
pub fn rderr(&self) -> RDERR_R {
RDERR_R::new(((self.bits >> 14) & 0x01) != 0)
}
#[doc = "Bit 16 - NOTZEROERR"]
#[inline(always)]
pub fn notzeroerr(&self) -> NOTZEROERR_R {
NOTZEROERR_R::new(((self.bits >> 16) & 0x01) != 0)
}
#[doc = "Bit 17 - FWWERR"]
#[inline(always)]
pub fn fwwerr(&self) -> FWWERR_R {
FWWERR_R::new(((self.bits >> 17) & 0x01) != 0)
}
}
impl W {
#[doc = "Bit 8 - Write protected error"]
#[inline(always)]
pub fn wrperr(&mut self) -> WRPERR_W {
WRPERR_W { w: self }
}
#[doc = "Bit 9 - Programming alignment error"]
#[inline(always)]
pub fn pgaerr(&mut self) -> PGAERR_W {
PGAERR_W { w: self }
}
#[doc = "Bit 10 - Size error"]
#[inline(always)]
pub fn sizerr(&mut self) -> SIZERR_W {
SIZERR_W { w: self }
}
#[doc = "Bit 11 - Option validity error"]
#[inline(always)]
pub fn optverr(&mut self) -> OPTVERR_W {
OPTVERR_W { w: self }
}
#[doc = "Bit 14 - RDERR"]
#[inline(always)]
pub fn rderr(&mut self) -> RDERR_W {
RDERR_W { w: self }
}
#[doc = "Bit 16 - NOTZEROERR"]
#[inline(always)]
pub fn notzeroerr(&mut self) -> NOTZEROERR_W {
NOTZEROERR_W { w: self }
}
#[doc = "Bit 17 - FWWERR"]
#[inline(always)]
pub fn fwwerr(&mut self) -> FWWERR_W {
FWWERR_W { w: self }
}
}