#[doc = "Register `BIAS_CONF` reader"]
pub struct R(crate::R<BIAS_CONF_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<BIAS_CONF_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl core::convert::From<crate::R<BIAS_CONF_SPEC>> for R {
fn from(reader: crate::R<BIAS_CONF_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `BIAS_CONF` writer"]
pub struct W(crate::W<BIAS_CONF_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<BIAS_CONF_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<BIAS_CONF_SPEC>> for W {
fn from(writer: crate::W<BIAS_CONF_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `RST_BIAS_I2C` reader - "]
pub struct RST_BIAS_I2C_R(crate::FieldReader<bool, bool>);
impl RST_BIAS_I2C_R {
pub(crate) fn new(bits: bool) -> Self {
RST_BIAS_I2C_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for RST_BIAS_I2C_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `RST_BIAS_I2C` writer - "]
pub struct RST_BIAS_I2C_W<'a> {
w: &'a mut W,
}
impl<'a> RST_BIAS_I2C_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 << 31)) | (((value as u32) & 0x01) << 31);
self.w
}
}
#[doc = "Field `DEC_HEARTBEAT_WIDTH` reader - "]
pub struct DEC_HEARTBEAT_WIDTH_R(crate::FieldReader<bool, bool>);
impl DEC_HEARTBEAT_WIDTH_R {
pub(crate) fn new(bits: bool) -> Self {
DEC_HEARTBEAT_WIDTH_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for DEC_HEARTBEAT_WIDTH_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `DEC_HEARTBEAT_WIDTH` writer - "]
pub struct DEC_HEARTBEAT_WIDTH_W<'a> {
w: &'a mut W,
}
impl<'a> DEC_HEARTBEAT_WIDTH_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 << 30)) | (((value as u32) & 0x01) << 30);
self.w
}
}
#[doc = "Field `INC_HEARTBEAT_PERIOD` reader - "]
pub struct INC_HEARTBEAT_PERIOD_R(crate::FieldReader<bool, bool>);
impl INC_HEARTBEAT_PERIOD_R {
pub(crate) fn new(bits: bool) -> Self {
INC_HEARTBEAT_PERIOD_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for INC_HEARTBEAT_PERIOD_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `INC_HEARTBEAT_PERIOD` writer - "]
pub struct INC_HEARTBEAT_PERIOD_W<'a> {
w: &'a mut W,
}
impl<'a> INC_HEARTBEAT_PERIOD_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 << 29)) | (((value as u32) & 0x01) << 29);
self.w
}
}
#[doc = "Field `DEC_HEARTBEAT_PERIOD` reader - "]
pub struct DEC_HEARTBEAT_PERIOD_R(crate::FieldReader<bool, bool>);
impl DEC_HEARTBEAT_PERIOD_R {
pub(crate) fn new(bits: bool) -> Self {
DEC_HEARTBEAT_PERIOD_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for DEC_HEARTBEAT_PERIOD_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `DEC_HEARTBEAT_PERIOD` writer - "]
pub struct DEC_HEARTBEAT_PERIOD_W<'a> {
w: &'a mut W,
}
impl<'a> DEC_HEARTBEAT_PERIOD_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 << 28)) | (((value as u32) & 0x01) << 28);
self.w
}
}
#[doc = "Field `INC_HEARTBEAT_REFRESH` reader - "]
pub struct INC_HEARTBEAT_REFRESH_R(crate::FieldReader<bool, bool>);
impl INC_HEARTBEAT_REFRESH_R {
pub(crate) fn new(bits: bool) -> Self {
INC_HEARTBEAT_REFRESH_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for INC_HEARTBEAT_REFRESH_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `INC_HEARTBEAT_REFRESH` writer - "]
pub struct INC_HEARTBEAT_REFRESH_W<'a> {
w: &'a mut W,
}
impl<'a> INC_HEARTBEAT_REFRESH_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 << 27)) | (((value as u32) & 0x01) << 27);
self.w
}
}
#[doc = "Field `ENB_SCK_XTAL` reader - "]
pub struct ENB_SCK_XTAL_R(crate::FieldReader<bool, bool>);
impl ENB_SCK_XTAL_R {
pub(crate) fn new(bits: bool) -> Self {
ENB_SCK_XTAL_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for ENB_SCK_XTAL_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `ENB_SCK_XTAL` writer - "]
pub struct ENB_SCK_XTAL_W<'a> {
w: &'a mut W,
}
impl<'a> ENB_SCK_XTAL_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 << 26)) | (((value as u32) & 0x01) << 26);
self.w
}
}
#[doc = "Field `DBG_ATTEN` reader - "]
pub struct DBG_ATTEN_R(crate::FieldReader<u8, u8>);
impl DBG_ATTEN_R {
pub(crate) fn new(bits: u8) -> Self {
DBG_ATTEN_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for DBG_ATTEN_R {
type Target = crate::FieldReader<u8, u8>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `DBG_ATTEN` writer - "]
pub struct DBG_ATTEN_W<'a> {
w: &'a mut W,
}
impl<'a> DBG_ATTEN_W<'a> {
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x03 << 24)) | (((value as u32) & 0x03) << 24);
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 << 31)) | (((value as u32) & 0x01) << 31);
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 << 30)) | (((value as u32) & 0x01) << 30);
self.w
}
}
#[doc = "Field `DBOOST_FORCE_PU` reader - "]
pub struct DBOOST_FORCE_PU_R(crate::FieldReader<bool, bool>);
impl DBOOST_FORCE_PU_R {
pub(crate) fn new(bits: bool) -> Self {
DBOOST_FORCE_PU_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for DBOOST_FORCE_PU_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `DBOOST_FORCE_PU` writer - "]
pub struct DBOOST_FORCE_PU_W<'a> {
w: &'a mut W,
}
impl<'a> DBOOST_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 << 29)) | (((value as u32) & 0x01) << 29);
self.w
}
}
#[doc = "Field `DBOOST_FORCE_PD` reader - "]
pub struct DBOOST_FORCE_PD_R(crate::FieldReader<bool, bool>);
impl DBOOST_FORCE_PD_R {
pub(crate) fn new(bits: bool) -> Self {
DBOOST_FORCE_PD_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for DBOOST_FORCE_PD_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `DBOOST_FORCE_PD` writer - "]
pub struct DBOOST_FORCE_PD_W<'a> {
w: &'a mut W,
}
impl<'a> DBOOST_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 << 28)) | (((value as u32) & 0x01) << 28);
self.w
}
}
#[doc = "Field `DBIAS_WAK` reader - "]
pub struct DBIAS_WAK_R(crate::FieldReader<u8, u8>);
impl DBIAS_WAK_R {
pub(crate) fn new(bits: u8) -> Self {
DBIAS_WAK_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for DBIAS_WAK_R {
type Target = crate::FieldReader<u8, u8>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `DBIAS_WAK` writer - "]
pub struct DBIAS_WAK_W<'a> {
w: &'a mut W,
}
impl<'a> DBIAS_WAK_W<'a> {
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x07 << 25)) | (((value as u32) & 0x07) << 25);
self.w
}
}
#[doc = "Field `DBIAS_SLP` reader - "]
pub struct DBIAS_SLP_R(crate::FieldReader<u8, u8>);
impl DBIAS_SLP_R {
pub(crate) fn new(bits: u8) -> Self {
DBIAS_SLP_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for DBIAS_SLP_R {
type Target = crate::FieldReader<u8, u8>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `DBIAS_SLP` writer - "]
pub struct DBIAS_SLP_W<'a> {
w: &'a mut W,
}
impl<'a> DBIAS_SLP_W<'a> {
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x07 << 22)) | (((value as u32) & 0x07) << 22);
self.w
}
}
#[doc = "Field `SCK_DCAP` reader - "]
pub struct SCK_DCAP_R(crate::FieldReader<u8, u8>);
impl SCK_DCAP_R {
pub(crate) fn new(bits: u8) -> Self {
SCK_DCAP_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for SCK_DCAP_R {
type Target = crate::FieldReader<u8, u8>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `SCK_DCAP` writer - "]
pub struct SCK_DCAP_W<'a> {
w: &'a mut W,
}
impl<'a> SCK_DCAP_W<'a> {
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0xff << 14)) | (((value as u32) & 0xff) << 14);
self.w
}
}
#[doc = "Field `DIG_DBIAS_WAK` reader - "]
pub struct DIG_DBIAS_WAK_R(crate::FieldReader<u8, u8>);
impl DIG_DBIAS_WAK_R {
pub(crate) fn new(bits: u8) -> Self {
DIG_DBIAS_WAK_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for DIG_DBIAS_WAK_R {
type Target = crate::FieldReader<u8, u8>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `DIG_DBIAS_WAK` writer - "]
pub struct DIG_DBIAS_WAK_W<'a> {
w: &'a mut W,
}
impl<'a> DIG_DBIAS_WAK_W<'a> {
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x07 << 11)) | (((value as u32) & 0x07) << 11);
self.w
}
}
#[doc = "Field `DIG_DBIAS_SLP` reader - "]
pub struct DIG_DBIAS_SLP_R(crate::FieldReader<u8, u8>);
impl DIG_DBIAS_SLP_R {
pub(crate) fn new(bits: u8) -> Self {
DIG_DBIAS_SLP_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for DIG_DBIAS_SLP_R {
type Target = crate::FieldReader<u8, u8>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `DIG_DBIAS_SLP` writer - "]
pub struct DIG_DBIAS_SLP_W<'a> {
w: &'a mut W,
}
impl<'a> DIG_DBIAS_SLP_W<'a> {
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x07 << 8)) | (((value as u32) & 0x07) << 8);
self.w
}
}
#[doc = "Field `SCK_DCAP_FORCE` reader - "]
pub struct SCK_DCAP_FORCE_R(crate::FieldReader<bool, bool>);
impl SCK_DCAP_FORCE_R {
pub(crate) fn new(bits: bool) -> Self {
SCK_DCAP_FORCE_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for SCK_DCAP_FORCE_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `SCK_DCAP_FORCE` writer - "]
pub struct SCK_DCAP_FORCE_W<'a> {
w: &'a mut W,
}
impl<'a> SCK_DCAP_FORCE_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
}
}
impl R {
#[doc = "Bit 31"]
#[inline(always)]
pub fn rst_bias_i2c(&self) -> RST_BIAS_I2C_R {
RST_BIAS_I2C_R::new(((self.bits >> 31) & 0x01) != 0)
}
#[doc = "Bit 30"]
#[inline(always)]
pub fn dec_heartbeat_width(&self) -> DEC_HEARTBEAT_WIDTH_R {
DEC_HEARTBEAT_WIDTH_R::new(((self.bits >> 30) & 0x01) != 0)
}
#[doc = "Bit 29"]
#[inline(always)]
pub fn inc_heartbeat_period(&self) -> INC_HEARTBEAT_PERIOD_R {
INC_HEARTBEAT_PERIOD_R::new(((self.bits >> 29) & 0x01) != 0)
}
#[doc = "Bit 28"]
#[inline(always)]
pub fn dec_heartbeat_period(&self) -> DEC_HEARTBEAT_PERIOD_R {
DEC_HEARTBEAT_PERIOD_R::new(((self.bits >> 28) & 0x01) != 0)
}
#[doc = "Bit 27"]
#[inline(always)]
pub fn inc_heartbeat_refresh(&self) -> INC_HEARTBEAT_REFRESH_R {
INC_HEARTBEAT_REFRESH_R::new(((self.bits >> 27) & 0x01) != 0)
}
#[doc = "Bit 26"]
#[inline(always)]
pub fn enb_sck_xtal(&self) -> ENB_SCK_XTAL_R {
ENB_SCK_XTAL_R::new(((self.bits >> 26) & 0x01) != 0)
}
#[doc = "Bits 24:25"]
#[inline(always)]
pub fn dbg_atten(&self) -> DBG_ATTEN_R {
DBG_ATTEN_R::new(((self.bits >> 24) & 0x03) as u8)
}
#[doc = "Bit 31"]
#[inline(always)]
pub fn force_pu(&self) -> FORCE_PU_R {
FORCE_PU_R::new(((self.bits >> 31) & 0x01) != 0)
}
#[doc = "Bit 30"]
#[inline(always)]
pub fn force_pd(&self) -> FORCE_PD_R {
FORCE_PD_R::new(((self.bits >> 30) & 0x01) != 0)
}
#[doc = "Bit 29"]
#[inline(always)]
pub fn dboost_force_pu(&self) -> DBOOST_FORCE_PU_R {
DBOOST_FORCE_PU_R::new(((self.bits >> 29) & 0x01) != 0)
}
#[doc = "Bit 28"]
#[inline(always)]
pub fn dboost_force_pd(&self) -> DBOOST_FORCE_PD_R {
DBOOST_FORCE_PD_R::new(((self.bits >> 28) & 0x01) != 0)
}
#[doc = "Bits 25:27"]
#[inline(always)]
pub fn dbias_wak(&self) -> DBIAS_WAK_R {
DBIAS_WAK_R::new(((self.bits >> 25) & 0x07) as u8)
}
#[doc = "Bits 22:24"]
#[inline(always)]
pub fn dbias_slp(&self) -> DBIAS_SLP_R {
DBIAS_SLP_R::new(((self.bits >> 22) & 0x07) as u8)
}
#[doc = "Bits 14:21"]
#[inline(always)]
pub fn sck_dcap(&self) -> SCK_DCAP_R {
SCK_DCAP_R::new(((self.bits >> 14) & 0xff) as u8)
}
#[doc = "Bits 11:13"]
#[inline(always)]
pub fn dig_dbias_wak(&self) -> DIG_DBIAS_WAK_R {
DIG_DBIAS_WAK_R::new(((self.bits >> 11) & 0x07) as u8)
}
#[doc = "Bits 8:10"]
#[inline(always)]
pub fn dig_dbias_slp(&self) -> DIG_DBIAS_SLP_R {
DIG_DBIAS_SLP_R::new(((self.bits >> 8) & 0x07) as u8)
}
#[doc = "Bit 7"]
#[inline(always)]
pub fn sck_dcap_force(&self) -> SCK_DCAP_FORCE_R {
SCK_DCAP_FORCE_R::new(((self.bits >> 7) & 0x01) != 0)
}
}
impl W {
#[doc = "Bit 31"]
#[inline(always)]
pub fn rst_bias_i2c(&mut self) -> RST_BIAS_I2C_W {
RST_BIAS_I2C_W { w: self }
}
#[doc = "Bit 30"]
#[inline(always)]
pub fn dec_heartbeat_width(&mut self) -> DEC_HEARTBEAT_WIDTH_W {
DEC_HEARTBEAT_WIDTH_W { w: self }
}
#[doc = "Bit 29"]
#[inline(always)]
pub fn inc_heartbeat_period(&mut self) -> INC_HEARTBEAT_PERIOD_W {
INC_HEARTBEAT_PERIOD_W { w: self }
}
#[doc = "Bit 28"]
#[inline(always)]
pub fn dec_heartbeat_period(&mut self) -> DEC_HEARTBEAT_PERIOD_W {
DEC_HEARTBEAT_PERIOD_W { w: self }
}
#[doc = "Bit 27"]
#[inline(always)]
pub fn inc_heartbeat_refresh(&mut self) -> INC_HEARTBEAT_REFRESH_W {
INC_HEARTBEAT_REFRESH_W { w: self }
}
#[doc = "Bit 26"]
#[inline(always)]
pub fn enb_sck_xtal(&mut self) -> ENB_SCK_XTAL_W {
ENB_SCK_XTAL_W { w: self }
}
#[doc = "Bits 24:25"]
#[inline(always)]
pub fn dbg_atten(&mut self) -> DBG_ATTEN_W {
DBG_ATTEN_W { w: self }
}
#[doc = "Bit 31"]
#[inline(always)]
pub fn force_pu(&mut self) -> FORCE_PU_W {
FORCE_PU_W { w: self }
}
#[doc = "Bit 30"]
#[inline(always)]
pub fn force_pd(&mut self) -> FORCE_PD_W {
FORCE_PD_W { w: self }
}
#[doc = "Bit 29"]
#[inline(always)]
pub fn dboost_force_pu(&mut self) -> DBOOST_FORCE_PU_W {
DBOOST_FORCE_PU_W { w: self }
}
#[doc = "Bit 28"]
#[inline(always)]
pub fn dboost_force_pd(&mut self) -> DBOOST_FORCE_PD_W {
DBOOST_FORCE_PD_W { w: self }
}
#[doc = "Bits 25:27"]
#[inline(always)]
pub fn dbias_wak(&mut self) -> DBIAS_WAK_W {
DBIAS_WAK_W { w: self }
}
#[doc = "Bits 22:24"]
#[inline(always)]
pub fn dbias_slp(&mut self) -> DBIAS_SLP_W {
DBIAS_SLP_W { w: self }
}
#[doc = "Bits 14:21"]
#[inline(always)]
pub fn sck_dcap(&mut self) -> SCK_DCAP_W {
SCK_DCAP_W { w: self }
}
#[doc = "Bits 11:13"]
#[inline(always)]
pub fn dig_dbias_wak(&mut self) -> DIG_DBIAS_WAK_W {
DIG_DBIAS_WAK_W { w: self }
}
#[doc = "Bits 8:10"]
#[inline(always)]
pub fn dig_dbias_slp(&mut self) -> DIG_DBIAS_SLP_W {
DIG_DBIAS_SLP_W { w: self }
}
#[doc = "Bit 7"]
#[inline(always)]
pub fn sck_dcap_force(&mut self) -> SCK_DCAP_FORCE_W {
SCK_DCAP_FORCE_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_BIAS_CONF\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 [bias_conf](index.html) module"]
pub struct BIAS_CONF_SPEC;
impl crate::RegisterSpec for BIAS_CONF_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [bias_conf::R](R) reader structure"]
impl crate::Readable for BIAS_CONF_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [bias_conf::W](W) writer structure"]
impl crate::Writable for BIAS_CONF_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets BIAS_CONF to value 0"]
impl crate::Resettable for BIAS_CONF_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}