#[doc = "Register `CLKSTA` reader"]
pub struct R(crate::R<CLKSTA_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<CLKSTA_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl core::convert::From<crate::R<CLKSTA_SPEC>> for R {
fn from(reader: crate::R<CLKSTA_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `EXTON` reader - <TBD>"]
pub struct EXTON_R(crate::FieldReader<bool, bool>);
impl EXTON_R {
pub(crate) fn new(bits: bool) -> Self {
EXTON_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for EXTON_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `RCON` reader - <TBD>"]
pub struct RCON_R(crate::FieldReader<bool, bool>);
impl RCON_R {
pub(crate) fn new(bits: bool) -> Self {
RCON_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for RCON_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl R {
#[doc = "Bit 0 - <TBD>"]
#[inline(always)]
pub fn exton(&self) -> EXTON_R {
EXTON_R::new((self.bits & 0x01) != 0)
}
#[doc = "Bit 1 - <TBD>"]
#[inline(always)]
pub fn rcon(&self) -> RCON_R {
RCON_R::new(((self.bits >> 1) & 0x01) != 0)
}
}
#[doc = "<TBD>\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [clksta](index.html) module"]
pub struct CLKSTA_SPEC;
impl crate::RegisterSpec for CLKSTA_SPEC {
type Ux = u8;
}
#[doc = "`read()` method returns [clksta::R](R) reader structure"]
impl crate::Readable for CLKSTA_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets CLKSTA to value 0"]
impl crate::Resettable for CLKSTA_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}