1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
#[doc = "Reader of register SPMCSR"] pub type R = crate::R<u8, super::SPMCSR>; #[doc = "Reader of field `SPMEN`"] pub type SPMEN_R = crate::R<bool, bool>; #[doc = "Reader of field `PGERS`"] pub type PGERS_R = crate::R<bool, bool>; #[doc = "Reader of field `PGWRT`"] pub type PGWRT_R = crate::R<bool, bool>; #[doc = "Reader of field `RFLB`"] pub type RFLB_R = crate::R<bool, bool>; #[doc = "Reader of field `CTPB`"] pub type CTPB_R = crate::R<bool, bool>; #[doc = "Reader of field `RSIG`"] pub type RSIG_R = crate::R<bool, bool>; impl R { #[doc = "Bit 0 - Store Program Memory Enable"] #[inline(always)] pub fn spmen(&self) -> SPMEN_R { SPMEN_R::new((self.bits & 0x01) != 0) } #[doc = "Bit 1 - Page Erase"] #[inline(always)] pub fn pgers(&self) -> PGERS_R { PGERS_R::new(((self.bits >> 1) & 0x01) != 0) } #[doc = "Bit 2 - Page Write"] #[inline(always)] pub fn pgwrt(&self) -> PGWRT_R { PGWRT_R::new(((self.bits >> 2) & 0x01) != 0) } #[doc = "Bit 3 - Read fuse and lock bits"] #[inline(always)] pub fn rflb(&self) -> RFLB_R { RFLB_R::new(((self.bits >> 3) & 0x01) != 0) } #[doc = "Bit 4 - Clear temporary page buffer"] #[inline(always)] pub fn ctpb(&self) -> CTPB_R { CTPB_R::new(((self.bits >> 4) & 0x01) != 0) } #[doc = "Bit 5 - Read Device Signature Imprint Table"] #[inline(always)] pub fn rsig(&self) -> RSIG_R { RSIG_R::new(((self.bits >> 5) & 0x01) != 0) } }