#[doc = "Register `PWC` reader"]
pub struct R(crate::R<PWC_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<PWC_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl core::convert::From<crate::R<PWC_SPEC>> for R {
fn from(reader: crate::R<PWC_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `PWC` writer"]
pub struct W(crate::W<PWC_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<PWC_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl core::ops::DerefMut for W {
#[inline(always)]
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl core::convert::From<crate::W<PWC_SPEC>> for W {
fn from(writer: crate::W<PWC_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `PD_EN` reader - "]
pub struct PD_EN_R(crate::FieldReader<bool, bool>);
impl PD_EN_R {
pub(crate) fn new(bits: bool) -> Self {
PD_EN_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for PD_EN_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `PD_EN` writer - "]
pub struct PD_EN_W<'a> {
w: &'a mut W,
}
impl<'a> PD_EN_W<'a> {
#[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 = "Field `FORCE_PU` reader - "]
pub struct FORCE_PU_R(crate::FieldReader<bool, bool>);
impl FORCE_PU_R {
pub(crate) fn new(bits: bool) -> Self {
FORCE_PU_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for FORCE_PU_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `FORCE_PU` writer - "]
pub struct FORCE_PU_W<'a> {
w: &'a mut W,
}
impl<'a> FORCE_PU_W<'a> {
#[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 = "Field `FORCE_PD` reader - "]
pub struct FORCE_PD_R(crate::FieldReader<bool, bool>);
impl FORCE_PD_R {
pub(crate) fn new(bits: bool) -> Self {
FORCE_PD_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for FORCE_PD_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `FORCE_PD` writer - "]
pub struct FORCE_PD_W<'a> {
w: &'a mut W,
}
impl<'a> FORCE_PD_W<'a> {
#[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 = "Field `SLOWMEM_PD_EN` reader - "]
pub struct SLOWMEM_PD_EN_R(crate::FieldReader<bool, bool>);
impl SLOWMEM_PD_EN_R {
pub(crate) fn new(bits: bool) -> Self {
SLOWMEM_PD_EN_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for SLOWMEM_PD_EN_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `SLOWMEM_PD_EN` writer - "]
pub struct SLOWMEM_PD_EN_W<'a> {
w: &'a mut W,
}
impl<'a> SLOWMEM_PD_EN_W<'a> {
#[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 = "Field `SLOWMEM_FORCE_PU` reader - "]
pub struct SLOWMEM_FORCE_PU_R(crate::FieldReader<bool, bool>);
impl SLOWMEM_FORCE_PU_R {
pub(crate) fn new(bits: bool) -> Self {
SLOWMEM_FORCE_PU_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for SLOWMEM_FORCE_PU_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `SLOWMEM_FORCE_PU` writer - "]
pub struct SLOWMEM_FORCE_PU_W<'a> {
w: &'a mut W,
}
impl<'a> SLOWMEM_FORCE_PU_W<'a> {
#[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 = "Field `SLOWMEM_FORCE_PD` reader - "]
pub struct SLOWMEM_FORCE_PD_R(crate::FieldReader<bool, bool>);
impl SLOWMEM_FORCE_PD_R {
pub(crate) fn new(bits: bool) -> Self {
SLOWMEM_FORCE_PD_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for SLOWMEM_FORCE_PD_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `SLOWMEM_FORCE_PD` writer - "]
pub struct SLOWMEM_FORCE_PD_W<'a> {
w: &'a mut W,
}
impl<'a> SLOWMEM_FORCE_PD_W<'a> {
#[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 << 15)) | (((value as u32) & 0x01) << 15);
self.w
}
}
#[doc = "Field `FASTMEM_PD_EN` reader - "]
pub struct FASTMEM_PD_EN_R(crate::FieldReader<bool, bool>);
impl FASTMEM_PD_EN_R {
pub(crate) fn new(bits: bool) -> Self {
FASTMEM_PD_EN_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for FASTMEM_PD_EN_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `FASTMEM_PD_EN` writer - "]
pub struct FASTMEM_PD_EN_W<'a> {
w: &'a mut W,
}
impl<'a> FASTMEM_PD_EN_W<'a> {
#[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 = "Field `FASTMEM_FORCE_PU` reader - "]
pub struct FASTMEM_FORCE_PU_R(crate::FieldReader<bool, bool>);
impl FASTMEM_FORCE_PU_R {
pub(crate) fn new(bits: bool) -> Self {
FASTMEM_FORCE_PU_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for FASTMEM_FORCE_PU_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `FASTMEM_FORCE_PU` writer - "]
pub struct FASTMEM_FORCE_PU_W<'a> {
w: &'a mut W,
}
impl<'a> FASTMEM_FORCE_PU_W<'a> {
#[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 << 13)) | (((value as u32) & 0x01) << 13);
self.w
}
}
#[doc = "Field `FASTMEM_FORCE_PD` reader - "]
pub struct FASTMEM_FORCE_PD_R(crate::FieldReader<bool, bool>);
impl FASTMEM_FORCE_PD_R {
pub(crate) fn new(bits: bool) -> Self {
FASTMEM_FORCE_PD_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for FASTMEM_FORCE_PD_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `FASTMEM_FORCE_PD` writer - "]
pub struct FASTMEM_FORCE_PD_W<'a> {
w: &'a mut W,
}
impl<'a> FASTMEM_FORCE_PD_W<'a> {
#[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 << 12)) | (((value as u32) & 0x01) << 12);
self.w
}
}
#[doc = "Field `SLOWMEM_FORCE_LPU` reader - "]
pub struct SLOWMEM_FORCE_LPU_R(crate::FieldReader<bool, bool>);
impl SLOWMEM_FORCE_LPU_R {
pub(crate) fn new(bits: bool) -> Self {
SLOWMEM_FORCE_LPU_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for SLOWMEM_FORCE_LPU_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `SLOWMEM_FORCE_LPU` writer - "]
pub struct SLOWMEM_FORCE_LPU_W<'a> {
w: &'a mut W,
}
impl<'a> SLOWMEM_FORCE_LPU_W<'a> {
#[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 = "Field `SLOWMEM_FORCE_LPD` reader - "]
pub struct SLOWMEM_FORCE_LPD_R(crate::FieldReader<bool, bool>);
impl SLOWMEM_FORCE_LPD_R {
pub(crate) fn new(bits: bool) -> Self {
SLOWMEM_FORCE_LPD_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for SLOWMEM_FORCE_LPD_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `SLOWMEM_FORCE_LPD` writer - "]
pub struct SLOWMEM_FORCE_LPD_W<'a> {
w: &'a mut W,
}
impl<'a> SLOWMEM_FORCE_LPD_W<'a> {
#[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 = "Field `SLOWMEM_FOLW_CPU` reader - "]
pub struct SLOWMEM_FOLW_CPU_R(crate::FieldReader<bool, bool>);
impl SLOWMEM_FOLW_CPU_R {
pub(crate) fn new(bits: bool) -> Self {
SLOWMEM_FOLW_CPU_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for SLOWMEM_FOLW_CPU_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `SLOWMEM_FOLW_CPU` writer - "]
pub struct SLOWMEM_FOLW_CPU_W<'a> {
w: &'a mut W,
}
impl<'a> SLOWMEM_FOLW_CPU_W<'a> {
#[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 = "Field `FASTMEM_FORCE_LPU` reader - "]
pub struct FASTMEM_FORCE_LPU_R(crate::FieldReader<bool, bool>);
impl FASTMEM_FORCE_LPU_R {
pub(crate) fn new(bits: bool) -> Self {
FASTMEM_FORCE_LPU_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for FASTMEM_FORCE_LPU_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `FASTMEM_FORCE_LPU` writer - "]
pub struct FASTMEM_FORCE_LPU_W<'a> {
w: &'a mut W,
}
impl<'a> FASTMEM_FORCE_LPU_W<'a> {
#[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 = "Field `FASTMEM_FORCE_LPD` reader - "]
pub struct FASTMEM_FORCE_LPD_R(crate::FieldReader<bool, bool>);
impl FASTMEM_FORCE_LPD_R {
pub(crate) fn new(bits: bool) -> Self {
FASTMEM_FORCE_LPD_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for FASTMEM_FORCE_LPD_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `FASTMEM_FORCE_LPD` writer - "]
pub struct FASTMEM_FORCE_LPD_W<'a> {
w: &'a mut W,
}
impl<'a> FASTMEM_FORCE_LPD_W<'a> {
#[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 = "Field `FASTMEM_FOLW_CPU` reader - "]
pub struct FASTMEM_FOLW_CPU_R(crate::FieldReader<bool, bool>);
impl FASTMEM_FOLW_CPU_R {
pub(crate) fn new(bits: bool) -> Self {
FASTMEM_FOLW_CPU_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for FASTMEM_FOLW_CPU_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `FASTMEM_FOLW_CPU` writer - "]
pub struct FASTMEM_FOLW_CPU_W<'a> {
w: &'a mut W,
}
impl<'a> FASTMEM_FOLW_CPU_W<'a> {
#[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 = "Field `FORCE_NOISO` reader - "]
pub struct FORCE_NOISO_R(crate::FieldReader<bool, bool>);
impl FORCE_NOISO_R {
pub(crate) fn new(bits: bool) -> Self {
FORCE_NOISO_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for FORCE_NOISO_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `FORCE_NOISO` writer - "]
pub struct FORCE_NOISO_W<'a> {
w: &'a mut W,
}
impl<'a> FORCE_NOISO_W<'a> {
#[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 = "Field `FORCE_ISO` reader - "]
pub struct FORCE_ISO_R(crate::FieldReader<bool, bool>);
impl FORCE_ISO_R {
pub(crate) fn new(bits: bool) -> Self {
FORCE_ISO_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for FORCE_ISO_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `FORCE_ISO` writer - "]
pub struct FORCE_ISO_W<'a> {
w: &'a mut W,
}
impl<'a> FORCE_ISO_W<'a> {
#[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 = "Field `SLOWMEM_FORCE_ISO` reader - "]
pub struct SLOWMEM_FORCE_ISO_R(crate::FieldReader<bool, bool>);
impl SLOWMEM_FORCE_ISO_R {
pub(crate) fn new(bits: bool) -> Self {
SLOWMEM_FORCE_ISO_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for SLOWMEM_FORCE_ISO_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `SLOWMEM_FORCE_ISO` writer - "]
pub struct SLOWMEM_FORCE_ISO_W<'a> {
w: &'a mut W,
}
impl<'a> SLOWMEM_FORCE_ISO_W<'a> {
#[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 = "Field `SLOWMEM_FORCE_NOISO` reader - "]
pub struct SLOWMEM_FORCE_NOISO_R(crate::FieldReader<bool, bool>);
impl SLOWMEM_FORCE_NOISO_R {
pub(crate) fn new(bits: bool) -> Self {
SLOWMEM_FORCE_NOISO_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for SLOWMEM_FORCE_NOISO_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `SLOWMEM_FORCE_NOISO` writer - "]
pub struct SLOWMEM_FORCE_NOISO_W<'a> {
w: &'a mut W,
}
impl<'a> SLOWMEM_FORCE_NOISO_W<'a> {
#[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 = "Field `FASTMEM_FORCE_ISO` reader - "]
pub struct FASTMEM_FORCE_ISO_R(crate::FieldReader<bool, bool>);
impl FASTMEM_FORCE_ISO_R {
pub(crate) fn new(bits: bool) -> Self {
FASTMEM_FORCE_ISO_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for FASTMEM_FORCE_ISO_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `FASTMEM_FORCE_ISO` writer - "]
pub struct FASTMEM_FORCE_ISO_W<'a> {
w: &'a mut W,
}
impl<'a> FASTMEM_FORCE_ISO_W<'a> {
#[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 = "Field `FASTMEM_FORCE_NOISO` reader - "]
pub struct FASTMEM_FORCE_NOISO_R(crate::FieldReader<bool, bool>);
impl FASTMEM_FORCE_NOISO_R {
pub(crate) fn new(bits: bool) -> Self {
FASTMEM_FORCE_NOISO_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for FASTMEM_FORCE_NOISO_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `FASTMEM_FORCE_NOISO` writer - "]
pub struct FASTMEM_FORCE_NOISO_W<'a> {
w: &'a mut W,
}
impl<'a> FASTMEM_FORCE_NOISO_W<'a> {
#[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
}
}
impl R {
#[doc = "Bit 20"]
#[inline(always)]
pub fn pd_en(&self) -> PD_EN_R {
PD_EN_R::new(((self.bits >> 20) & 0x01) != 0)
}
#[doc = "Bit 19"]
#[inline(always)]
pub fn force_pu(&self) -> FORCE_PU_R {
FORCE_PU_R::new(((self.bits >> 19) & 0x01) != 0)
}
#[doc = "Bit 18"]
#[inline(always)]
pub fn force_pd(&self) -> FORCE_PD_R {
FORCE_PD_R::new(((self.bits >> 18) & 0x01) != 0)
}
#[doc = "Bit 17"]
#[inline(always)]
pub fn slowmem_pd_en(&self) -> SLOWMEM_PD_EN_R {
SLOWMEM_PD_EN_R::new(((self.bits >> 17) & 0x01) != 0)
}
#[doc = "Bit 16"]
#[inline(always)]
pub fn slowmem_force_pu(&self) -> SLOWMEM_FORCE_PU_R {
SLOWMEM_FORCE_PU_R::new(((self.bits >> 16) & 0x01) != 0)
}
#[doc = "Bit 15"]
#[inline(always)]
pub fn slowmem_force_pd(&self) -> SLOWMEM_FORCE_PD_R {
SLOWMEM_FORCE_PD_R::new(((self.bits >> 15) & 0x01) != 0)
}
#[doc = "Bit 14"]
#[inline(always)]
pub fn fastmem_pd_en(&self) -> FASTMEM_PD_EN_R {
FASTMEM_PD_EN_R::new(((self.bits >> 14) & 0x01) != 0)
}
#[doc = "Bit 13"]
#[inline(always)]
pub fn fastmem_force_pu(&self) -> FASTMEM_FORCE_PU_R {
FASTMEM_FORCE_PU_R::new(((self.bits >> 13) & 0x01) != 0)
}
#[doc = "Bit 12"]
#[inline(always)]
pub fn fastmem_force_pd(&self) -> FASTMEM_FORCE_PD_R {
FASTMEM_FORCE_PD_R::new(((self.bits >> 12) & 0x01) != 0)
}
#[doc = "Bit 11"]
#[inline(always)]
pub fn slowmem_force_lpu(&self) -> SLOWMEM_FORCE_LPU_R {
SLOWMEM_FORCE_LPU_R::new(((self.bits >> 11) & 0x01) != 0)
}
#[doc = "Bit 10"]
#[inline(always)]
pub fn slowmem_force_lpd(&self) -> SLOWMEM_FORCE_LPD_R {
SLOWMEM_FORCE_LPD_R::new(((self.bits >> 10) & 0x01) != 0)
}
#[doc = "Bit 9"]
#[inline(always)]
pub fn slowmem_folw_cpu(&self) -> SLOWMEM_FOLW_CPU_R {
SLOWMEM_FOLW_CPU_R::new(((self.bits >> 9) & 0x01) != 0)
}
#[doc = "Bit 8"]
#[inline(always)]
pub fn fastmem_force_lpu(&self) -> FASTMEM_FORCE_LPU_R {
FASTMEM_FORCE_LPU_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bit 7"]
#[inline(always)]
pub fn fastmem_force_lpd(&self) -> FASTMEM_FORCE_LPD_R {
FASTMEM_FORCE_LPD_R::new(((self.bits >> 7) & 0x01) != 0)
}
#[doc = "Bit 6"]
#[inline(always)]
pub fn fastmem_folw_cpu(&self) -> FASTMEM_FOLW_CPU_R {
FASTMEM_FOLW_CPU_R::new(((self.bits >> 6) & 0x01) != 0)
}
#[doc = "Bit 5"]
#[inline(always)]
pub fn force_noiso(&self) -> FORCE_NOISO_R {
FORCE_NOISO_R::new(((self.bits >> 5) & 0x01) != 0)
}
#[doc = "Bit 4"]
#[inline(always)]
pub fn force_iso(&self) -> FORCE_ISO_R {
FORCE_ISO_R::new(((self.bits >> 4) & 0x01) != 0)
}
#[doc = "Bit 3"]
#[inline(always)]
pub fn slowmem_force_iso(&self) -> SLOWMEM_FORCE_ISO_R {
SLOWMEM_FORCE_ISO_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 2"]
#[inline(always)]
pub fn slowmem_force_noiso(&self) -> SLOWMEM_FORCE_NOISO_R {
SLOWMEM_FORCE_NOISO_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 1"]
#[inline(always)]
pub fn fastmem_force_iso(&self) -> FASTMEM_FORCE_ISO_R {
FASTMEM_FORCE_ISO_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 0"]
#[inline(always)]
pub fn fastmem_force_noiso(&self) -> FASTMEM_FORCE_NOISO_R {
FASTMEM_FORCE_NOISO_R::new((self.bits & 0x01) != 0)
}
}
impl W {
#[doc = "Bit 20"]
#[inline(always)]
pub fn pd_en(&mut self) -> PD_EN_W {
PD_EN_W { w: self }
}
#[doc = "Bit 19"]
#[inline(always)]
pub fn force_pu(&mut self) -> FORCE_PU_W {
FORCE_PU_W { w: self }
}
#[doc = "Bit 18"]
#[inline(always)]
pub fn force_pd(&mut self) -> FORCE_PD_W {
FORCE_PD_W { w: self }
}
#[doc = "Bit 17"]
#[inline(always)]
pub fn slowmem_pd_en(&mut self) -> SLOWMEM_PD_EN_W {
SLOWMEM_PD_EN_W { w: self }
}
#[doc = "Bit 16"]
#[inline(always)]
pub fn slowmem_force_pu(&mut self) -> SLOWMEM_FORCE_PU_W {
SLOWMEM_FORCE_PU_W { w: self }
}
#[doc = "Bit 15"]
#[inline(always)]
pub fn slowmem_force_pd(&mut self) -> SLOWMEM_FORCE_PD_W {
SLOWMEM_FORCE_PD_W { w: self }
}
#[doc = "Bit 14"]
#[inline(always)]
pub fn fastmem_pd_en(&mut self) -> FASTMEM_PD_EN_W {
FASTMEM_PD_EN_W { w: self }
}
#[doc = "Bit 13"]
#[inline(always)]
pub fn fastmem_force_pu(&mut self) -> FASTMEM_FORCE_PU_W {
FASTMEM_FORCE_PU_W { w: self }
}
#[doc = "Bit 12"]
#[inline(always)]
pub fn fastmem_force_pd(&mut self) -> FASTMEM_FORCE_PD_W {
FASTMEM_FORCE_PD_W { w: self }
}
#[doc = "Bit 11"]
#[inline(always)]
pub fn slowmem_force_lpu(&mut self) -> SLOWMEM_FORCE_LPU_W {
SLOWMEM_FORCE_LPU_W { w: self }
}
#[doc = "Bit 10"]
#[inline(always)]
pub fn slowmem_force_lpd(&mut self) -> SLOWMEM_FORCE_LPD_W {
SLOWMEM_FORCE_LPD_W { w: self }
}
#[doc = "Bit 9"]
#[inline(always)]
pub fn slowmem_folw_cpu(&mut self) -> SLOWMEM_FOLW_CPU_W {
SLOWMEM_FOLW_CPU_W { w: self }
}
#[doc = "Bit 8"]
#[inline(always)]
pub fn fastmem_force_lpu(&mut self) -> FASTMEM_FORCE_LPU_W {
FASTMEM_FORCE_LPU_W { w: self }
}
#[doc = "Bit 7"]
#[inline(always)]
pub fn fastmem_force_lpd(&mut self) -> FASTMEM_FORCE_LPD_W {
FASTMEM_FORCE_LPD_W { w: self }
}
#[doc = "Bit 6"]
#[inline(always)]
pub fn fastmem_folw_cpu(&mut self) -> FASTMEM_FOLW_CPU_W {
FASTMEM_FOLW_CPU_W { w: self }
}
#[doc = "Bit 5"]
#[inline(always)]
pub fn force_noiso(&mut self) -> FORCE_NOISO_W {
FORCE_NOISO_W { w: self }
}
#[doc = "Bit 4"]
#[inline(always)]
pub fn force_iso(&mut self) -> FORCE_ISO_W {
FORCE_ISO_W { w: self }
}
#[doc = "Bit 3"]
#[inline(always)]
pub fn slowmem_force_iso(&mut self) -> SLOWMEM_FORCE_ISO_W {
SLOWMEM_FORCE_ISO_W { w: self }
}
#[doc = "Bit 2"]
#[inline(always)]
pub fn slowmem_force_noiso(&mut self) -> SLOWMEM_FORCE_NOISO_W {
SLOWMEM_FORCE_NOISO_W { w: self }
}
#[doc = "Bit 1"]
#[inline(always)]
pub fn fastmem_force_iso(&mut self) -> FASTMEM_FORCE_ISO_W {
FASTMEM_FORCE_ISO_W { w: self }
}
#[doc = "Bit 0"]
#[inline(always)]
pub fn fastmem_force_noiso(&mut self) -> FASTMEM_FORCE_NOISO_W {
FASTMEM_FORCE_NOISO_W { w: self }
}
#[doc = "Writes raw bits to the register."]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.0.bits(bits);
self
}
}
#[doc = "RTC_CNTL_PWC\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [pwc](index.html) module"]
pub struct PWC_SPEC;
impl crate::RegisterSpec for PWC_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [pwc::R](R) reader structure"]
impl crate::Readable for PWC_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [pwc::W](W) writer structure"]
impl crate::Writable for PWC_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets PWC to value 0"]
impl crate::Resettable for PWC_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}