#[doc = "Register `CTRL` reader"]
pub struct R(crate::R<CTRL_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<CTRL_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl core::convert::From<crate::R<CTRL_SPEC>> for R {
fn from(reader: crate::R<CTRL_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `CTRL` writer"]
pub struct W(crate::W<CTRL_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<CTRL_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<CTRL_SPEC>> for W {
fn from(writer: crate::W<CTRL_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `CLK_EN` reader - "]
pub struct CLK_EN_R(crate::FieldReader<bool, bool>);
impl CLK_EN_R {
pub(crate) fn new(bits: bool) -> Self {
CLK_EN_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for CLK_EN_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `CLK_EN` writer - "]
pub struct CLK_EN_W<'a> {
w: &'a mut W,
}
impl<'a> CLK_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 << 16)) | (((value as u32) & 0x01) << 16);
self.w
}
}
#[doc = "Field `CNT_PAUSE_U7` reader - "]
pub struct CNT_PAUSE_U7_R(crate::FieldReader<bool, bool>);
impl CNT_PAUSE_U7_R {
pub(crate) fn new(bits: bool) -> Self {
CNT_PAUSE_U7_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for CNT_PAUSE_U7_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `CNT_PAUSE_U7` writer - "]
pub struct CNT_PAUSE_U7_W<'a> {
w: &'a mut W,
}
impl<'a> CNT_PAUSE_U7_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 `PLUS_CNT_RST_U7` reader - "]
pub struct PLUS_CNT_RST_U7_R(crate::FieldReader<bool, bool>);
impl PLUS_CNT_RST_U7_R {
pub(crate) fn new(bits: bool) -> Self {
PLUS_CNT_RST_U7_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for PLUS_CNT_RST_U7_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `PLUS_CNT_RST_U7` writer - "]
pub struct PLUS_CNT_RST_U7_W<'a> {
w: &'a mut W,
}
impl<'a> PLUS_CNT_RST_U7_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 `CNT_PAUSE_U6` reader - "]
pub struct CNT_PAUSE_U6_R(crate::FieldReader<bool, bool>);
impl CNT_PAUSE_U6_R {
pub(crate) fn new(bits: bool) -> Self {
CNT_PAUSE_U6_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for CNT_PAUSE_U6_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `CNT_PAUSE_U6` writer - "]
pub struct CNT_PAUSE_U6_W<'a> {
w: &'a mut W,
}
impl<'a> CNT_PAUSE_U6_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 `PLUS_CNT_RST_U6` reader - "]
pub struct PLUS_CNT_RST_U6_R(crate::FieldReader<bool, bool>);
impl PLUS_CNT_RST_U6_R {
pub(crate) fn new(bits: bool) -> Self {
PLUS_CNT_RST_U6_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for PLUS_CNT_RST_U6_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `PLUS_CNT_RST_U6` writer - "]
pub struct PLUS_CNT_RST_U6_W<'a> {
w: &'a mut W,
}
impl<'a> PLUS_CNT_RST_U6_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 `CNT_PAUSE_U5` reader - "]
pub struct CNT_PAUSE_U5_R(crate::FieldReader<bool, bool>);
impl CNT_PAUSE_U5_R {
pub(crate) fn new(bits: bool) -> Self {
CNT_PAUSE_U5_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for CNT_PAUSE_U5_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `CNT_PAUSE_U5` writer - "]
pub struct CNT_PAUSE_U5_W<'a> {
w: &'a mut W,
}
impl<'a> CNT_PAUSE_U5_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 `PLUS_CNT_RST_U5` reader - "]
pub struct PLUS_CNT_RST_U5_R(crate::FieldReader<bool, bool>);
impl PLUS_CNT_RST_U5_R {
pub(crate) fn new(bits: bool) -> Self {
PLUS_CNT_RST_U5_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for PLUS_CNT_RST_U5_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `PLUS_CNT_RST_U5` writer - "]
pub struct PLUS_CNT_RST_U5_W<'a> {
w: &'a mut W,
}
impl<'a> PLUS_CNT_RST_U5_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 `CNT_PAUSE_U4` reader - "]
pub struct CNT_PAUSE_U4_R(crate::FieldReader<bool, bool>);
impl CNT_PAUSE_U4_R {
pub(crate) fn new(bits: bool) -> Self {
CNT_PAUSE_U4_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for CNT_PAUSE_U4_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `CNT_PAUSE_U4` writer - "]
pub struct CNT_PAUSE_U4_W<'a> {
w: &'a mut W,
}
impl<'a> CNT_PAUSE_U4_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 `PLUS_CNT_RST_U4` reader - "]
pub struct PLUS_CNT_RST_U4_R(crate::FieldReader<bool, bool>);
impl PLUS_CNT_RST_U4_R {
pub(crate) fn new(bits: bool) -> Self {
PLUS_CNT_RST_U4_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for PLUS_CNT_RST_U4_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `PLUS_CNT_RST_U4` writer - "]
pub struct PLUS_CNT_RST_U4_W<'a> {
w: &'a mut W,
}
impl<'a> PLUS_CNT_RST_U4_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 `CNT_PAUSE_U3` reader - "]
pub struct CNT_PAUSE_U3_R(crate::FieldReader<bool, bool>);
impl CNT_PAUSE_U3_R {
pub(crate) fn new(bits: bool) -> Self {
CNT_PAUSE_U3_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for CNT_PAUSE_U3_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `CNT_PAUSE_U3` writer - "]
pub struct CNT_PAUSE_U3_W<'a> {
w: &'a mut W,
}
impl<'a> CNT_PAUSE_U3_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 `PLUS_CNT_RST_U3` reader - "]
pub struct PLUS_CNT_RST_U3_R(crate::FieldReader<bool, bool>);
impl PLUS_CNT_RST_U3_R {
pub(crate) fn new(bits: bool) -> Self {
PLUS_CNT_RST_U3_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for PLUS_CNT_RST_U3_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `PLUS_CNT_RST_U3` writer - "]
pub struct PLUS_CNT_RST_U3_W<'a> {
w: &'a mut W,
}
impl<'a> PLUS_CNT_RST_U3_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 `CNT_PAUSE_U2` reader - "]
pub struct CNT_PAUSE_U2_R(crate::FieldReader<bool, bool>);
impl CNT_PAUSE_U2_R {
pub(crate) fn new(bits: bool) -> Self {
CNT_PAUSE_U2_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for CNT_PAUSE_U2_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `CNT_PAUSE_U2` writer - "]
pub struct CNT_PAUSE_U2_W<'a> {
w: &'a mut W,
}
impl<'a> CNT_PAUSE_U2_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 `PLUS_CNT_RST_U2` reader - "]
pub struct PLUS_CNT_RST_U2_R(crate::FieldReader<bool, bool>);
impl PLUS_CNT_RST_U2_R {
pub(crate) fn new(bits: bool) -> Self {
PLUS_CNT_RST_U2_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for PLUS_CNT_RST_U2_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `PLUS_CNT_RST_U2` writer - "]
pub struct PLUS_CNT_RST_U2_W<'a> {
w: &'a mut W,
}
impl<'a> PLUS_CNT_RST_U2_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 `CNT_PAUSE_U1` reader - "]
pub struct CNT_PAUSE_U1_R(crate::FieldReader<bool, bool>);
impl CNT_PAUSE_U1_R {
pub(crate) fn new(bits: bool) -> Self {
CNT_PAUSE_U1_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for CNT_PAUSE_U1_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `CNT_PAUSE_U1` writer - "]
pub struct CNT_PAUSE_U1_W<'a> {
w: &'a mut W,
}
impl<'a> CNT_PAUSE_U1_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 `PLUS_CNT_RST_U1` reader - "]
pub struct PLUS_CNT_RST_U1_R(crate::FieldReader<bool, bool>);
impl PLUS_CNT_RST_U1_R {
pub(crate) fn new(bits: bool) -> Self {
PLUS_CNT_RST_U1_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for PLUS_CNT_RST_U1_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `PLUS_CNT_RST_U1` writer - "]
pub struct PLUS_CNT_RST_U1_W<'a> {
w: &'a mut W,
}
impl<'a> PLUS_CNT_RST_U1_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 `CNT_PAUSE_U0` reader - "]
pub struct CNT_PAUSE_U0_R(crate::FieldReader<bool, bool>);
impl CNT_PAUSE_U0_R {
pub(crate) fn new(bits: bool) -> Self {
CNT_PAUSE_U0_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for CNT_PAUSE_U0_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `CNT_PAUSE_U0` writer - "]
pub struct CNT_PAUSE_U0_W<'a> {
w: &'a mut W,
}
impl<'a> CNT_PAUSE_U0_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 `PLUS_CNT_RST_U0` reader - "]
pub struct PLUS_CNT_RST_U0_R(crate::FieldReader<bool, bool>);
impl PLUS_CNT_RST_U0_R {
pub(crate) fn new(bits: bool) -> Self {
PLUS_CNT_RST_U0_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for PLUS_CNT_RST_U0_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `PLUS_CNT_RST_U0` writer - "]
pub struct PLUS_CNT_RST_U0_W<'a> {
w: &'a mut W,
}
impl<'a> PLUS_CNT_RST_U0_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 16"]
#[inline(always)]
pub fn clk_en(&self) -> CLK_EN_R {
CLK_EN_R::new(((self.bits >> 16) & 0x01) != 0)
}
#[doc = "Bit 15"]
#[inline(always)]
pub fn cnt_pause_u7(&self) -> CNT_PAUSE_U7_R {
CNT_PAUSE_U7_R::new(((self.bits >> 15) & 0x01) != 0)
}
#[doc = "Bit 14"]
#[inline(always)]
pub fn plus_cnt_rst_u7(&self) -> PLUS_CNT_RST_U7_R {
PLUS_CNT_RST_U7_R::new(((self.bits >> 14) & 0x01) != 0)
}
#[doc = "Bit 13"]
#[inline(always)]
pub fn cnt_pause_u6(&self) -> CNT_PAUSE_U6_R {
CNT_PAUSE_U6_R::new(((self.bits >> 13) & 0x01) != 0)
}
#[doc = "Bit 12"]
#[inline(always)]
pub fn plus_cnt_rst_u6(&self) -> PLUS_CNT_RST_U6_R {
PLUS_CNT_RST_U6_R::new(((self.bits >> 12) & 0x01) != 0)
}
#[doc = "Bit 11"]
#[inline(always)]
pub fn cnt_pause_u5(&self) -> CNT_PAUSE_U5_R {
CNT_PAUSE_U5_R::new(((self.bits >> 11) & 0x01) != 0)
}
#[doc = "Bit 10"]
#[inline(always)]
pub fn plus_cnt_rst_u5(&self) -> PLUS_CNT_RST_U5_R {
PLUS_CNT_RST_U5_R::new(((self.bits >> 10) & 0x01) != 0)
}
#[doc = "Bit 9"]
#[inline(always)]
pub fn cnt_pause_u4(&self) -> CNT_PAUSE_U4_R {
CNT_PAUSE_U4_R::new(((self.bits >> 9) & 0x01) != 0)
}
#[doc = "Bit 8"]
#[inline(always)]
pub fn plus_cnt_rst_u4(&self) -> PLUS_CNT_RST_U4_R {
PLUS_CNT_RST_U4_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bit 7"]
#[inline(always)]
pub fn cnt_pause_u3(&self) -> CNT_PAUSE_U3_R {
CNT_PAUSE_U3_R::new(((self.bits >> 7) & 0x01) != 0)
}
#[doc = "Bit 6"]
#[inline(always)]
pub fn plus_cnt_rst_u3(&self) -> PLUS_CNT_RST_U3_R {
PLUS_CNT_RST_U3_R::new(((self.bits >> 6) & 0x01) != 0)
}
#[doc = "Bit 5"]
#[inline(always)]
pub fn cnt_pause_u2(&self) -> CNT_PAUSE_U2_R {
CNT_PAUSE_U2_R::new(((self.bits >> 5) & 0x01) != 0)
}
#[doc = "Bit 4"]
#[inline(always)]
pub fn plus_cnt_rst_u2(&self) -> PLUS_CNT_RST_U2_R {
PLUS_CNT_RST_U2_R::new(((self.bits >> 4) & 0x01) != 0)
}
#[doc = "Bit 3"]
#[inline(always)]
pub fn cnt_pause_u1(&self) -> CNT_PAUSE_U1_R {
CNT_PAUSE_U1_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 2"]
#[inline(always)]
pub fn plus_cnt_rst_u1(&self) -> PLUS_CNT_RST_U1_R {
PLUS_CNT_RST_U1_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 1"]
#[inline(always)]
pub fn cnt_pause_u0(&self) -> CNT_PAUSE_U0_R {
CNT_PAUSE_U0_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 0"]
#[inline(always)]
pub fn plus_cnt_rst_u0(&self) -> PLUS_CNT_RST_U0_R {
PLUS_CNT_RST_U0_R::new((self.bits & 0x01) != 0)
}
}
impl W {
#[doc = "Bit 16"]
#[inline(always)]
pub fn clk_en(&mut self) -> CLK_EN_W {
CLK_EN_W { w: self }
}
#[doc = "Bit 15"]
#[inline(always)]
pub fn cnt_pause_u7(&mut self) -> CNT_PAUSE_U7_W {
CNT_PAUSE_U7_W { w: self }
}
#[doc = "Bit 14"]
#[inline(always)]
pub fn plus_cnt_rst_u7(&mut self) -> PLUS_CNT_RST_U7_W {
PLUS_CNT_RST_U7_W { w: self }
}
#[doc = "Bit 13"]
#[inline(always)]
pub fn cnt_pause_u6(&mut self) -> CNT_PAUSE_U6_W {
CNT_PAUSE_U6_W { w: self }
}
#[doc = "Bit 12"]
#[inline(always)]
pub fn plus_cnt_rst_u6(&mut self) -> PLUS_CNT_RST_U6_W {
PLUS_CNT_RST_U6_W { w: self }
}
#[doc = "Bit 11"]
#[inline(always)]
pub fn cnt_pause_u5(&mut self) -> CNT_PAUSE_U5_W {
CNT_PAUSE_U5_W { w: self }
}
#[doc = "Bit 10"]
#[inline(always)]
pub fn plus_cnt_rst_u5(&mut self) -> PLUS_CNT_RST_U5_W {
PLUS_CNT_RST_U5_W { w: self }
}
#[doc = "Bit 9"]
#[inline(always)]
pub fn cnt_pause_u4(&mut self) -> CNT_PAUSE_U4_W {
CNT_PAUSE_U4_W { w: self }
}
#[doc = "Bit 8"]
#[inline(always)]
pub fn plus_cnt_rst_u4(&mut self) -> PLUS_CNT_RST_U4_W {
PLUS_CNT_RST_U4_W { w: self }
}
#[doc = "Bit 7"]
#[inline(always)]
pub fn cnt_pause_u3(&mut self) -> CNT_PAUSE_U3_W {
CNT_PAUSE_U3_W { w: self }
}
#[doc = "Bit 6"]
#[inline(always)]
pub fn plus_cnt_rst_u3(&mut self) -> PLUS_CNT_RST_U3_W {
PLUS_CNT_RST_U3_W { w: self }
}
#[doc = "Bit 5"]
#[inline(always)]
pub fn cnt_pause_u2(&mut self) -> CNT_PAUSE_U2_W {
CNT_PAUSE_U2_W { w: self }
}
#[doc = "Bit 4"]
#[inline(always)]
pub fn plus_cnt_rst_u2(&mut self) -> PLUS_CNT_RST_U2_W {
PLUS_CNT_RST_U2_W { w: self }
}
#[doc = "Bit 3"]
#[inline(always)]
pub fn cnt_pause_u1(&mut self) -> CNT_PAUSE_U1_W {
CNT_PAUSE_U1_W { w: self }
}
#[doc = "Bit 2"]
#[inline(always)]
pub fn plus_cnt_rst_u1(&mut self) -> PLUS_CNT_RST_U1_W {
PLUS_CNT_RST_U1_W { w: self }
}
#[doc = "Bit 1"]
#[inline(always)]
pub fn cnt_pause_u0(&mut self) -> CNT_PAUSE_U0_W {
CNT_PAUSE_U0_W { w: self }
}
#[doc = "Bit 0"]
#[inline(always)]
pub fn plus_cnt_rst_u0(&mut self) -> PLUS_CNT_RST_U0_W {
PLUS_CNT_RST_U0_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 = "PCNT_CTRL\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 [ctrl](index.html) module"]
pub struct CTRL_SPEC;
impl crate::RegisterSpec for CTRL_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [ctrl::R](R) reader structure"]
impl crate::Readable for CTRL_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [ctrl::W](W) writer structure"]
impl crate::Writable for CTRL_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets CTRL to value 0"]
impl crate::Resettable for CTRL_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}