summaryrefslogtreecommitdiff
path: root/src/tsens
diff options
context:
space:
mode:
authorArne Dußin2021-11-06 11:50:33 +0100
committerArne Dußin2021-11-06 11:50:33 +0100
commit0666a6ba1dbd66cf8b93c113e362ccbcd99152a0 (patch)
treea184284dbd2316f4624f092e4e7521ea8c90855b /src/tsens
downloadsamc21-0666a6ba1dbd66cf8b93c113e362ccbcd99152a0.tar.gz
samc21-0666a6ba1dbd66cf8b93c113e362ccbcd99152a0.zip
Initial commit
Diffstat (limited to 'src/tsens')
-rw-r--r--src/tsens/cal.rs138
-rw-r--r--src/tsens/ctrla.rs204
-rw-r--r--src/tsens/ctrlb.rs72
-rw-r--r--src/tsens/ctrlc.rs262
-rw-r--r--src/tsens/dbgctrl.rs112
-rw-r--r--src/tsens/evctrl.rs204
-rw-r--r--src/tsens/gain.rs102
-rw-r--r--src/tsens/intenclr.rs250
-rw-r--r--src/tsens/intenset.rs250
-rw-r--r--src/tsens/intflag.rs250
-rw-r--r--src/tsens/offset.rs102
-rw-r--r--src/tsens/status.rs52
-rw-r--r--src/tsens/syncbusy.rs71
-rw-r--r--src/tsens/value.rs52
-rw-r--r--src/tsens/winlt.rs102
-rw-r--r--src/tsens/winut.rs102
16 files changed, 2325 insertions, 0 deletions
diff --git a/src/tsens/cal.rs b/src/tsens/cal.rs
new file mode 100644
index 0000000..55855eb
--- /dev/null
+++ b/src/tsens/cal.rs
@@ -0,0 +1,138 @@
+#[doc = "Register `CAL` reader"]
+pub struct R(crate::R<CAL_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<CAL_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<CAL_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<CAL_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Register `CAL` writer"]
+pub struct W(crate::W<CAL_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<CAL_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 From<crate::W<CAL_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<CAL_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Field `FCAL` reader - Frequency Calibration"]
+pub struct FCAL_R(crate::FieldReader<u8, u8>);
+impl FCAL_R {
+ pub(crate) fn new(bits: u8) -> Self {
+ FCAL_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for FCAL_R {
+ type Target = crate::FieldReader<u8, u8>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `FCAL` writer - Frequency Calibration"]
+pub struct FCAL_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> FCAL_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 & !0x3f) | (value as u32 & 0x3f);
+ self.w
+ }
+}
+#[doc = "Field `TCAL` reader - Temperature Calibration"]
+pub struct TCAL_R(crate::FieldReader<u8, u8>);
+impl TCAL_R {
+ pub(crate) fn new(bits: u8) -> Self {
+ TCAL_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for TCAL_R {
+ type Target = crate::FieldReader<u8, u8>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `TCAL` writer - Temperature Calibration"]
+pub struct TCAL_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> TCAL_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 & !(0x3f << 8)) | ((value as u32 & 0x3f) << 8);
+ self.w
+ }
+}
+impl R {
+ #[doc = "Bits 0:5 - Frequency Calibration"]
+ #[inline(always)]
+ pub fn fcal(&self) -> FCAL_R {
+ FCAL_R::new((self.bits & 0x3f) as u8)
+ }
+ #[doc = "Bits 8:13 - Temperature Calibration"]
+ #[inline(always)]
+ pub fn tcal(&self) -> TCAL_R {
+ TCAL_R::new(((self.bits >> 8) & 0x3f) as u8)
+ }
+}
+impl W {
+ #[doc = "Bits 0:5 - Frequency Calibration"]
+ #[inline(always)]
+ pub fn fcal(&mut self) -> FCAL_W {
+ FCAL_W { w: self }
+ }
+ #[doc = "Bits 8:13 - Temperature Calibration"]
+ #[inline(always)]
+ pub fn tcal(&mut self) -> TCAL_W {
+ TCAL_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "Calibration Register\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 [cal](index.html) module"]
+pub struct CAL_SPEC;
+impl crate::RegisterSpec for CAL_SPEC {
+ type Ux = u32;
+}
+#[doc = "`read()` method returns [cal::R](R) reader structure"]
+impl crate::Readable for CAL_SPEC {
+ type Reader = R;
+}
+#[doc = "`write(|w| ..)` method takes [cal::W](W) writer structure"]
+impl crate::Writable for CAL_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets CAL to value 0"]
+impl crate::Resettable for CAL_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/tsens/ctrla.rs b/src/tsens/ctrla.rs
new file mode 100644
index 0000000..e8b1284
--- /dev/null
+++ b/src/tsens/ctrla.rs
@@ -0,0 +1,204 @@
+#[doc = "Register `CTRLA` reader"]
+pub struct R(crate::R<CTRLA_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<CTRLA_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<CTRLA_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<CTRLA_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Register `CTRLA` writer"]
+pub struct W(crate::W<CTRLA_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<CTRLA_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 From<crate::W<CTRLA_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<CTRLA_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Field `SWRST` reader - Software Reset"]
+pub struct SWRST_R(crate::FieldReader<bool, bool>);
+impl SWRST_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ SWRST_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for SWRST_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `SWRST` writer - Software Reset"]
+pub struct SWRST_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> SWRST_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 u8 & 0x01);
+ self.w
+ }
+}
+#[doc = "Field `ENABLE` reader - Enable"]
+pub struct ENABLE_R(crate::FieldReader<bool, bool>);
+impl ENABLE_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ ENABLE_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for ENABLE_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `ENABLE` writer - Enable"]
+pub struct ENABLE_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> ENABLE_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 u8 & 0x01) << 1);
+ self.w
+ }
+}
+#[doc = "Field `RUNSTDBY` reader - Run in Standby"]
+pub struct RUNSTDBY_R(crate::FieldReader<bool, bool>);
+impl RUNSTDBY_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ RUNSTDBY_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for RUNSTDBY_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `RUNSTDBY` writer - Run in Standby"]
+pub struct RUNSTDBY_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> RUNSTDBY_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 u8 & 0x01) << 6);
+ self.w
+ }
+}
+impl R {
+ #[doc = "Bit 0 - Software Reset"]
+ #[inline(always)]
+ pub fn swrst(&self) -> SWRST_R {
+ SWRST_R::new((self.bits & 0x01) != 0)
+ }
+ #[doc = "Bit 1 - Enable"]
+ #[inline(always)]
+ pub fn enable(&self) -> ENABLE_R {
+ ENABLE_R::new(((self.bits >> 1) & 0x01) != 0)
+ }
+ #[doc = "Bit 6 - Run in Standby"]
+ #[inline(always)]
+ pub fn runstdby(&self) -> RUNSTDBY_R {
+ RUNSTDBY_R::new(((self.bits >> 6) & 0x01) != 0)
+ }
+}
+impl W {
+ #[doc = "Bit 0 - Software Reset"]
+ #[inline(always)]
+ pub fn swrst(&mut self) -> SWRST_W {
+ SWRST_W { w: self }
+ }
+ #[doc = "Bit 1 - Enable"]
+ #[inline(always)]
+ pub fn enable(&mut self) -> ENABLE_W {
+ ENABLE_W { w: self }
+ }
+ #[doc = "Bit 6 - Run in Standby"]
+ #[inline(always)]
+ pub fn runstdby(&mut self) -> RUNSTDBY_W {
+ RUNSTDBY_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "Control A Register\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 [ctrla](index.html) module"]
+pub struct CTRLA_SPEC;
+impl crate::RegisterSpec for CTRLA_SPEC {
+ type Ux = u8;
+}
+#[doc = "`read()` method returns [ctrla::R](R) reader structure"]
+impl crate::Readable for CTRLA_SPEC {
+ type Reader = R;
+}
+#[doc = "`write(|w| ..)` method takes [ctrla::W](W) writer structure"]
+impl crate::Writable for CTRLA_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets CTRLA to value 0"]
+impl crate::Resettable for CTRLA_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/tsens/ctrlb.rs b/src/tsens/ctrlb.rs
new file mode 100644
index 0000000..7d350e7
--- /dev/null
+++ b/src/tsens/ctrlb.rs
@@ -0,0 +1,72 @@
+#[doc = "Register `CTRLB` writer"]
+pub struct W(crate::W<CTRLB_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<CTRLB_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 From<crate::W<CTRLB_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<CTRLB_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Field `START` writer - Start Measurement"]
+pub struct START_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> START_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 u8 & 0x01);
+ self.w
+ }
+}
+impl W {
+ #[doc = "Bit 0 - Start Measurement"]
+ #[inline(always)]
+ pub fn start(&mut self) -> START_W {
+ START_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "Control B Register\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ctrlb](index.html) module"]
+pub struct CTRLB_SPEC;
+impl crate::RegisterSpec for CTRLB_SPEC {
+ type Ux = u8;
+}
+#[doc = "`write(|w| ..)` method takes [ctrlb::W](W) writer structure"]
+impl crate::Writable for CTRLB_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets CTRLB to value 0"]
+impl crate::Resettable for CTRLB_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/tsens/ctrlc.rs b/src/tsens/ctrlc.rs
new file mode 100644
index 0000000..115858f
--- /dev/null
+++ b/src/tsens/ctrlc.rs
@@ -0,0 +1,262 @@
+#[doc = "Register `CTRLC` reader"]
+pub struct R(crate::R<CTRLC_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<CTRLC_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<CTRLC_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<CTRLC_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Register `CTRLC` writer"]
+pub struct W(crate::W<CTRLC_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<CTRLC_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 From<crate::W<CTRLC_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<CTRLC_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Window Monitor Mode\n\nValue on reset: 0"]
+#[derive(Clone, Copy, Debug, PartialEq)]
+#[repr(u8)]
+pub enum WINMODE_A {
+ #[doc = "0: No window mode (default)"]
+ DISABLE = 0,
+ #[doc = "1: VALUE greater than WINLT"]
+ ABOVE = 1,
+ #[doc = "2: VALUE less than WINUT"]
+ BELOW = 2,
+ #[doc = "3: VALUE greater than WINLT and VALUE less than WINUT"]
+ INSIDE = 3,
+ #[doc = "4: VALUE less than WINLT or VALUE greater than WINUT"]
+ OUTSIDE = 4,
+ #[doc = "5: VALUE greater than WINUT with hysteresis to WINLT"]
+ HYST_ABOVE = 5,
+ #[doc = "6: VALUE less than WINLST with hysteresis to WINUT"]
+ HYST_BELOW = 6,
+}
+impl From<WINMODE_A> for u8 {
+ #[inline(always)]
+ fn from(variant: WINMODE_A) -> Self {
+ variant as _
+ }
+}
+#[doc = "Field `WINMODE` reader - Window Monitor Mode"]
+pub struct WINMODE_R(crate::FieldReader<u8, WINMODE_A>);
+impl WINMODE_R {
+ pub(crate) fn new(bits: u8) -> Self {
+ WINMODE_R(crate::FieldReader::new(bits))
+ }
+ #[doc = r"Get enumerated values variant"]
+ #[inline(always)]
+ pub fn variant(&self) -> Option<WINMODE_A> {
+ match self.bits {
+ 0 => Some(WINMODE_A::DISABLE),
+ 1 => Some(WINMODE_A::ABOVE),
+ 2 => Some(WINMODE_A::BELOW),
+ 3 => Some(WINMODE_A::INSIDE),
+ 4 => Some(WINMODE_A::OUTSIDE),
+ 5 => Some(WINMODE_A::HYST_ABOVE),
+ 6 => Some(WINMODE_A::HYST_BELOW),
+ _ => None,
+ }
+ }
+ #[doc = "Checks if the value of the field is `DISABLE`"]
+ #[inline(always)]
+ pub fn is_disable(&self) -> bool {
+ **self == WINMODE_A::DISABLE
+ }
+ #[doc = "Checks if the value of the field is `ABOVE`"]
+ #[inline(always)]
+ pub fn is_above(&self) -> bool {
+ **self == WINMODE_A::ABOVE
+ }
+ #[doc = "Checks if the value of the field is `BELOW`"]
+ #[inline(always)]
+ pub fn is_below(&self) -> bool {
+ **self == WINMODE_A::BELOW
+ }
+ #[doc = "Checks if the value of the field is `INSIDE`"]
+ #[inline(always)]
+ pub fn is_inside(&self) -> bool {
+ **self == WINMODE_A::INSIDE
+ }
+ #[doc = "Checks if the value of the field is `OUTSIDE`"]
+ #[inline(always)]
+ pub fn is_outside(&self) -> bool {
+ **self == WINMODE_A::OUTSIDE
+ }
+ #[doc = "Checks if the value of the field is `HYST_ABOVE`"]
+ #[inline(always)]
+ pub fn is_hyst_above(&self) -> bool {
+ **self == WINMODE_A::HYST_ABOVE
+ }
+ #[doc = "Checks if the value of the field is `HYST_BELOW`"]
+ #[inline(always)]
+ pub fn is_hyst_below(&self) -> bool {
+ **self == WINMODE_A::HYST_BELOW
+ }
+}
+impl core::ops::Deref for WINMODE_R {
+ type Target = crate::FieldReader<u8, WINMODE_A>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `WINMODE` writer - Window Monitor Mode"]
+pub struct WINMODE_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> WINMODE_W<'a> {
+ #[doc = r"Writes `variant` to the field"]
+ #[inline(always)]
+ pub fn variant(self, variant: WINMODE_A) -> &'a mut W {
+ unsafe { self.bits(variant.into()) }
+ }
+ #[doc = "No window mode (default)"]
+ #[inline(always)]
+ pub fn disable(self) -> &'a mut W {
+ self.variant(WINMODE_A::DISABLE)
+ }
+ #[doc = "VALUE greater than WINLT"]
+ #[inline(always)]
+ pub fn above(self) -> &'a mut W {
+ self.variant(WINMODE_A::ABOVE)
+ }
+ #[doc = "VALUE less than WINUT"]
+ #[inline(always)]
+ pub fn below(self) -> &'a mut W {
+ self.variant(WINMODE_A::BELOW)
+ }
+ #[doc = "VALUE greater than WINLT and VALUE less than WINUT"]
+ #[inline(always)]
+ pub fn inside(self) -> &'a mut W {
+ self.variant(WINMODE_A::INSIDE)
+ }
+ #[doc = "VALUE less than WINLT or VALUE greater than WINUT"]
+ #[inline(always)]
+ pub fn outside(self) -> &'a mut W {
+ self.variant(WINMODE_A::OUTSIDE)
+ }
+ #[doc = "VALUE greater than WINUT with hysteresis to WINLT"]
+ #[inline(always)]
+ pub fn hyst_above(self) -> &'a mut W {
+ self.variant(WINMODE_A::HYST_ABOVE)
+ }
+ #[doc = "VALUE less than WINLST with hysteresis to WINUT"]
+ #[inline(always)]
+ pub fn hyst_below(self) -> &'a mut W {
+ self.variant(WINMODE_A::HYST_BELOW)
+ }
+ #[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) | (value as u8 & 0x07);
+ self.w
+ }
+}
+#[doc = "Field `FREERUN` reader - Free Running Measurement"]
+pub struct FREERUN_R(crate::FieldReader<bool, bool>);
+impl FREERUN_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ FREERUN_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for FREERUN_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `FREERUN` writer - Free Running Measurement"]
+pub struct FREERUN_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> FREERUN_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 u8 & 0x01) << 4);
+ self.w
+ }
+}
+impl R {
+ #[doc = "Bits 0:2 - Window Monitor Mode"]
+ #[inline(always)]
+ pub fn winmode(&self) -> WINMODE_R {
+ WINMODE_R::new((self.bits & 0x07) as u8)
+ }
+ #[doc = "Bit 4 - Free Running Measurement"]
+ #[inline(always)]
+ pub fn freerun(&self) -> FREERUN_R {
+ FREERUN_R::new(((self.bits >> 4) & 0x01) != 0)
+ }
+}
+impl W {
+ #[doc = "Bits 0:2 - Window Monitor Mode"]
+ #[inline(always)]
+ pub fn winmode(&mut self) -> WINMODE_W {
+ WINMODE_W { w: self }
+ }
+ #[doc = "Bit 4 - Free Running Measurement"]
+ #[inline(always)]
+ pub fn freerun(&mut self) -> FREERUN_W {
+ FREERUN_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "Control C Register\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 [ctrlc](index.html) module"]
+pub struct CTRLC_SPEC;
+impl crate::RegisterSpec for CTRLC_SPEC {
+ type Ux = u8;
+}
+#[doc = "`read()` method returns [ctrlc::R](R) reader structure"]
+impl crate::Readable for CTRLC_SPEC {
+ type Reader = R;
+}
+#[doc = "`write(|w| ..)` method takes [ctrlc::W](W) writer structure"]
+impl crate::Writable for CTRLC_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets CTRLC to value 0"]
+impl crate::Resettable for CTRLC_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/tsens/dbgctrl.rs b/src/tsens/dbgctrl.rs
new file mode 100644
index 0000000..78835c5
--- /dev/null
+++ b/src/tsens/dbgctrl.rs
@@ -0,0 +1,112 @@
+#[doc = "Register `DBGCTRL` reader"]
+pub struct R(crate::R<DBGCTRL_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<DBGCTRL_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<DBGCTRL_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<DBGCTRL_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Register `DBGCTRL` writer"]
+pub struct W(crate::W<DBGCTRL_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<DBGCTRL_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 From<crate::W<DBGCTRL_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<DBGCTRL_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Field `DBGRUN` reader - Debug Run"]
+pub struct DBGRUN_R(crate::FieldReader<bool, bool>);
+impl DBGRUN_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ DBGRUN_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for DBGRUN_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `DBGRUN` writer - Debug Run"]
+pub struct DBGRUN_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> DBGRUN_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 u8 & 0x01);
+ self.w
+ }
+}
+impl R {
+ #[doc = "Bit 0 - Debug Run"]
+ #[inline(always)]
+ pub fn dbgrun(&self) -> DBGRUN_R {
+ DBGRUN_R::new((self.bits & 0x01) != 0)
+ }
+}
+impl W {
+ #[doc = "Bit 0 - Debug Run"]
+ #[inline(always)]
+ pub fn dbgrun(&mut self) -> DBGRUN_W {
+ DBGRUN_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "Debug Control Register\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 [dbgctrl](index.html) module"]
+pub struct DBGCTRL_SPEC;
+impl crate::RegisterSpec for DBGCTRL_SPEC {
+ type Ux = u8;
+}
+#[doc = "`read()` method returns [dbgctrl::R](R) reader structure"]
+impl crate::Readable for DBGCTRL_SPEC {
+ type Reader = R;
+}
+#[doc = "`write(|w| ..)` method takes [dbgctrl::W](W) writer structure"]
+impl crate::Writable for DBGCTRL_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets DBGCTRL to value 0"]
+impl crate::Resettable for DBGCTRL_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/tsens/evctrl.rs b/src/tsens/evctrl.rs
new file mode 100644
index 0000000..f4ffade
--- /dev/null
+++ b/src/tsens/evctrl.rs
@@ -0,0 +1,204 @@
+#[doc = "Register `EVCTRL` reader"]
+pub struct R(crate::R<EVCTRL_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<EVCTRL_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<EVCTRL_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<EVCTRL_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Register `EVCTRL` writer"]
+pub struct W(crate::W<EVCTRL_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<EVCTRL_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 From<crate::W<EVCTRL_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<EVCTRL_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Field `STARTEI` reader - Start Conversion Event Input Enable"]
+pub struct STARTEI_R(crate::FieldReader<bool, bool>);
+impl STARTEI_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ STARTEI_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for STARTEI_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `STARTEI` writer - Start Conversion Event Input Enable"]
+pub struct STARTEI_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> STARTEI_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 u8 & 0x01);
+ self.w
+ }
+}
+#[doc = "Field `STARTINV` reader - Start Conversion Event Invert Enable"]
+pub struct STARTINV_R(crate::FieldReader<bool, bool>);
+impl STARTINV_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ STARTINV_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for STARTINV_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `STARTINV` writer - Start Conversion Event Invert Enable"]
+pub struct STARTINV_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> STARTINV_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 u8 & 0x01) << 1);
+ self.w
+ }
+}
+#[doc = "Field `WINEO` reader - Window Monitor Event Out"]
+pub struct WINEO_R(crate::FieldReader<bool, bool>);
+impl WINEO_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ WINEO_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for WINEO_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `WINEO` writer - Window Monitor Event Out"]
+pub struct WINEO_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> WINEO_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 u8 & 0x01) << 2);
+ self.w
+ }
+}
+impl R {
+ #[doc = "Bit 0 - Start Conversion Event Input Enable"]
+ #[inline(always)]
+ pub fn startei(&self) -> STARTEI_R {
+ STARTEI_R::new((self.bits & 0x01) != 0)
+ }
+ #[doc = "Bit 1 - Start Conversion Event Invert Enable"]
+ #[inline(always)]
+ pub fn startinv(&self) -> STARTINV_R {
+ STARTINV_R::new(((self.bits >> 1) & 0x01) != 0)
+ }
+ #[doc = "Bit 2 - Window Monitor Event Out"]
+ #[inline(always)]
+ pub fn wineo(&self) -> WINEO_R {
+ WINEO_R::new(((self.bits >> 2) & 0x01) != 0)
+ }
+}
+impl W {
+ #[doc = "Bit 0 - Start Conversion Event Input Enable"]
+ #[inline(always)]
+ pub fn startei(&mut self) -> STARTEI_W {
+ STARTEI_W { w: self }
+ }
+ #[doc = "Bit 1 - Start Conversion Event Invert Enable"]
+ #[inline(always)]
+ pub fn startinv(&mut self) -> STARTINV_W {
+ STARTINV_W { w: self }
+ }
+ #[doc = "Bit 2 - Window Monitor Event Out"]
+ #[inline(always)]
+ pub fn wineo(&mut self) -> WINEO_W {
+ WINEO_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "Event Control Register\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 [evctrl](index.html) module"]
+pub struct EVCTRL_SPEC;
+impl crate::RegisterSpec for EVCTRL_SPEC {
+ type Ux = u8;
+}
+#[doc = "`read()` method returns [evctrl::R](R) reader structure"]
+impl crate::Readable for EVCTRL_SPEC {
+ type Reader = R;
+}
+#[doc = "`write(|w| ..)` method takes [evctrl::W](W) writer structure"]
+impl crate::Writable for EVCTRL_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets EVCTRL to value 0"]
+impl crate::Resettable for EVCTRL_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/tsens/gain.rs b/src/tsens/gain.rs
new file mode 100644
index 0000000..bf82b50
--- /dev/null
+++ b/src/tsens/gain.rs
@@ -0,0 +1,102 @@
+#[doc = "Register `GAIN` reader"]
+pub struct R(crate::R<GAIN_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<GAIN_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<GAIN_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<GAIN_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Register `GAIN` writer"]
+pub struct W(crate::W<GAIN_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<GAIN_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 From<crate::W<GAIN_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<GAIN_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Field `GAIN` reader - Time Amplifier Gain"]
+pub struct GAIN_R(crate::FieldReader<u32, u32>);
+impl GAIN_R {
+ pub(crate) fn new(bits: u32) -> Self {
+ GAIN_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for GAIN_R {
+ type Target = crate::FieldReader<u32, u32>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `GAIN` writer - Time Amplifier Gain"]
+pub struct GAIN_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> GAIN_W<'a> {
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub unsafe fn bits(self, value: u32) -> &'a mut W {
+ self.w.bits = (self.w.bits & !0x00ff_ffff) | (value as u32 & 0x00ff_ffff);
+ self.w
+ }
+}
+impl R {
+ #[doc = "Bits 0:23 - Time Amplifier Gain"]
+ #[inline(always)]
+ pub fn gain(&self) -> GAIN_R {
+ GAIN_R::new((self.bits & 0x00ff_ffff) as u32)
+ }
+}
+impl W {
+ #[doc = "Bits 0:23 - Time Amplifier Gain"]
+ #[inline(always)]
+ pub fn gain(&mut self) -> GAIN_W {
+ GAIN_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "Gain Register\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 [gain](index.html) module"]
+pub struct GAIN_SPEC;
+impl crate::RegisterSpec for GAIN_SPEC {
+ type Ux = u32;
+}
+#[doc = "`read()` method returns [gain::R](R) reader structure"]
+impl crate::Readable for GAIN_SPEC {
+ type Reader = R;
+}
+#[doc = "`write(|w| ..)` method takes [gain::W](W) writer structure"]
+impl crate::Writable for GAIN_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets GAIN to value 0"]
+impl crate::Resettable for GAIN_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/tsens/intenclr.rs b/src/tsens/intenclr.rs
new file mode 100644
index 0000000..d56d579
--- /dev/null
+++ b/src/tsens/intenclr.rs
@@ -0,0 +1,250 @@
+#[doc = "Register `INTENCLR` reader"]
+pub struct R(crate::R<INTENCLR_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<INTENCLR_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<INTENCLR_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<INTENCLR_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Register `INTENCLR` writer"]
+pub struct W(crate::W<INTENCLR_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<INTENCLR_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 From<crate::W<INTENCLR_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<INTENCLR_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Field `RESRDY` reader - Result Ready Interrupt Enable"]
+pub struct RESRDY_R(crate::FieldReader<bool, bool>);
+impl RESRDY_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ RESRDY_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for RESRDY_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `RESRDY` writer - Result Ready Interrupt Enable"]
+pub struct RESRDY_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> RESRDY_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 u8 & 0x01);
+ self.w
+ }
+}
+#[doc = "Field `OVERRUN` reader - Overrun Interrupt Enable"]
+pub struct OVERRUN_R(crate::FieldReader<bool, bool>);
+impl OVERRUN_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVERRUN_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVERRUN_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVERRUN` writer - Overrun Interrupt Enable"]
+pub struct OVERRUN_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVERRUN_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 u8 & 0x01) << 1);
+ self.w
+ }
+}
+#[doc = "Field `WINMON` reader - Window Monitor Interrupt Enable"]
+pub struct WINMON_R(crate::FieldReader<bool, bool>);
+impl WINMON_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ WINMON_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for WINMON_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `WINMON` writer - Window Monitor Interrupt Enable"]
+pub struct WINMON_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> WINMON_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 u8 & 0x01) << 2);
+ self.w
+ }
+}
+#[doc = "Field `OVF` reader - Overflow Interrupt Enable"]
+pub struct OVF_R(crate::FieldReader<bool, bool>);
+impl OVF_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVF_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVF_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVF` writer - Overflow Interrupt Enable"]
+pub struct OVF_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVF_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 u8 & 0x01) << 3);
+ self.w
+ }
+}
+impl R {
+ #[doc = "Bit 0 - Result Ready Interrupt Enable"]
+ #[inline(always)]
+ pub fn resrdy(&self) -> RESRDY_R {
+ RESRDY_R::new((self.bits & 0x01) != 0)
+ }
+ #[doc = "Bit 1 - Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn overrun(&self) -> OVERRUN_R {
+ OVERRUN_R::new(((self.bits >> 1) & 0x01) != 0)
+ }
+ #[doc = "Bit 2 - Window Monitor Interrupt Enable"]
+ #[inline(always)]
+ pub fn winmon(&self) -> WINMON_R {
+ WINMON_R::new(((self.bits >> 2) & 0x01) != 0)
+ }
+ #[doc = "Bit 3 - Overflow Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovf(&self) -> OVF_R {
+ OVF_R::new(((self.bits >> 3) & 0x01) != 0)
+ }
+}
+impl W {
+ #[doc = "Bit 0 - Result Ready Interrupt Enable"]
+ #[inline(always)]
+ pub fn resrdy(&mut self) -> RESRDY_W {
+ RESRDY_W { w: self }
+ }
+ #[doc = "Bit 1 - Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn overrun(&mut self) -> OVERRUN_W {
+ OVERRUN_W { w: self }
+ }
+ #[doc = "Bit 2 - Window Monitor Interrupt Enable"]
+ #[inline(always)]
+ pub fn winmon(&mut self) -> WINMON_W {
+ WINMON_W { w: self }
+ }
+ #[doc = "Bit 3 - Overflow Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovf(&mut self) -> OVF_W {
+ OVF_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "Interrupt Enable Clear Register\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 [intenclr](index.html) module"]
+pub struct INTENCLR_SPEC;
+impl crate::RegisterSpec for INTENCLR_SPEC {
+ type Ux = u8;
+}
+#[doc = "`read()` method returns [intenclr::R](R) reader structure"]
+impl crate::Readable for INTENCLR_SPEC {
+ type Reader = R;
+}
+#[doc = "`write(|w| ..)` method takes [intenclr::W](W) writer structure"]
+impl crate::Writable for INTENCLR_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets INTENCLR to value 0"]
+impl crate::Resettable for INTENCLR_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/tsens/intenset.rs b/src/tsens/intenset.rs
new file mode 100644
index 0000000..73ba2dc
--- /dev/null
+++ b/src/tsens/intenset.rs
@@ -0,0 +1,250 @@
+#[doc = "Register `INTENSET` reader"]
+pub struct R(crate::R<INTENSET_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<INTENSET_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<INTENSET_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<INTENSET_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Register `INTENSET` writer"]
+pub struct W(crate::W<INTENSET_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<INTENSET_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 From<crate::W<INTENSET_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<INTENSET_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Field `RESRDY` reader - Result Ready Interrupt Enable"]
+pub struct RESRDY_R(crate::FieldReader<bool, bool>);
+impl RESRDY_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ RESRDY_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for RESRDY_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `RESRDY` writer - Result Ready Interrupt Enable"]
+pub struct RESRDY_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> RESRDY_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 u8 & 0x01);
+ self.w
+ }
+}
+#[doc = "Field `OVERRUN` reader - Overrun Interrupt Enable"]
+pub struct OVERRUN_R(crate::FieldReader<bool, bool>);
+impl OVERRUN_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVERRUN_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVERRUN_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVERRUN` writer - Overrun Interrupt Enable"]
+pub struct OVERRUN_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVERRUN_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 u8 & 0x01) << 1);
+ self.w
+ }
+}
+#[doc = "Field `WINMON` reader - Window Monitor Interrupt Enable"]
+pub struct WINMON_R(crate::FieldReader<bool, bool>);
+impl WINMON_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ WINMON_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for WINMON_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `WINMON` writer - Window Monitor Interrupt Enable"]
+pub struct WINMON_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> WINMON_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 u8 & 0x01) << 2);
+ self.w
+ }
+}
+#[doc = "Field `OVF` reader - Overflow Interrupt Enable"]
+pub struct OVF_R(crate::FieldReader<bool, bool>);
+impl OVF_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVF_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVF_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVF` writer - Overflow Interrupt Enable"]
+pub struct OVF_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVF_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 u8 & 0x01) << 3);
+ self.w
+ }
+}
+impl R {
+ #[doc = "Bit 0 - Result Ready Interrupt Enable"]
+ #[inline(always)]
+ pub fn resrdy(&self) -> RESRDY_R {
+ RESRDY_R::new((self.bits & 0x01) != 0)
+ }
+ #[doc = "Bit 1 - Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn overrun(&self) -> OVERRUN_R {
+ OVERRUN_R::new(((self.bits >> 1) & 0x01) != 0)
+ }
+ #[doc = "Bit 2 - Window Monitor Interrupt Enable"]
+ #[inline(always)]
+ pub fn winmon(&self) -> WINMON_R {
+ WINMON_R::new(((self.bits >> 2) & 0x01) != 0)
+ }
+ #[doc = "Bit 3 - Overflow Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovf(&self) -> OVF_R {
+ OVF_R::new(((self.bits >> 3) & 0x01) != 0)
+ }
+}
+impl W {
+ #[doc = "Bit 0 - Result Ready Interrupt Enable"]
+ #[inline(always)]
+ pub fn resrdy(&mut self) -> RESRDY_W {
+ RESRDY_W { w: self }
+ }
+ #[doc = "Bit 1 - Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn overrun(&mut self) -> OVERRUN_W {
+ OVERRUN_W { w: self }
+ }
+ #[doc = "Bit 2 - Window Monitor Interrupt Enable"]
+ #[inline(always)]
+ pub fn winmon(&mut self) -> WINMON_W {
+ WINMON_W { w: self }
+ }
+ #[doc = "Bit 3 - Overflow Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovf(&mut self) -> OVF_W {
+ OVF_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "Interrupt Enable Set Register\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 [intenset](index.html) module"]
+pub struct INTENSET_SPEC;
+impl crate::RegisterSpec for INTENSET_SPEC {
+ type Ux = u8;
+}
+#[doc = "`read()` method returns [intenset::R](R) reader structure"]
+impl crate::Readable for INTENSET_SPEC {
+ type Reader = R;
+}
+#[doc = "`write(|w| ..)` method takes [intenset::W](W) writer structure"]
+impl crate::Writable for INTENSET_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets INTENSET to value 0"]
+impl crate::Resettable for INTENSET_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/tsens/intflag.rs b/src/tsens/intflag.rs
new file mode 100644
index 0000000..4859c4c
--- /dev/null
+++ b/src/tsens/intflag.rs
@@ -0,0 +1,250 @@
+#[doc = "Register `INTFLAG` reader"]
+pub struct R(crate::R<INTFLAG_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<INTFLAG_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<INTFLAG_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<INTFLAG_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Register `INTFLAG` writer"]
+pub struct W(crate::W<INTFLAG_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<INTFLAG_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 From<crate::W<INTFLAG_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<INTFLAG_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Field `RESRDY` reader - Result Ready"]
+pub struct RESRDY_R(crate::FieldReader<bool, bool>);
+impl RESRDY_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ RESRDY_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for RESRDY_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `RESRDY` writer - Result Ready"]
+pub struct RESRDY_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> RESRDY_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 u8 & 0x01);
+ self.w
+ }
+}
+#[doc = "Field `OVERRUN` reader - Overrun"]
+pub struct OVERRUN_R(crate::FieldReader<bool, bool>);
+impl OVERRUN_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVERRUN_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVERRUN_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVERRUN` writer - Overrun"]
+pub struct OVERRUN_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVERRUN_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 u8 & 0x01) << 1);
+ self.w
+ }
+}
+#[doc = "Field `WINMON` reader - Window Monitor"]
+pub struct WINMON_R(crate::FieldReader<bool, bool>);
+impl WINMON_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ WINMON_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for WINMON_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `WINMON` writer - Window Monitor"]
+pub struct WINMON_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> WINMON_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 u8 & 0x01) << 2);
+ self.w
+ }
+}
+#[doc = "Field `OVF` reader - Overflow"]
+pub struct OVF_R(crate::FieldReader<bool, bool>);
+impl OVF_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVF_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVF_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVF` writer - Overflow"]
+pub struct OVF_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVF_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 u8 & 0x01) << 3);
+ self.w
+ }
+}
+impl R {
+ #[doc = "Bit 0 - Result Ready"]
+ #[inline(always)]
+ pub fn resrdy(&self) -> RESRDY_R {
+ RESRDY_R::new((self.bits & 0x01) != 0)
+ }
+ #[doc = "Bit 1 - Overrun"]
+ #[inline(always)]
+ pub fn overrun(&self) -> OVERRUN_R {
+ OVERRUN_R::new(((self.bits >> 1) & 0x01) != 0)
+ }
+ #[doc = "Bit 2 - Window Monitor"]
+ #[inline(always)]
+ pub fn winmon(&self) -> WINMON_R {
+ WINMON_R::new(((self.bits >> 2) & 0x01) != 0)
+ }
+ #[doc = "Bit 3 - Overflow"]
+ #[inline(always)]
+ pub fn ovf(&self) -> OVF_R {
+ OVF_R::new(((self.bits >> 3) & 0x01) != 0)
+ }
+}
+impl W {
+ #[doc = "Bit 0 - Result Ready"]
+ #[inline(always)]
+ pub fn resrdy(&mut self) -> RESRDY_W {
+ RESRDY_W { w: self }
+ }
+ #[doc = "Bit 1 - Overrun"]
+ #[inline(always)]
+ pub fn overrun(&mut self) -> OVERRUN_W {
+ OVERRUN_W { w: self }
+ }
+ #[doc = "Bit 2 - Window Monitor"]
+ #[inline(always)]
+ pub fn winmon(&mut self) -> WINMON_W {
+ WINMON_W { w: self }
+ }
+ #[doc = "Bit 3 - Overflow"]
+ #[inline(always)]
+ pub fn ovf(&mut self) -> OVF_W {
+ OVF_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "Interrupt Flag Status and Clear Register\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 [intflag](index.html) module"]
+pub struct INTFLAG_SPEC;
+impl crate::RegisterSpec for INTFLAG_SPEC {
+ type Ux = u8;
+}
+#[doc = "`read()` method returns [intflag::R](R) reader structure"]
+impl crate::Readable for INTFLAG_SPEC {
+ type Reader = R;
+}
+#[doc = "`write(|w| ..)` method takes [intflag::W](W) writer structure"]
+impl crate::Writable for INTFLAG_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets INTFLAG to value 0"]
+impl crate::Resettable for INTFLAG_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/tsens/offset.rs b/src/tsens/offset.rs
new file mode 100644
index 0000000..a1ad8e5
--- /dev/null
+++ b/src/tsens/offset.rs
@@ -0,0 +1,102 @@
+#[doc = "Register `OFFSET` reader"]
+pub struct R(crate::R<OFFSET_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<OFFSET_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<OFFSET_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<OFFSET_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Register `OFFSET` writer"]
+pub struct W(crate::W<OFFSET_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<OFFSET_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 From<crate::W<OFFSET_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<OFFSET_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Field `OFFSETC` reader - Offset Correction"]
+pub struct OFFSETC_R(crate::FieldReader<u32, u32>);
+impl OFFSETC_R {
+ pub(crate) fn new(bits: u32) -> Self {
+ OFFSETC_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OFFSETC_R {
+ type Target = crate::FieldReader<u32, u32>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OFFSETC` writer - Offset Correction"]
+pub struct OFFSETC_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OFFSETC_W<'a> {
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub unsafe fn bits(self, value: u32) -> &'a mut W {
+ self.w.bits = (self.w.bits & !0x00ff_ffff) | (value as u32 & 0x00ff_ffff);
+ self.w
+ }
+}
+impl R {
+ #[doc = "Bits 0:23 - Offset Correction"]
+ #[inline(always)]
+ pub fn offsetc(&self) -> OFFSETC_R {
+ OFFSETC_R::new((self.bits & 0x00ff_ffff) as u32)
+ }
+}
+impl W {
+ #[doc = "Bits 0:23 - Offset Correction"]
+ #[inline(always)]
+ pub fn offsetc(&mut self) -> OFFSETC_W {
+ OFFSETC_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "Offset Register\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 [offset](index.html) module"]
+pub struct OFFSET_SPEC;
+impl crate::RegisterSpec for OFFSET_SPEC {
+ type Ux = u32;
+}
+#[doc = "`read()` method returns [offset::R](R) reader structure"]
+impl crate::Readable for OFFSET_SPEC {
+ type Reader = R;
+}
+#[doc = "`write(|w| ..)` method takes [offset::W](W) writer structure"]
+impl crate::Writable for OFFSET_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets OFFSET to value 0"]
+impl crate::Resettable for OFFSET_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/tsens/status.rs b/src/tsens/status.rs
new file mode 100644
index 0000000..2116783
--- /dev/null
+++ b/src/tsens/status.rs
@@ -0,0 +1,52 @@
+#[doc = "Register `STATUS` reader"]
+pub struct R(crate::R<STATUS_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<STATUS_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<STATUS_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<STATUS_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Field `OVF` reader - Result Overflow"]
+pub struct OVF_R(crate::FieldReader<bool, bool>);
+impl OVF_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVF_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVF_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl R {
+ #[doc = "Bit 0 - Result Overflow"]
+ #[inline(always)]
+ pub fn ovf(&self) -> OVF_R {
+ OVF_R::new((self.bits & 0x01) != 0)
+ }
+}
+#[doc = "Status Register\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 [status](index.html) module"]
+pub struct STATUS_SPEC;
+impl crate::RegisterSpec for STATUS_SPEC {
+ type Ux = u8;
+}
+#[doc = "`read()` method returns [status::R](R) reader structure"]
+impl crate::Readable for STATUS_SPEC {
+ type Reader = R;
+}
+#[doc = "`reset()` method sets STATUS to value 0"]
+impl crate::Resettable for STATUS_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/tsens/syncbusy.rs b/src/tsens/syncbusy.rs
new file mode 100644
index 0000000..411fe93
--- /dev/null
+++ b/src/tsens/syncbusy.rs
@@ -0,0 +1,71 @@
+#[doc = "Register `SYNCBUSY` reader"]
+pub struct R(crate::R<SYNCBUSY_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<SYNCBUSY_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<SYNCBUSY_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<SYNCBUSY_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Field `SWRST` reader - Software Reset Busy"]
+pub struct SWRST_R(crate::FieldReader<bool, bool>);
+impl SWRST_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ SWRST_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for SWRST_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `ENABLE` reader - Enable Busy"]
+pub struct ENABLE_R(crate::FieldReader<bool, bool>);
+impl ENABLE_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ ENABLE_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for ENABLE_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl R {
+ #[doc = "Bit 0 - Software Reset Busy"]
+ #[inline(always)]
+ pub fn swrst(&self) -> SWRST_R {
+ SWRST_R::new((self.bits & 0x01) != 0)
+ }
+ #[doc = "Bit 1 - Enable Busy"]
+ #[inline(always)]
+ pub fn enable(&self) -> ENABLE_R {
+ ENABLE_R::new(((self.bits >> 1) & 0x01) != 0)
+ }
+}
+#[doc = "Synchronization Busy Register\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 [syncbusy](index.html) module"]
+pub struct SYNCBUSY_SPEC;
+impl crate::RegisterSpec for SYNCBUSY_SPEC {
+ type Ux = u32;
+}
+#[doc = "`read()` method returns [syncbusy::R](R) reader structure"]
+impl crate::Readable for SYNCBUSY_SPEC {
+ type Reader = R;
+}
+#[doc = "`reset()` method sets SYNCBUSY to value 0"]
+impl crate::Resettable for SYNCBUSY_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/tsens/value.rs b/src/tsens/value.rs
new file mode 100644
index 0000000..3894fab
--- /dev/null
+++ b/src/tsens/value.rs
@@ -0,0 +1,52 @@
+#[doc = "Register `VALUE` reader"]
+pub struct R(crate::R<VALUE_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<VALUE_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<VALUE_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<VALUE_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Field `VALUE` reader - Measurement Value"]
+pub struct VALUE_R(crate::FieldReader<u32, u32>);
+impl VALUE_R {
+ pub(crate) fn new(bits: u32) -> Self {
+ VALUE_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for VALUE_R {
+ type Target = crate::FieldReader<u32, u32>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl R {
+ #[doc = "Bits 0:23 - Measurement Value"]
+ #[inline(always)]
+ pub fn value(&self) -> VALUE_R {
+ VALUE_R::new((self.bits & 0x00ff_ffff) as u32)
+ }
+}
+#[doc = "Value Register\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 [value](index.html) module"]
+pub struct VALUE_SPEC;
+impl crate::RegisterSpec for VALUE_SPEC {
+ type Ux = u32;
+}
+#[doc = "`read()` method returns [value::R](R) reader structure"]
+impl crate::Readable for VALUE_SPEC {
+ type Reader = R;
+}
+#[doc = "`reset()` method sets VALUE to value 0"]
+impl crate::Resettable for VALUE_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/tsens/winlt.rs b/src/tsens/winlt.rs
new file mode 100644
index 0000000..8a48174
--- /dev/null
+++ b/src/tsens/winlt.rs
@@ -0,0 +1,102 @@
+#[doc = "Register `WINLT` reader"]
+pub struct R(crate::R<WINLT_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<WINLT_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<WINLT_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<WINLT_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Register `WINLT` writer"]
+pub struct W(crate::W<WINLT_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<WINLT_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 From<crate::W<WINLT_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<WINLT_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Field `WINLT` reader - Window Lower Threshold"]
+pub struct WINLT_R(crate::FieldReader<u32, u32>);
+impl WINLT_R {
+ pub(crate) fn new(bits: u32) -> Self {
+ WINLT_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for WINLT_R {
+ type Target = crate::FieldReader<u32, u32>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `WINLT` writer - Window Lower Threshold"]
+pub struct WINLT_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> WINLT_W<'a> {
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub unsafe fn bits(self, value: u32) -> &'a mut W {
+ self.w.bits = (self.w.bits & !0x00ff_ffff) | (value as u32 & 0x00ff_ffff);
+ self.w
+ }
+}
+impl R {
+ #[doc = "Bits 0:23 - Window Lower Threshold"]
+ #[inline(always)]
+ pub fn winlt(&self) -> WINLT_R {
+ WINLT_R::new((self.bits & 0x00ff_ffff) as u32)
+ }
+}
+impl W {
+ #[doc = "Bits 0:23 - Window Lower Threshold"]
+ #[inline(always)]
+ pub fn winlt(&mut self) -> WINLT_W {
+ WINLT_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "Window Monitor Lower Threshold Register\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 [winlt](index.html) module"]
+pub struct WINLT_SPEC;
+impl crate::RegisterSpec for WINLT_SPEC {
+ type Ux = u32;
+}
+#[doc = "`read()` method returns [winlt::R](R) reader structure"]
+impl crate::Readable for WINLT_SPEC {
+ type Reader = R;
+}
+#[doc = "`write(|w| ..)` method takes [winlt::W](W) writer structure"]
+impl crate::Writable for WINLT_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets WINLT to value 0"]
+impl crate::Resettable for WINLT_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/tsens/winut.rs b/src/tsens/winut.rs
new file mode 100644
index 0000000..3cbf95f
--- /dev/null
+++ b/src/tsens/winut.rs
@@ -0,0 +1,102 @@
+#[doc = "Register `WINUT` reader"]
+pub struct R(crate::R<WINUT_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<WINUT_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<WINUT_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<WINUT_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Register `WINUT` writer"]
+pub struct W(crate::W<WINUT_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<WINUT_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 From<crate::W<WINUT_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<WINUT_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Field `WINUT` reader - Window Upper Threshold"]
+pub struct WINUT_R(crate::FieldReader<u32, u32>);
+impl WINUT_R {
+ pub(crate) fn new(bits: u32) -> Self {
+ WINUT_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for WINUT_R {
+ type Target = crate::FieldReader<u32, u32>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `WINUT` writer - Window Upper Threshold"]
+pub struct WINUT_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> WINUT_W<'a> {
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub unsafe fn bits(self, value: u32) -> &'a mut W {
+ self.w.bits = (self.w.bits & !0x00ff_ffff) | (value as u32 & 0x00ff_ffff);
+ self.w
+ }
+}
+impl R {
+ #[doc = "Bits 0:23 - Window Upper Threshold"]
+ #[inline(always)]
+ pub fn winut(&self) -> WINUT_R {
+ WINUT_R::new((self.bits & 0x00ff_ffff) as u32)
+ }
+}
+impl W {
+ #[doc = "Bits 0:23 - Window Upper Threshold"]
+ #[inline(always)]
+ pub fn winut(&mut self) -> WINUT_W {
+ WINUT_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "Window Monitor Upper Threshold Register\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 [winut](index.html) module"]
+pub struct WINUT_SPEC;
+impl crate::RegisterSpec for WINUT_SPEC {
+ type Ux = u32;
+}
+#[doc = "`read()` method returns [winut::R](R) reader structure"]
+impl crate::Readable for WINUT_SPEC {
+ type Reader = R;
+}
+#[doc = "`write(|w| ..)` method takes [winut::W](W) writer structure"]
+impl crate::Writable for WINUT_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets WINUT to value 0"]
+impl crate::Resettable for WINUT_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}