feat: add display UI with splash screen, dashboard, and RSSI sparkline

Implement full SSD1306 OLED display support:
- Splash screen on boot (1.5s) with project name, version, board
- Dashboard showing radio state, config, counters, RSSI/SNR
- RSSI history sparkline (64-sample ring buffer, 2px-wide bars)
- DisplayOn/DisplayOff host commands routed via dedicated channel
- Pure render functions against generic DrawTarget (no hardware coupling)
- Display on/off control bypasses radio task entirely

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Opus 4.6 committed 2026-03-29 20:42:54 -06:00
1 parent 7064110293
commit 3102fc747a
17624 files changed
+4564928 -38

No files matched your search

+80
View File
@@ -0,0 +1,80 @@
#[doc = "Register `A0` reader"]
pub struct R(crate::R<A0_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<A0_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<A0_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<A0_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `A0` writer"]
pub struct W(crate::W<A0_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<A0_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<A0_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<A0_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `A0` reader - Slope of 1st piece wise linear function"]
pub type A0_R = crate::FieldReader<u16, u16>;
#[doc = "Field `A0` writer - Slope of 1st piece wise linear function"]
pub type A0_W<'a, const O: u8> = crate::FieldWriter<'a, u32, A0_SPEC, u16, u16, 12, O>;
impl R {
#[doc = "Bits 0:11 - Slope of 1st piece wise linear function"]
#[inline(always)]
pub fn a0(&self) -> A0_R {
A0_R::new((self.bits & 0x0fff) as u16)
}
}
impl W {
#[doc = "Bits 0:11 - Slope of 1st piece wise linear function"]
#[inline(always)]
pub fn a0(&mut self) -> A0_W<0> {
A0_W::new(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 = "Slope of 1st piece wise linear function\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 [a0](index.html) module"]
pub struct A0_SPEC;
impl crate::RegisterSpec for A0_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [a0::R](R) reader structure"]
impl crate::Readable for A0_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [a0::W](W) writer structure"]
impl crate::Writable for A0_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets A0 to value 0x0326"]
impl crate::Resettable for A0_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0x0326
}
}
+80
View File
@@ -0,0 +1,80 @@
#[doc = "Register `A1` reader"]
pub struct R(crate::R<A1_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<A1_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<A1_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<A1_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `A1` writer"]
pub struct W(crate::W<A1_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<A1_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<A1_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<A1_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `A1` reader - Slope of 2nd piece wise linear function"]
pub type A1_R = crate::FieldReader<u16, u16>;
#[doc = "Field `A1` writer - Slope of 2nd piece wise linear function"]
pub type A1_W<'a, const O: u8> = crate::FieldWriter<'a, u32, A1_SPEC, u16, u16, 12, O>;
impl R {
#[doc = "Bits 0:11 - Slope of 2nd piece wise linear function"]
#[inline(always)]
pub fn a1(&self) -> A1_R {
A1_R::new((self.bits & 0x0fff) as u16)
}
}
impl W {
#[doc = "Bits 0:11 - Slope of 2nd piece wise linear function"]
#[inline(always)]
pub fn a1(&mut self) -> A1_W<0> {
A1_W::new(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 = "Slope of 2nd piece wise linear function\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 [a1](index.html) module"]
pub struct A1_SPEC;
impl crate::RegisterSpec for A1_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [a1::R](R) reader structure"]
impl crate::Readable for A1_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [a1::W](W) writer structure"]
impl crate::Writable for A1_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets A1 to value 0x0348"]
impl crate::Resettable for A1_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0x0348
}
}
+80
View File
@@ -0,0 +1,80 @@
#[doc = "Register `A2` reader"]
pub struct R(crate::R<A2_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<A2_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<A2_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<A2_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `A2` writer"]
pub struct W(crate::W<A2_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<A2_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<A2_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<A2_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `A2` reader - Slope of 3rd piece wise linear function"]
pub type A2_R = crate::FieldReader<u16, u16>;
#[doc = "Field `A2` writer - Slope of 3rd piece wise linear function"]
pub type A2_W<'a, const O: u8> = crate::FieldWriter<'a, u32, A2_SPEC, u16, u16, 12, O>;
impl R {
#[doc = "Bits 0:11 - Slope of 3rd piece wise linear function"]
#[inline(always)]
pub fn a2(&self) -> A2_R {
A2_R::new((self.bits & 0x0fff) as u16)
}
}
impl W {
#[doc = "Bits 0:11 - Slope of 3rd piece wise linear function"]
#[inline(always)]
pub fn a2(&mut self) -> A2_W<0> {
A2_W::new(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 = "Slope of 3rd piece wise linear function\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 [a2](index.html) module"]
pub struct A2_SPEC;
impl crate::RegisterSpec for A2_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [a2::R](R) reader structure"]
impl crate::Readable for A2_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [a2::W](W) writer structure"]
impl crate::Writable for A2_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets A2 to value 0x03aa"]
impl crate::Resettable for A2_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0x03aa
}
}
+80
View File
@@ -0,0 +1,80 @@
#[doc = "Register `A3` reader"]
pub struct R(crate::R<A3_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<A3_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<A3_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<A3_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `A3` writer"]
pub struct W(crate::W<A3_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<A3_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<A3_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<A3_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `A3` reader - Slope of 4th piece wise linear function"]
pub type A3_R = crate::FieldReader<u16, u16>;
#[doc = "Field `A3` writer - Slope of 4th piece wise linear function"]
pub type A3_W<'a, const O: u8> = crate::FieldWriter<'a, u32, A3_SPEC, u16, u16, 12, O>;
impl R {
#[doc = "Bits 0:11 - Slope of 4th piece wise linear function"]
#[inline(always)]
pub fn a3(&self) -> A3_R {
A3_R::new((self.bits & 0x0fff) as u16)
}
}
impl W {
#[doc = "Bits 0:11 - Slope of 4th piece wise linear function"]
#[inline(always)]
pub fn a3(&mut self) -> A3_W<0> {
A3_W::new(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 = "Slope of 4th piece wise linear function\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 [a3](index.html) module"]
pub struct A3_SPEC;
impl crate::RegisterSpec for A3_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [a3::R](R) reader structure"]
impl crate::Readable for A3_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [a3::W](W) writer structure"]
impl crate::Writable for A3_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets A3 to value 0x040e"]
impl crate::Resettable for A3_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0x040e
}
}
+80
View File
@@ -0,0 +1,80 @@
#[doc = "Register `A4` reader"]
pub struct R(crate::R<A4_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<A4_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<A4_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<A4_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `A4` writer"]
pub struct W(crate::W<A4_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<A4_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<A4_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<A4_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `A4` reader - Slope of 5th piece wise linear function"]
pub type A4_R = crate::FieldReader<u16, u16>;
#[doc = "Field `A4` writer - Slope of 5th piece wise linear function"]
pub type A4_W<'a, const O: u8> = crate::FieldWriter<'a, u32, A4_SPEC, u16, u16, 12, O>;
impl R {
#[doc = "Bits 0:11 - Slope of 5th piece wise linear function"]
#[inline(always)]
pub fn a4(&self) -> A4_R {
A4_R::new((self.bits & 0x0fff) as u16)
}
}
impl W {
#[doc = "Bits 0:11 - Slope of 5th piece wise linear function"]
#[inline(always)]
pub fn a4(&mut self) -> A4_W<0> {
A4_W::new(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 = "Slope of 5th piece wise linear function\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 [a4](index.html) module"]
pub struct A4_SPEC;
impl crate::RegisterSpec for A4_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [a4::R](R) reader structure"]
impl crate::Readable for A4_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [a4::W](W) writer structure"]
impl crate::Writable for A4_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets A4 to value 0x04bd"]
impl crate::Resettable for A4_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0x04bd
}
}
+80
View File
@@ -0,0 +1,80 @@
#[doc = "Register `A5` reader"]
pub struct R(crate::R<A5_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<A5_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<A5_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<A5_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `A5` writer"]
pub struct W(crate::W<A5_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<A5_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<A5_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<A5_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `A5` reader - Slope of 6th piece wise linear function"]
pub type A5_R = crate::FieldReader<u16, u16>;
#[doc = "Field `A5` writer - Slope of 6th piece wise linear function"]
pub type A5_W<'a, const O: u8> = crate::FieldWriter<'a, u32, A5_SPEC, u16, u16, 12, O>;
impl R {
#[doc = "Bits 0:11 - Slope of 6th piece wise linear function"]
#[inline(always)]
pub fn a5(&self) -> A5_R {
A5_R::new((self.bits & 0x0fff) as u16)
}
}
impl W {
#[doc = "Bits 0:11 - Slope of 6th piece wise linear function"]
#[inline(always)]
pub fn a5(&mut self) -> A5_W<0> {
A5_W::new(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 = "Slope of 6th piece wise linear function\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 [a5](index.html) module"]
pub struct A5_SPEC;
impl crate::RegisterSpec for A5_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [a5::R](R) reader structure"]
impl crate::Readable for A5_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [a5::W](W) writer structure"]
impl crate::Writable for A5_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets A5 to value 0x05a3"]
impl crate::Resettable for A5_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0x05a3
}
}
+80
View File
@@ -0,0 +1,80 @@
#[doc = "Register `B0` reader"]
pub struct R(crate::R<B0_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<B0_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<B0_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<B0_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `B0` writer"]
pub struct W(crate::W<B0_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<B0_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<B0_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<B0_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `B0` reader - y-intercept of 1st piece wise linear function"]
pub type B0_R = crate::FieldReader<u16, u16>;
#[doc = "Field `B0` writer - y-intercept of 1st piece wise linear function"]
pub type B0_W<'a, const O: u8> = crate::FieldWriter<'a, u32, B0_SPEC, u16, u16, 14, O>;
impl R {
#[doc = "Bits 0:13 - y-intercept of 1st piece wise linear function"]
#[inline(always)]
pub fn b0(&self) -> B0_R {
B0_R::new((self.bits & 0x3fff) as u16)
}
}
impl W {
#[doc = "Bits 0:13 - y-intercept of 1st piece wise linear function"]
#[inline(always)]
pub fn b0(&mut self) -> B0_W<0> {
B0_W::new(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 = "y-intercept of 1st piece wise linear function\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 [b0](index.html) module"]
pub struct B0_SPEC;
impl crate::RegisterSpec for B0_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [b0::R](R) reader structure"]
impl crate::Readable for B0_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [b0::W](W) writer structure"]
impl crate::Writable for B0_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets B0 to value 0x3fef"]
impl crate::Resettable for B0_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0x3fef
}
}
+80
View File
@@ -0,0 +1,80 @@
#[doc = "Register `B1` reader"]
pub struct R(crate::R<B1_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<B1_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<B1_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<B1_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `B1` writer"]
pub struct W(crate::W<B1_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<B1_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<B1_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<B1_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `B1` reader - y-intercept of 2nd piece wise linear function"]
pub type B1_R = crate::FieldReader<u16, u16>;
#[doc = "Field `B1` writer - y-intercept of 2nd piece wise linear function"]
pub type B1_W<'a, const O: u8> = crate::FieldWriter<'a, u32, B1_SPEC, u16, u16, 14, O>;
impl R {
#[doc = "Bits 0:13 - y-intercept of 2nd piece wise linear function"]
#[inline(always)]
pub fn b1(&self) -> B1_R {
B1_R::new((self.bits & 0x3fff) as u16)
}
}
impl W {
#[doc = "Bits 0:13 - y-intercept of 2nd piece wise linear function"]
#[inline(always)]
pub fn b1(&mut self) -> B1_W<0> {
B1_W::new(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 = "y-intercept of 2nd piece wise linear function\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 [b1](index.html) module"]
pub struct B1_SPEC;
impl crate::RegisterSpec for B1_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [b1::R](R) reader structure"]
impl crate::Readable for B1_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [b1::W](W) writer structure"]
impl crate::Writable for B1_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets B1 to value 0x3fbe"]
impl crate::Resettable for B1_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0x3fbe
}
}
+80
View File
@@ -0,0 +1,80 @@
#[doc = "Register `B2` reader"]
pub struct R(crate::R<B2_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<B2_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<B2_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<B2_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `B2` writer"]
pub struct W(crate::W<B2_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<B2_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<B2_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<B2_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `B2` reader - y-intercept of 3rd piece wise linear function"]
pub type B2_R = crate::FieldReader<u16, u16>;
#[doc = "Field `B2` writer - y-intercept of 3rd piece wise linear function"]
pub type B2_W<'a, const O: u8> = crate::FieldWriter<'a, u32, B2_SPEC, u16, u16, 14, O>;
impl R {
#[doc = "Bits 0:13 - y-intercept of 3rd piece wise linear function"]
#[inline(always)]
pub fn b2(&self) -> B2_R {
B2_R::new((self.bits & 0x3fff) as u16)
}
}
impl W {
#[doc = "Bits 0:13 - y-intercept of 3rd piece wise linear function"]
#[inline(always)]
pub fn b2(&mut self) -> B2_W<0> {
B2_W::new(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 = "y-intercept of 3rd piece wise linear function\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 [b2](index.html) module"]
pub struct B2_SPEC;
impl crate::RegisterSpec for B2_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [b2::R](R) reader structure"]
impl crate::Readable for B2_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [b2::W](W) writer structure"]
impl crate::Writable for B2_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets B2 to value 0x3fbe"]
impl crate::Resettable for B2_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0x3fbe
}
}
+80
View File
@@ -0,0 +1,80 @@
#[doc = "Register `B3` reader"]
pub struct R(crate::R<B3_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<B3_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<B3_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<B3_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `B3` writer"]
pub struct W(crate::W<B3_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<B3_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<B3_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<B3_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `B3` reader - y-intercept of 4th piece wise linear function"]
pub type B3_R = crate::FieldReader<u16, u16>;
#[doc = "Field `B3` writer - y-intercept of 4th piece wise linear function"]
pub type B3_W<'a, const O: u8> = crate::FieldWriter<'a, u32, B3_SPEC, u16, u16, 14, O>;
impl R {
#[doc = "Bits 0:13 - y-intercept of 4th piece wise linear function"]
#[inline(always)]
pub fn b3(&self) -> B3_R {
B3_R::new((self.bits & 0x3fff) as u16)
}
}
impl W {
#[doc = "Bits 0:13 - y-intercept of 4th piece wise linear function"]
#[inline(always)]
pub fn b3(&mut self) -> B3_W<0> {
B3_W::new(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 = "y-intercept of 4th piece wise linear function\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 [b3](index.html) module"]
pub struct B3_SPEC;
impl crate::RegisterSpec for B3_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [b3::R](R) reader structure"]
impl crate::Readable for B3_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [b3::W](W) writer structure"]
impl crate::Writable for B3_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets B3 to value 0x12"]
impl crate::Resettable for B3_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0x12
}
}
+80
View File
@@ -0,0 +1,80 @@
#[doc = "Register `B4` reader"]
pub struct R(crate::R<B4_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<B4_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<B4_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<B4_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `B4` writer"]
pub struct W(crate::W<B4_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<B4_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<B4_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<B4_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `B4` reader - y-intercept of 5th piece wise linear function"]
pub type B4_R = crate::FieldReader<u16, u16>;
#[doc = "Field `B4` writer - y-intercept of 5th piece wise linear function"]
pub type B4_W<'a, const O: u8> = crate::FieldWriter<'a, u32, B4_SPEC, u16, u16, 14, O>;
impl R {
#[doc = "Bits 0:13 - y-intercept of 5th piece wise linear function"]
#[inline(always)]
pub fn b4(&self) -> B4_R {
B4_R::new((self.bits & 0x3fff) as u16)
}
}
impl W {
#[doc = "Bits 0:13 - y-intercept of 5th piece wise linear function"]
#[inline(always)]
pub fn b4(&mut self) -> B4_W<0> {
B4_W::new(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 = "y-intercept of 5th piece wise linear function\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 [b4](index.html) module"]
pub struct B4_SPEC;
impl crate::RegisterSpec for B4_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [b4::R](R) reader structure"]
impl crate::Readable for B4_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [b4::W](W) writer structure"]
impl crate::Writable for B4_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets B4 to value 0x0124"]
impl crate::Resettable for B4_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0x0124
}
}
+80
View File
@@ -0,0 +1,80 @@
#[doc = "Register `B5` reader"]
pub struct R(crate::R<B5_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<B5_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<B5_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<B5_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `B5` writer"]
pub struct W(crate::W<B5_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<B5_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<B5_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<B5_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `B5` reader - y-intercept of 6th piece wise linear function"]
pub type B5_R = crate::FieldReader<u16, u16>;
#[doc = "Field `B5` writer - y-intercept of 6th piece wise linear function"]
pub type B5_W<'a, const O: u8> = crate::FieldWriter<'a, u32, B5_SPEC, u16, u16, 14, O>;
impl R {
#[doc = "Bits 0:13 - y-intercept of 6th piece wise linear function"]
#[inline(always)]
pub fn b5(&self) -> B5_R {
B5_R::new((self.bits & 0x3fff) as u16)
}
}
impl W {
#[doc = "Bits 0:13 - y-intercept of 6th piece wise linear function"]
#[inline(always)]
pub fn b5(&mut self) -> B5_W<0> {
B5_W::new(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 = "y-intercept of 6th piece wise linear function\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 [b5](index.html) module"]
pub struct B5_SPEC;
impl crate::RegisterSpec for B5_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [b5::R](R) reader structure"]
impl crate::Readable for B5_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [b5::W](W) writer structure"]
impl crate::Writable for B5_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets B5 to value 0x027c"]
impl crate::Resettable for B5_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0x027c
}
}
+127
View File
@@ -0,0 +1,127 @@
#[doc = "Register `EVENTS_DATARDY` reader"]
pub struct R(crate::R<EVENTS_DATARDY_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<EVENTS_DATARDY_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<EVENTS_DATARDY_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<EVENTS_DATARDY_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `EVENTS_DATARDY` writer"]
pub struct W(crate::W<EVENTS_DATARDY_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<EVENTS_DATARDY_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<EVENTS_DATARDY_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<EVENTS_DATARDY_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `EVENTS_DATARDY` reader - Temperature measurement complete, data ready"]
pub type EVENTS_DATARDY_R = crate::BitReader<EVENTS_DATARDY_A>;
#[doc = "Temperature measurement complete, data ready\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum EVENTS_DATARDY_A {
#[doc = "0: Event not generated"]
NOT_GENERATED = 0,
#[doc = "1: Event generated"]
GENERATED = 1,
}
impl From<EVENTS_DATARDY_A> for bool {
#[inline(always)]
fn from(variant: EVENTS_DATARDY_A) -> Self {
variant as u8 != 0
}
}
impl EVENTS_DATARDY_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> EVENTS_DATARDY_A {
match self.bits {
false => EVENTS_DATARDY_A::NOT_GENERATED,
true => EVENTS_DATARDY_A::GENERATED,
}
}
#[doc = "Checks if the value of the field is `NOT_GENERATED`"]
#[inline(always)]
pub fn is_not_generated(&self) -> bool {
*self == EVENTS_DATARDY_A::NOT_GENERATED
}
#[doc = "Checks if the value of the field is `GENERATED`"]
#[inline(always)]
pub fn is_generated(&self) -> bool {
*self == EVENTS_DATARDY_A::GENERATED
}
}
#[doc = "Field `EVENTS_DATARDY` writer - Temperature measurement complete, data ready"]
pub type EVENTS_DATARDY_W<'a, const O: u8> =
crate::BitWriter<'a, u32, EVENTS_DATARDY_SPEC, EVENTS_DATARDY_A, O>;
impl<'a, const O: u8> EVENTS_DATARDY_W<'a, O> {
#[doc = "Event not generated"]
#[inline(always)]
pub fn not_generated(self) -> &'a mut W {
self.variant(EVENTS_DATARDY_A::NOT_GENERATED)
}
#[doc = "Event generated"]
#[inline(always)]
pub fn generated(self) -> &'a mut W {
self.variant(EVENTS_DATARDY_A::GENERATED)
}
}
impl R {
#[doc = "Bit 0 - Temperature measurement complete, data ready"]
#[inline(always)]
pub fn events_datardy(&self) -> EVENTS_DATARDY_R {
EVENTS_DATARDY_R::new((self.bits & 1) != 0)
}
}
impl W {
#[doc = "Bit 0 - Temperature measurement complete, data ready"]
#[inline(always)]
pub fn events_datardy(&mut self) -> EVENTS_DATARDY_W<0> {
EVENTS_DATARDY_W::new(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 = "Temperature measurement complete, data ready\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 [events_datardy](index.html) module"]
pub struct EVENTS_DATARDY_SPEC;
impl crate::RegisterSpec for EVENTS_DATARDY_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [events_datardy::R](R) reader structure"]
impl crate::Readable for EVENTS_DATARDY_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [events_datardy::W](W) writer structure"]
impl crate::Writable for EVENTS_DATARDY_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets EVENTS_DATARDY to value 0"]
impl crate::Resettable for EVENTS_DATARDY_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}
+133
View File
@@ -0,0 +1,133 @@
#[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 `DATARDY` reader - Write '1' to disable interrupt for event DATARDY"]
pub type DATARDY_R = crate::BitReader<DATARDY_A>;
#[doc = "Write '1' to disable interrupt for event DATARDY\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DATARDY_A {
#[doc = "0: Read: Disabled"]
DISABLED = 0,
#[doc = "1: Read: Enabled"]
ENABLED = 1,
}
impl From<DATARDY_A> for bool {
#[inline(always)]
fn from(variant: DATARDY_A) -> Self {
variant as u8 != 0
}
}
impl DATARDY_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> DATARDY_A {
match self.bits {
false => DATARDY_A::DISABLED,
true => DATARDY_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == DATARDY_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == DATARDY_A::ENABLED
}
}
#[doc = "Write '1' to disable interrupt for event DATARDY\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DATARDY_AW {
#[doc = "1: Disable"]
CLEAR = 1,
}
impl From<DATARDY_AW> for bool {
#[inline(always)]
fn from(variant: DATARDY_AW) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `DATARDY` writer - Write '1' to disable interrupt for event DATARDY"]
pub type DATARDY_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENCLR_SPEC, DATARDY_AW, O>;
impl<'a, const O: u8> DATARDY_W<'a, O> {
#[doc = "Disable"]
#[inline(always)]
pub fn clear(self) -> &'a mut W {
self.variant(DATARDY_AW::CLEAR)
}
}
impl R {
#[doc = "Bit 0 - Write '1' to disable interrupt for event DATARDY"]
#[inline(always)]
pub fn datardy(&self) -> DATARDY_R {
DATARDY_R::new((self.bits & 1) != 0)
}
}
impl W {
#[doc = "Bit 0 - Write '1' to disable interrupt for event DATARDY"]
#[inline(always)]
pub fn datardy(&mut self) -> DATARDY_W<0> {
DATARDY_W::new(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 = "Disable interrupt\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 = u32;
}
#[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
}
}
+133
View File
@@ -0,0 +1,133 @@
#[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 `DATARDY` reader - Write '1' to enable interrupt for event DATARDY"]
pub type DATARDY_R = crate::BitReader<DATARDY_A>;
#[doc = "Write '1' to enable interrupt for event DATARDY\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DATARDY_A {
#[doc = "0: Read: Disabled"]
DISABLED = 0,
#[doc = "1: Read: Enabled"]
ENABLED = 1,
}
impl From<DATARDY_A> for bool {
#[inline(always)]
fn from(variant: DATARDY_A) -> Self {
variant as u8 != 0
}
}
impl DATARDY_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> DATARDY_A {
match self.bits {
false => DATARDY_A::DISABLED,
true => DATARDY_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == DATARDY_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == DATARDY_A::ENABLED
}
}
#[doc = "Write '1' to enable interrupt for event DATARDY\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DATARDY_AW {
#[doc = "1: Enable"]
SET = 1,
}
impl From<DATARDY_AW> for bool {
#[inline(always)]
fn from(variant: DATARDY_AW) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `DATARDY` writer - Write '1' to enable interrupt for event DATARDY"]
pub type DATARDY_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, DATARDY_AW, O>;
impl<'a, const O: u8> DATARDY_W<'a, O> {
#[doc = "Enable"]
#[inline(always)]
pub fn set(self) -> &'a mut W {
self.variant(DATARDY_AW::SET)
}
}
impl R {
#[doc = "Bit 0 - Write '1' to enable interrupt for event DATARDY"]
#[inline(always)]
pub fn datardy(&self) -> DATARDY_R {
DATARDY_R::new((self.bits & 1) != 0)
}
}
impl W {
#[doc = "Bit 0 - Write '1' to enable interrupt for event DATARDY"]
#[inline(always)]
pub fn datardy(&mut self) -> DATARDY_W<0> {
DATARDY_W::new(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 = "Enable interrupt\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 = u32;
}
#[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
}
}
+80
View File
@@ -0,0 +1,80 @@
#[doc = "Register `T0` reader"]
pub struct R(crate::R<T0_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<T0_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<T0_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<T0_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `T0` writer"]
pub struct W(crate::W<T0_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<T0_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<T0_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<T0_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `T0` reader - End point of 1st piece wise linear function"]
pub type T0_R = crate::FieldReader<u8, u8>;
#[doc = "Field `T0` writer - End point of 1st piece wise linear function"]
pub type T0_W<'a, const O: u8> = crate::FieldWriter<'a, u32, T0_SPEC, u8, u8, 8, O>;
impl R {
#[doc = "Bits 0:7 - End point of 1st piece wise linear function"]
#[inline(always)]
pub fn t0(&self) -> T0_R {
T0_R::new((self.bits & 0xff) as u8)
}
}
impl W {
#[doc = "Bits 0:7 - End point of 1st piece wise linear function"]
#[inline(always)]
pub fn t0(&mut self) -> T0_W<0> {
T0_W::new(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 = "End point of 1st piece wise linear function\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 [t0](index.html) module"]
pub struct T0_SPEC;
impl crate::RegisterSpec for T0_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [t0::R](R) reader structure"]
impl crate::Readable for T0_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [t0::W](W) writer structure"]
impl crate::Writable for T0_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets T0 to value 0xe2"]
impl crate::Resettable for T0_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0xe2
}
}
+80
View File
@@ -0,0 +1,80 @@
#[doc = "Register `T1` reader"]
pub struct R(crate::R<T1_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<T1_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<T1_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<T1_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `T1` writer"]
pub struct W(crate::W<T1_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<T1_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<T1_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<T1_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `T1` reader - End point of 2nd piece wise linear function"]
pub type T1_R = crate::FieldReader<u8, u8>;
#[doc = "Field `T1` writer - End point of 2nd piece wise linear function"]
pub type T1_W<'a, const O: u8> = crate::FieldWriter<'a, u32, T1_SPEC, u8, u8, 8, O>;
impl R {
#[doc = "Bits 0:7 - End point of 2nd piece wise linear function"]
#[inline(always)]
pub fn t1(&self) -> T1_R {
T1_R::new((self.bits & 0xff) as u8)
}
}
impl W {
#[doc = "Bits 0:7 - End point of 2nd piece wise linear function"]
#[inline(always)]
pub fn t1(&mut self) -> T1_W<0> {
T1_W::new(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 = "End point of 2nd piece wise linear function\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 [t1](index.html) module"]
pub struct T1_SPEC;
impl crate::RegisterSpec for T1_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [t1::R](R) reader structure"]
impl crate::Readable for T1_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [t1::W](W) writer structure"]
impl crate::Writable for T1_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets T1 to value 0"]
impl crate::Resettable for T1_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}
+80
View File
@@ -0,0 +1,80 @@
#[doc = "Register `T2` reader"]
pub struct R(crate::R<T2_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<T2_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<T2_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<T2_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `T2` writer"]
pub struct W(crate::W<T2_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<T2_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<T2_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<T2_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `T2` reader - End point of 3rd piece wise linear function"]
pub type T2_R = crate::FieldReader<u8, u8>;
#[doc = "Field `T2` writer - End point of 3rd piece wise linear function"]
pub type T2_W<'a, const O: u8> = crate::FieldWriter<'a, u32, T2_SPEC, u8, u8, 8, O>;
impl R {
#[doc = "Bits 0:7 - End point of 3rd piece wise linear function"]
#[inline(always)]
pub fn t2(&self) -> T2_R {
T2_R::new((self.bits & 0xff) as u8)
}
}
impl W {
#[doc = "Bits 0:7 - End point of 3rd piece wise linear function"]
#[inline(always)]
pub fn t2(&mut self) -> T2_W<0> {
T2_W::new(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 = "End point of 3rd piece wise linear function\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 [t2](index.html) module"]
pub struct T2_SPEC;
impl crate::RegisterSpec for T2_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [t2::R](R) reader structure"]
impl crate::Readable for T2_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [t2::W](W) writer structure"]
impl crate::Writable for T2_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets T2 to value 0x19"]
impl crate::Resettable for T2_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0x19
}
}
+80
View File
@@ -0,0 +1,80 @@
#[doc = "Register `T3` reader"]
pub struct R(crate::R<T3_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<T3_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<T3_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<T3_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `T3` writer"]
pub struct W(crate::W<T3_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<T3_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<T3_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<T3_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `T3` reader - End point of 4th piece wise linear function"]
pub type T3_R = crate::FieldReader<u8, u8>;
#[doc = "Field `T3` writer - End point of 4th piece wise linear function"]
pub type T3_W<'a, const O: u8> = crate::FieldWriter<'a, u32, T3_SPEC, u8, u8, 8, O>;
impl R {
#[doc = "Bits 0:7 - End point of 4th piece wise linear function"]
#[inline(always)]
pub fn t3(&self) -> T3_R {
T3_R::new((self.bits & 0xff) as u8)
}
}
impl W {
#[doc = "Bits 0:7 - End point of 4th piece wise linear function"]
#[inline(always)]
pub fn t3(&mut self) -> T3_W<0> {
T3_W::new(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 = "End point of 4th piece wise linear function\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 [t3](index.html) module"]
pub struct T3_SPEC;
impl crate::RegisterSpec for T3_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [t3::R](R) reader structure"]
impl crate::Readable for T3_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [t3::W](W) writer structure"]
impl crate::Writable for T3_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets T3 to value 0x3c"]
impl crate::Resettable for T3_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0x3c
}
}
+80
View File
@@ -0,0 +1,80 @@
#[doc = "Register `T4` reader"]
pub struct R(crate::R<T4_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<T4_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<T4_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<T4_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `T4` writer"]
pub struct W(crate::W<T4_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<T4_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<T4_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<T4_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `T4` reader - End point of 5th piece wise linear function"]
pub type T4_R = crate::FieldReader<u8, u8>;
#[doc = "Field `T4` writer - End point of 5th piece wise linear function"]
pub type T4_W<'a, const O: u8> = crate::FieldWriter<'a, u32, T4_SPEC, u8, u8, 8, O>;
impl R {
#[doc = "Bits 0:7 - End point of 5th piece wise linear function"]
#[inline(always)]
pub fn t4(&self) -> T4_R {
T4_R::new((self.bits & 0xff) as u8)
}
}
impl W {
#[doc = "Bits 0:7 - End point of 5th piece wise linear function"]
#[inline(always)]
pub fn t4(&mut self) -> T4_W<0> {
T4_W::new(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 = "End point of 5th piece wise linear function\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 [t4](index.html) module"]
pub struct T4_SPEC;
impl crate::RegisterSpec for T4_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [t4::R](R) reader structure"]
impl crate::Readable for T4_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [t4::W](W) writer structure"]
impl crate::Writable for T4_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets T4 to value 0x50"]
impl crate::Resettable for T4_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0x50
}
}
+72
View File
@@ -0,0 +1,72 @@
#[doc = "Register `TASKS_START` writer"]
pub struct W(crate::W<TASKS_START_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<TASKS_START_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<TASKS_START_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<TASKS_START_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Start temperature measurement\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum TASKS_START_AW {
#[doc = "1: Trigger task"]
TRIGGER = 1,
}
impl From<TASKS_START_AW> for bool {
#[inline(always)]
fn from(variant: TASKS_START_AW) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `TASKS_START` writer - Start temperature measurement"]
pub type TASKS_START_W<'a, const O: u8> =
crate::BitWriter<'a, u32, TASKS_START_SPEC, TASKS_START_AW, O>;
impl<'a, const O: u8> TASKS_START_W<'a, O> {
#[doc = "Trigger task"]
#[inline(always)]
pub fn trigger(self) -> &'a mut W {
self.variant(TASKS_START_AW::TRIGGER)
}
}
impl W {
#[doc = "Bit 0 - Start temperature measurement"]
#[inline(always)]
pub fn tasks_start(&mut self) -> TASKS_START_W<0> {
TASKS_START_W::new(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 = "Start temperature measurement\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 [tasks_start](index.html) module"]
pub struct TASKS_START_SPEC;
impl crate::RegisterSpec for TASKS_START_SPEC {
type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [tasks_start::W](W) writer structure"]
impl crate::Writable for TASKS_START_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets TASKS_START to value 0"]
impl crate::Resettable for TASKS_START_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}
+72
View File
@@ -0,0 +1,72 @@
#[doc = "Register `TASKS_STOP` writer"]
pub struct W(crate::W<TASKS_STOP_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<TASKS_STOP_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<TASKS_STOP_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<TASKS_STOP_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Stop temperature measurement\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum TASKS_STOP_AW {
#[doc = "1: Trigger task"]
TRIGGER = 1,
}
impl From<TASKS_STOP_AW> for bool {
#[inline(always)]
fn from(variant: TASKS_STOP_AW) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `TASKS_STOP` writer - Stop temperature measurement"]
pub type TASKS_STOP_W<'a, const O: u8> =
crate::BitWriter<'a, u32, TASKS_STOP_SPEC, TASKS_STOP_AW, O>;
impl<'a, const O: u8> TASKS_STOP_W<'a, O> {
#[doc = "Trigger task"]
#[inline(always)]
pub fn trigger(self) -> &'a mut W {
self.variant(TASKS_STOP_AW::TRIGGER)
}
}
impl W {
#[doc = "Bit 0 - Stop temperature measurement"]
#[inline(always)]
pub fn tasks_stop(&mut self) -> TASKS_STOP_W<0> {
TASKS_STOP_W::new(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 = "Stop temperature measurement\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 [tasks_stop](index.html) module"]
pub struct TASKS_STOP_SPEC;
impl crate::RegisterSpec for TASKS_STOP_SPEC {
type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [tasks_stop::W](W) writer structure"]
impl crate::Writable for TASKS_STOP_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets TASKS_STOP to value 0"]
impl crate::Resettable for TASKS_STOP_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}
+40
View File
@@ -0,0 +1,40 @@
#[doc = "Register `TEMP` reader"]
pub struct R(crate::R<TEMP_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<TEMP_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<TEMP_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<TEMP_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `TEMP` reader - Temperature in degC (0.25deg steps)"]
pub type TEMP_R = crate::FieldReader<u32, u32>;
impl R {
#[doc = "Bits 0:31 - Temperature in degC (0.25deg steps)"]
#[inline(always)]
pub fn temp(&self) -> TEMP_R {
TEMP_R::new(self.bits)
}
}
#[doc = "Temperature in degC (0.25deg steps)\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 [temp](index.html) module"]
pub struct TEMP_SPEC;
impl crate::RegisterSpec for TEMP_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [temp::R](R) reader structure"]
impl crate::Readable for TEMP_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets TEMP to value 0"]
impl crate::Resettable for TEMP_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}