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:
17624 files changed
+4564928
-38
No files matched your search
+142
@@ -0,0 +1,142 @@
|
||||
#[doc = "Register `ANADETECT` reader"]
|
||||
pub struct R(crate::R<ANADETECT_SPEC>);
|
||||
impl core::ops::Deref for R {
|
||||
type Target = crate::R<ANADETECT_SPEC>;
|
||||
#[inline(always)]
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
impl From<crate::R<ANADETECT_SPEC>> for R {
|
||||
#[inline(always)]
|
||||
fn from(reader: crate::R<ANADETECT_SPEC>) -> Self {
|
||||
R(reader)
|
||||
}
|
||||
}
|
||||
#[doc = "Register `ANADETECT` writer"]
|
||||
pub struct W(crate::W<ANADETECT_SPEC>);
|
||||
impl core::ops::Deref for W {
|
||||
type Target = crate::W<ANADETECT_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<ANADETECT_SPEC>> for W {
|
||||
#[inline(always)]
|
||||
fn from(writer: crate::W<ANADETECT_SPEC>) -> Self {
|
||||
W(writer)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `ANADETECT` reader - Analog detect configuration."]
|
||||
pub type ANADETECT_R = crate::FieldReader<u8, ANADETECT_A>;
|
||||
#[doc = "Analog detect configuration.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
#[repr(u8)]
|
||||
pub enum ANADETECT_A {
|
||||
#[doc = "0: Generate ANADETEC on crossing, both upwards and downwards crossing."]
|
||||
CROSS = 0,
|
||||
#[doc = "1: Generate ANADETEC on upwards crossing only."]
|
||||
UP = 1,
|
||||
#[doc = "2: Generate ANADETEC on downwards crossing only."]
|
||||
DOWN = 2,
|
||||
}
|
||||
impl From<ANADETECT_A> for u8 {
|
||||
#[inline(always)]
|
||||
fn from(variant: ANADETECT_A) -> Self {
|
||||
variant as _
|
||||
}
|
||||
}
|
||||
impl ANADETECT_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> Option<ANADETECT_A> {
|
||||
match self.bits {
|
||||
0 => Some(ANADETECT_A::CROSS),
|
||||
1 => Some(ANADETECT_A::UP),
|
||||
2 => Some(ANADETECT_A::DOWN),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `CROSS`"]
|
||||
#[inline(always)]
|
||||
pub fn is_cross(&self) -> bool {
|
||||
*self == ANADETECT_A::CROSS
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `UP`"]
|
||||
#[inline(always)]
|
||||
pub fn is_up(&self) -> bool {
|
||||
*self == ANADETECT_A::UP
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `DOWN`"]
|
||||
#[inline(always)]
|
||||
pub fn is_down(&self) -> bool {
|
||||
*self == ANADETECT_A::DOWN
|
||||
}
|
||||
}
|
||||
#[doc = "Field `ANADETECT` writer - Analog detect configuration."]
|
||||
pub type ANADETECT_W<'a, const O: u8> =
|
||||
crate::FieldWriter<'a, u32, ANADETECT_SPEC, u8, ANADETECT_A, 2, O>;
|
||||
impl<'a, const O: u8> ANADETECT_W<'a, O> {
|
||||
#[doc = "Generate ANADETEC on crossing, both upwards and downwards crossing."]
|
||||
#[inline(always)]
|
||||
pub fn cross(self) -> &'a mut W {
|
||||
self.variant(ANADETECT_A::CROSS)
|
||||
}
|
||||
#[doc = "Generate ANADETEC on upwards crossing only."]
|
||||
#[inline(always)]
|
||||
pub fn up(self) -> &'a mut W {
|
||||
self.variant(ANADETECT_A::UP)
|
||||
}
|
||||
#[doc = "Generate ANADETEC on downwards crossing only."]
|
||||
#[inline(always)]
|
||||
pub fn down(self) -> &'a mut W {
|
||||
self.variant(ANADETECT_A::DOWN)
|
||||
}
|
||||
}
|
||||
impl R {
|
||||
#[doc = "Bits 0:1 - Analog detect configuration."]
|
||||
#[inline(always)]
|
||||
pub fn anadetect(&self) -> ANADETECT_R {
|
||||
ANADETECT_R::new((self.bits & 3) as u8)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
#[doc = "Bits 0:1 - Analog detect configuration."]
|
||||
#[inline(always)]
|
||||
pub fn anadetect(&mut self) -> ANADETECT_W<0> {
|
||||
ANADETECT_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 = "Analog detect configuration.\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 [anadetect](index.html) module"]
|
||||
pub struct ANADETECT_SPEC;
|
||||
impl crate::RegisterSpec for ANADETECT_SPEC {
|
||||
type Ux = u32;
|
||||
}
|
||||
#[doc = "`read()` method returns [anadetect::R](R) reader structure"]
|
||||
impl crate::Readable for ANADETECT_SPEC {
|
||||
type Reader = R;
|
||||
}
|
||||
#[doc = "`write(|w| ..)` method takes [anadetect::W](W) writer structure"]
|
||||
impl crate::Writable for ANADETECT_SPEC {
|
||||
type Writer = W;
|
||||
}
|
||||
#[doc = "`reset()` method sets ANADETECT to value 0"]
|
||||
impl crate::Resettable for ANADETECT_SPEC {
|
||||
#[inline(always)]
|
||||
fn reset_value() -> Self::Ux {
|
||||
0
|
||||
}
|
||||
}
|
||||
+128
@@ -0,0 +1,128 @@
|
||||
#[doc = "Register `ENABLE` reader"]
|
||||
pub struct R(crate::R<ENABLE_SPEC>);
|
||||
impl core::ops::Deref for R {
|
||||
type Target = crate::R<ENABLE_SPEC>;
|
||||
#[inline(always)]
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
impl From<crate::R<ENABLE_SPEC>> for R {
|
||||
#[inline(always)]
|
||||
fn from(reader: crate::R<ENABLE_SPEC>) -> Self {
|
||||
R(reader)
|
||||
}
|
||||
}
|
||||
#[doc = "Register `ENABLE` writer"]
|
||||
pub struct W(crate::W<ENABLE_SPEC>);
|
||||
impl core::ops::Deref for W {
|
||||
type Target = crate::W<ENABLE_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<ENABLE_SPEC>> for W {
|
||||
#[inline(always)]
|
||||
fn from(writer: crate::W<ENABLE_SPEC>) -> Self {
|
||||
W(writer)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `ENABLE` reader - Enable or disable LPCOMP."]
|
||||
pub type ENABLE_R = crate::FieldReader<u8, ENABLE_A>;
|
||||
#[doc = "Enable or disable LPCOMP.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
#[repr(u8)]
|
||||
pub enum ENABLE_A {
|
||||
#[doc = "0: Disabled LPCOMP."]
|
||||
DISABLED = 0,
|
||||
#[doc = "1: Enable LPCOMP."]
|
||||
ENABLED = 1,
|
||||
}
|
||||
impl From<ENABLE_A> for u8 {
|
||||
#[inline(always)]
|
||||
fn from(variant: ENABLE_A) -> Self {
|
||||
variant as _
|
||||
}
|
||||
}
|
||||
impl ENABLE_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> Option<ENABLE_A> {
|
||||
match self.bits {
|
||||
0 => Some(ENABLE_A::DISABLED),
|
||||
1 => Some(ENABLE_A::ENABLED),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `DISABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_disabled(&self) -> bool {
|
||||
*self == ENABLE_A::DISABLED
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ENABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_enabled(&self) -> bool {
|
||||
*self == ENABLE_A::ENABLED
|
||||
}
|
||||
}
|
||||
#[doc = "Field `ENABLE` writer - Enable or disable LPCOMP."]
|
||||
pub type ENABLE_W<'a, const O: u8> = crate::FieldWriter<'a, u32, ENABLE_SPEC, u8, ENABLE_A, 2, O>;
|
||||
impl<'a, const O: u8> ENABLE_W<'a, O> {
|
||||
#[doc = "Disabled LPCOMP."]
|
||||
#[inline(always)]
|
||||
pub fn disabled(self) -> &'a mut W {
|
||||
self.variant(ENABLE_A::DISABLED)
|
||||
}
|
||||
#[doc = "Enable LPCOMP."]
|
||||
#[inline(always)]
|
||||
pub fn enabled(self) -> &'a mut W {
|
||||
self.variant(ENABLE_A::ENABLED)
|
||||
}
|
||||
}
|
||||
impl R {
|
||||
#[doc = "Bits 0:1 - Enable or disable LPCOMP."]
|
||||
#[inline(always)]
|
||||
pub fn enable(&self) -> ENABLE_R {
|
||||
ENABLE_R::new((self.bits & 3) as u8)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
#[doc = "Bits 0:1 - Enable or disable LPCOMP."]
|
||||
#[inline(always)]
|
||||
pub fn enable(&mut self) -> ENABLE_W<0> {
|
||||
ENABLE_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 the LPCOMP.\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 [enable](index.html) module"]
|
||||
pub struct ENABLE_SPEC;
|
||||
impl crate::RegisterSpec for ENABLE_SPEC {
|
||||
type Ux = u32;
|
||||
}
|
||||
#[doc = "`read()` method returns [enable::R](R) reader structure"]
|
||||
impl crate::Readable for ENABLE_SPEC {
|
||||
type Reader = R;
|
||||
}
|
||||
#[doc = "`write(|w| ..)` method takes [enable::W](W) writer structure"]
|
||||
impl crate::Writable for ENABLE_SPEC {
|
||||
type Writer = W;
|
||||
}
|
||||
#[doc = "`reset()` method sets ENABLE to value 0"]
|
||||
impl crate::Resettable for ENABLE_SPEC {
|
||||
#[inline(always)]
|
||||
fn reset_value() -> Self::Ux {
|
||||
0
|
||||
}
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
#[doc = "Register `EVENTS_CROSS` reader"]
|
||||
pub struct R(crate::R<EVENTS_CROSS_SPEC>);
|
||||
impl core::ops::Deref for R {
|
||||
type Target = crate::R<EVENTS_CROSS_SPEC>;
|
||||
#[inline(always)]
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
impl From<crate::R<EVENTS_CROSS_SPEC>> for R {
|
||||
#[inline(always)]
|
||||
fn from(reader: crate::R<EVENTS_CROSS_SPEC>) -> Self {
|
||||
R(reader)
|
||||
}
|
||||
}
|
||||
#[doc = "Register `EVENTS_CROSS` writer"]
|
||||
pub struct W(crate::W<EVENTS_CROSS_SPEC>);
|
||||
impl core::ops::Deref for W {
|
||||
type Target = crate::W<EVENTS_CROSS_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_CROSS_SPEC>> for W {
|
||||
#[inline(always)]
|
||||
fn from(writer: crate::W<EVENTS_CROSS_SPEC>) -> Self {
|
||||
W(writer)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
#[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 = "Input voltage crossed the threshold in any direction.\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_cross](index.html) module"]
|
||||
pub struct EVENTS_CROSS_SPEC;
|
||||
impl crate::RegisterSpec for EVENTS_CROSS_SPEC {
|
||||
type Ux = u32;
|
||||
}
|
||||
#[doc = "`read()` method returns [events_cross::R](R) reader structure"]
|
||||
impl crate::Readable for EVENTS_CROSS_SPEC {
|
||||
type Reader = R;
|
||||
}
|
||||
#[doc = "`write(|w| ..)` method takes [events_cross::W](W) writer structure"]
|
||||
impl crate::Writable for EVENTS_CROSS_SPEC {
|
||||
type Writer = W;
|
||||
}
|
||||
#[doc = "`reset()` method sets EVENTS_CROSS to value 0"]
|
||||
impl crate::Resettable for EVENTS_CROSS_SPEC {
|
||||
#[inline(always)]
|
||||
fn reset_value() -> Self::Ux {
|
||||
0
|
||||
}
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
#[doc = "Register `EVENTS_DOWN` reader"]
|
||||
pub struct R(crate::R<EVENTS_DOWN_SPEC>);
|
||||
impl core::ops::Deref for R {
|
||||
type Target = crate::R<EVENTS_DOWN_SPEC>;
|
||||
#[inline(always)]
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
impl From<crate::R<EVENTS_DOWN_SPEC>> for R {
|
||||
#[inline(always)]
|
||||
fn from(reader: crate::R<EVENTS_DOWN_SPEC>) -> Self {
|
||||
R(reader)
|
||||
}
|
||||
}
|
||||
#[doc = "Register `EVENTS_DOWN` writer"]
|
||||
pub struct W(crate::W<EVENTS_DOWN_SPEC>);
|
||||
impl core::ops::Deref for W {
|
||||
type Target = crate::W<EVENTS_DOWN_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_DOWN_SPEC>> for W {
|
||||
#[inline(always)]
|
||||
fn from(writer: crate::W<EVENTS_DOWN_SPEC>) -> Self {
|
||||
W(writer)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
#[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 = "Input voltage crossed the threshold going down.\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_down](index.html) module"]
|
||||
pub struct EVENTS_DOWN_SPEC;
|
||||
impl crate::RegisterSpec for EVENTS_DOWN_SPEC {
|
||||
type Ux = u32;
|
||||
}
|
||||
#[doc = "`read()` method returns [events_down::R](R) reader structure"]
|
||||
impl crate::Readable for EVENTS_DOWN_SPEC {
|
||||
type Reader = R;
|
||||
}
|
||||
#[doc = "`write(|w| ..)` method takes [events_down::W](W) writer structure"]
|
||||
impl crate::Writable for EVENTS_DOWN_SPEC {
|
||||
type Writer = W;
|
||||
}
|
||||
#[doc = "`reset()` method sets EVENTS_DOWN to value 0"]
|
||||
impl crate::Resettable for EVENTS_DOWN_SPEC {
|
||||
#[inline(always)]
|
||||
fn reset_value() -> Self::Ux {
|
||||
0
|
||||
}
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
#[doc = "Register `EVENTS_READY` reader"]
|
||||
pub struct R(crate::R<EVENTS_READY_SPEC>);
|
||||
impl core::ops::Deref for R {
|
||||
type Target = crate::R<EVENTS_READY_SPEC>;
|
||||
#[inline(always)]
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
impl From<crate::R<EVENTS_READY_SPEC>> for R {
|
||||
#[inline(always)]
|
||||
fn from(reader: crate::R<EVENTS_READY_SPEC>) -> Self {
|
||||
R(reader)
|
||||
}
|
||||
}
|
||||
#[doc = "Register `EVENTS_READY` writer"]
|
||||
pub struct W(crate::W<EVENTS_READY_SPEC>);
|
||||
impl core::ops::Deref for W {
|
||||
type Target = crate::W<EVENTS_READY_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_READY_SPEC>> for W {
|
||||
#[inline(always)]
|
||||
fn from(writer: crate::W<EVENTS_READY_SPEC>) -> Self {
|
||||
W(writer)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
#[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 = "LPCOMP is ready and output is valid.\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_ready](index.html) module"]
|
||||
pub struct EVENTS_READY_SPEC;
|
||||
impl crate::RegisterSpec for EVENTS_READY_SPEC {
|
||||
type Ux = u32;
|
||||
}
|
||||
#[doc = "`read()` method returns [events_ready::R](R) reader structure"]
|
||||
impl crate::Readable for EVENTS_READY_SPEC {
|
||||
type Reader = R;
|
||||
}
|
||||
#[doc = "`write(|w| ..)` method takes [events_ready::W](W) writer structure"]
|
||||
impl crate::Writable for EVENTS_READY_SPEC {
|
||||
type Writer = W;
|
||||
}
|
||||
#[doc = "`reset()` method sets EVENTS_READY to value 0"]
|
||||
impl crate::Resettable for EVENTS_READY_SPEC {
|
||||
#[inline(always)]
|
||||
fn reset_value() -> Self::Ux {
|
||||
0
|
||||
}
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
#[doc = "Register `EVENTS_UP` reader"]
|
||||
pub struct R(crate::R<EVENTS_UP_SPEC>);
|
||||
impl core::ops::Deref for R {
|
||||
type Target = crate::R<EVENTS_UP_SPEC>;
|
||||
#[inline(always)]
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
impl From<crate::R<EVENTS_UP_SPEC>> for R {
|
||||
#[inline(always)]
|
||||
fn from(reader: crate::R<EVENTS_UP_SPEC>) -> Self {
|
||||
R(reader)
|
||||
}
|
||||
}
|
||||
#[doc = "Register `EVENTS_UP` writer"]
|
||||
pub struct W(crate::W<EVENTS_UP_SPEC>);
|
||||
impl core::ops::Deref for W {
|
||||
type Target = crate::W<EVENTS_UP_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_UP_SPEC>> for W {
|
||||
#[inline(always)]
|
||||
fn from(writer: crate::W<EVENTS_UP_SPEC>) -> Self {
|
||||
W(writer)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
#[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 = "Input voltage crossed the threshold going up.\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_up](index.html) module"]
|
||||
pub struct EVENTS_UP_SPEC;
|
||||
impl crate::RegisterSpec for EVENTS_UP_SPEC {
|
||||
type Ux = u32;
|
||||
}
|
||||
#[doc = "`read()` method returns [events_up::R](R) reader structure"]
|
||||
impl crate::Readable for EVENTS_UP_SPEC {
|
||||
type Reader = R;
|
||||
}
|
||||
#[doc = "`write(|w| ..)` method takes [events_up::W](W) writer structure"]
|
||||
impl crate::Writable for EVENTS_UP_SPEC {
|
||||
type Writer = W;
|
||||
}
|
||||
#[doc = "`reset()` method sets EVENTS_UP to value 0"]
|
||||
impl crate::Resettable for EVENTS_UP_SPEC {
|
||||
#[inline(always)]
|
||||
fn reset_value() -> Self::Ux {
|
||||
0
|
||||
}
|
||||
}
|
||||
+126
@@ -0,0 +1,126 @@
|
||||
#[doc = "Register `EXTREFSEL` reader"]
|
||||
pub struct R(crate::R<EXTREFSEL_SPEC>);
|
||||
impl core::ops::Deref for R {
|
||||
type Target = crate::R<EXTREFSEL_SPEC>;
|
||||
#[inline(always)]
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
impl From<crate::R<EXTREFSEL_SPEC>> for R {
|
||||
#[inline(always)]
|
||||
fn from(reader: crate::R<EXTREFSEL_SPEC>) -> Self {
|
||||
R(reader)
|
||||
}
|
||||
}
|
||||
#[doc = "Register `EXTREFSEL` writer"]
|
||||
pub struct W(crate::W<EXTREFSEL_SPEC>);
|
||||
impl core::ops::Deref for W {
|
||||
type Target = crate::W<EXTREFSEL_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<EXTREFSEL_SPEC>> for W {
|
||||
#[inline(always)]
|
||||
fn from(writer: crate::W<EXTREFSEL_SPEC>) -> Self {
|
||||
W(writer)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `EXTREFSEL` reader - External analog reference pin selection."]
|
||||
pub type EXTREFSEL_R = crate::BitReader<EXTREFSEL_A>;
|
||||
#[doc = "External analog reference pin selection.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum EXTREFSEL_A {
|
||||
#[doc = "0: Use analog reference 0 as reference."]
|
||||
ANALOG_REFERENCE0 = 0,
|
||||
#[doc = "1: Use analog reference 1 as reference."]
|
||||
ANALOG_REFERENCE1 = 1,
|
||||
}
|
||||
impl From<EXTREFSEL_A> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: EXTREFSEL_A) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
impl EXTREFSEL_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> EXTREFSEL_A {
|
||||
match self.bits {
|
||||
false => EXTREFSEL_A::ANALOG_REFERENCE0,
|
||||
true => EXTREFSEL_A::ANALOG_REFERENCE1,
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ANALOG_REFERENCE0`"]
|
||||
#[inline(always)]
|
||||
pub fn is_analog_reference0(&self) -> bool {
|
||||
*self == EXTREFSEL_A::ANALOG_REFERENCE0
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ANALOG_REFERENCE1`"]
|
||||
#[inline(always)]
|
||||
pub fn is_analog_reference1(&self) -> bool {
|
||||
*self == EXTREFSEL_A::ANALOG_REFERENCE1
|
||||
}
|
||||
}
|
||||
#[doc = "Field `EXTREFSEL` writer - External analog reference pin selection."]
|
||||
pub type EXTREFSEL_W<'a, const O: u8> = crate::BitWriter<'a, u32, EXTREFSEL_SPEC, EXTREFSEL_A, O>;
|
||||
impl<'a, const O: u8> EXTREFSEL_W<'a, O> {
|
||||
#[doc = "Use analog reference 0 as reference."]
|
||||
#[inline(always)]
|
||||
pub fn analog_reference0(self) -> &'a mut W {
|
||||
self.variant(EXTREFSEL_A::ANALOG_REFERENCE0)
|
||||
}
|
||||
#[doc = "Use analog reference 1 as reference."]
|
||||
#[inline(always)]
|
||||
pub fn analog_reference1(self) -> &'a mut W {
|
||||
self.variant(EXTREFSEL_A::ANALOG_REFERENCE1)
|
||||
}
|
||||
}
|
||||
impl R {
|
||||
#[doc = "Bit 0 - External analog reference pin selection."]
|
||||
#[inline(always)]
|
||||
pub fn extrefsel(&self) -> EXTREFSEL_R {
|
||||
EXTREFSEL_R::new((self.bits & 1) != 0)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
#[doc = "Bit 0 - External analog reference pin selection."]
|
||||
#[inline(always)]
|
||||
pub fn extrefsel(&mut self) -> EXTREFSEL_W<0> {
|
||||
EXTREFSEL_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 = "External reference select.\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 [extrefsel](index.html) module"]
|
||||
pub struct EXTREFSEL_SPEC;
|
||||
impl crate::RegisterSpec for EXTREFSEL_SPEC {
|
||||
type Ux = u32;
|
||||
}
|
||||
#[doc = "`read()` method returns [extrefsel::R](R) reader structure"]
|
||||
impl crate::Readable for EXTREFSEL_SPEC {
|
||||
type Reader = R;
|
||||
}
|
||||
#[doc = "`write(|w| ..)` method takes [extrefsel::W](W) writer structure"]
|
||||
impl crate::Writable for EXTREFSEL_SPEC {
|
||||
type Writer = W;
|
||||
}
|
||||
#[doc = "`reset()` method sets EXTREFSEL to value 0"]
|
||||
impl crate::Resettable for EXTREFSEL_SPEC {
|
||||
#[inline(always)]
|
||||
fn reset_value() -> Self::Ux {
|
||||
0
|
||||
}
|
||||
}
|
||||
+334
@@ -0,0 +1,334 @@
|
||||
#[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 `READY` reader - Disable interrupt on READY event."]
|
||||
pub type READY_R = crate::BitReader<READY_A>;
|
||||
#[doc = "Disable interrupt on READY event.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum READY_A {
|
||||
#[doc = "0: Interrupt disabled."]
|
||||
DISABLED = 0,
|
||||
#[doc = "1: Interrupt enabled."]
|
||||
ENABLED = 1,
|
||||
}
|
||||
impl From<READY_A> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: READY_A) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
impl READY_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> READY_A {
|
||||
match self.bits {
|
||||
false => READY_A::DISABLED,
|
||||
true => READY_A::ENABLED,
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `DISABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_disabled(&self) -> bool {
|
||||
*self == READY_A::DISABLED
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ENABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_enabled(&self) -> bool {
|
||||
*self == READY_A::ENABLED
|
||||
}
|
||||
}
|
||||
#[doc = "Disable interrupt on READY event.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum READY_AW {
|
||||
#[doc = "1: Disable interrupt on write."]
|
||||
CLEAR = 1,
|
||||
}
|
||||
impl From<READY_AW> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: READY_AW) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
#[doc = "Field `READY` writer - Disable interrupt on READY event."]
|
||||
pub type READY_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENCLR_SPEC, READY_AW, O>;
|
||||
impl<'a, const O: u8> READY_W<'a, O> {
|
||||
#[doc = "Disable interrupt on write."]
|
||||
#[inline(always)]
|
||||
pub fn clear(self) -> &'a mut W {
|
||||
self.variant(READY_AW::CLEAR)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `DOWN` reader - Disable interrupt on DOWN event."]
|
||||
pub type DOWN_R = crate::BitReader<DOWN_A>;
|
||||
#[doc = "Disable interrupt on DOWN event.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum DOWN_A {
|
||||
#[doc = "0: Interrupt disabled."]
|
||||
DISABLED = 0,
|
||||
#[doc = "1: Interrupt enabled."]
|
||||
ENABLED = 1,
|
||||
}
|
||||
impl From<DOWN_A> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: DOWN_A) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
impl DOWN_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> DOWN_A {
|
||||
match self.bits {
|
||||
false => DOWN_A::DISABLED,
|
||||
true => DOWN_A::ENABLED,
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `DISABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_disabled(&self) -> bool {
|
||||
*self == DOWN_A::DISABLED
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ENABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_enabled(&self) -> bool {
|
||||
*self == DOWN_A::ENABLED
|
||||
}
|
||||
}
|
||||
#[doc = "Disable interrupt on DOWN event.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum DOWN_AW {
|
||||
#[doc = "1: Disable interrupt on write."]
|
||||
CLEAR = 1,
|
||||
}
|
||||
impl From<DOWN_AW> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: DOWN_AW) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
#[doc = "Field `DOWN` writer - Disable interrupt on DOWN event."]
|
||||
pub type DOWN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENCLR_SPEC, DOWN_AW, O>;
|
||||
impl<'a, const O: u8> DOWN_W<'a, O> {
|
||||
#[doc = "Disable interrupt on write."]
|
||||
#[inline(always)]
|
||||
pub fn clear(self) -> &'a mut W {
|
||||
self.variant(DOWN_AW::CLEAR)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `UP` reader - Disable interrupt on UP event."]
|
||||
pub type UP_R = crate::BitReader<UP_A>;
|
||||
#[doc = "Disable interrupt on UP event.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum UP_A {
|
||||
#[doc = "0: Interrupt disabled."]
|
||||
DISABLED = 0,
|
||||
#[doc = "1: Interrupt enabled."]
|
||||
ENABLED = 1,
|
||||
}
|
||||
impl From<UP_A> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: UP_A) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
impl UP_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> UP_A {
|
||||
match self.bits {
|
||||
false => UP_A::DISABLED,
|
||||
true => UP_A::ENABLED,
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `DISABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_disabled(&self) -> bool {
|
||||
*self == UP_A::DISABLED
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ENABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_enabled(&self) -> bool {
|
||||
*self == UP_A::ENABLED
|
||||
}
|
||||
}
|
||||
#[doc = "Disable interrupt on UP event.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum UP_AW {
|
||||
#[doc = "1: Disable interrupt on write."]
|
||||
CLEAR = 1,
|
||||
}
|
||||
impl From<UP_AW> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: UP_AW) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
#[doc = "Field `UP` writer - Disable interrupt on UP event."]
|
||||
pub type UP_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENCLR_SPEC, UP_AW, O>;
|
||||
impl<'a, const O: u8> UP_W<'a, O> {
|
||||
#[doc = "Disable interrupt on write."]
|
||||
#[inline(always)]
|
||||
pub fn clear(self) -> &'a mut W {
|
||||
self.variant(UP_AW::CLEAR)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `CROSS` reader - Disable interrupt on CROSS event."]
|
||||
pub type CROSS_R = crate::BitReader<CROSS_A>;
|
||||
#[doc = "Disable interrupt on CROSS event.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum CROSS_A {
|
||||
#[doc = "0: Interrupt disabled."]
|
||||
DISABLED = 0,
|
||||
#[doc = "1: Interrupt enabled."]
|
||||
ENABLED = 1,
|
||||
}
|
||||
impl From<CROSS_A> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: CROSS_A) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
impl CROSS_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> CROSS_A {
|
||||
match self.bits {
|
||||
false => CROSS_A::DISABLED,
|
||||
true => CROSS_A::ENABLED,
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `DISABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_disabled(&self) -> bool {
|
||||
*self == CROSS_A::DISABLED
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ENABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_enabled(&self) -> bool {
|
||||
*self == CROSS_A::ENABLED
|
||||
}
|
||||
}
|
||||
#[doc = "Disable interrupt on CROSS event.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum CROSS_AW {
|
||||
#[doc = "1: Disable interrupt on write."]
|
||||
CLEAR = 1,
|
||||
}
|
||||
impl From<CROSS_AW> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: CROSS_AW) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
#[doc = "Field `CROSS` writer - Disable interrupt on CROSS event."]
|
||||
pub type CROSS_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENCLR_SPEC, CROSS_AW, O>;
|
||||
impl<'a, const O: u8> CROSS_W<'a, O> {
|
||||
#[doc = "Disable interrupt on write."]
|
||||
#[inline(always)]
|
||||
pub fn clear(self) -> &'a mut W {
|
||||
self.variant(CROSS_AW::CLEAR)
|
||||
}
|
||||
}
|
||||
impl R {
|
||||
#[doc = "Bit 0 - Disable interrupt on READY event."]
|
||||
#[inline(always)]
|
||||
pub fn ready(&self) -> READY_R {
|
||||
READY_R::new((self.bits & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 1 - Disable interrupt on DOWN event."]
|
||||
#[inline(always)]
|
||||
pub fn down(&self) -> DOWN_R {
|
||||
DOWN_R::new(((self.bits >> 1) & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 2 - Disable interrupt on UP event."]
|
||||
#[inline(always)]
|
||||
pub fn up(&self) -> UP_R {
|
||||
UP_R::new(((self.bits >> 2) & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 3 - Disable interrupt on CROSS event."]
|
||||
#[inline(always)]
|
||||
pub fn cross(&self) -> CROSS_R {
|
||||
CROSS_R::new(((self.bits >> 3) & 1) != 0)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
#[doc = "Bit 0 - Disable interrupt on READY event."]
|
||||
#[inline(always)]
|
||||
pub fn ready(&mut self) -> READY_W<0> {
|
||||
READY_W::new(self)
|
||||
}
|
||||
#[doc = "Bit 1 - Disable interrupt on DOWN event."]
|
||||
#[inline(always)]
|
||||
pub fn down(&mut self) -> DOWN_W<1> {
|
||||
DOWN_W::new(self)
|
||||
}
|
||||
#[doc = "Bit 2 - Disable interrupt on UP event."]
|
||||
#[inline(always)]
|
||||
pub fn up(&mut self) -> UP_W<2> {
|
||||
UP_W::new(self)
|
||||
}
|
||||
#[doc = "Bit 3 - Disable interrupt on CROSS event."]
|
||||
#[inline(always)]
|
||||
pub fn cross(&mut self) -> CROSS_W<3> {
|
||||
CROSS_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 = "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 = 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
|
||||
}
|
||||
}
|
||||
+334
@@ -0,0 +1,334 @@
|
||||
#[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 `READY` reader - Enable interrupt on READY event."]
|
||||
pub type READY_R = crate::BitReader<READY_A>;
|
||||
#[doc = "Enable interrupt on READY event.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum READY_A {
|
||||
#[doc = "0: Interrupt disabled."]
|
||||
DISABLED = 0,
|
||||
#[doc = "1: Interrupt enabled."]
|
||||
ENABLED = 1,
|
||||
}
|
||||
impl From<READY_A> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: READY_A) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
impl READY_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> READY_A {
|
||||
match self.bits {
|
||||
false => READY_A::DISABLED,
|
||||
true => READY_A::ENABLED,
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `DISABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_disabled(&self) -> bool {
|
||||
*self == READY_A::DISABLED
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ENABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_enabled(&self) -> bool {
|
||||
*self == READY_A::ENABLED
|
||||
}
|
||||
}
|
||||
#[doc = "Enable interrupt on READY event.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum READY_AW {
|
||||
#[doc = "1: Enable interrupt on write."]
|
||||
SET = 1,
|
||||
}
|
||||
impl From<READY_AW> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: READY_AW) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
#[doc = "Field `READY` writer - Enable interrupt on READY event."]
|
||||
pub type READY_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, READY_AW, O>;
|
||||
impl<'a, const O: u8> READY_W<'a, O> {
|
||||
#[doc = "Enable interrupt on write."]
|
||||
#[inline(always)]
|
||||
pub fn set(self) -> &'a mut W {
|
||||
self.variant(READY_AW::SET)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `DOWN` reader - Enable interrupt on DOWN event."]
|
||||
pub type DOWN_R = crate::BitReader<DOWN_A>;
|
||||
#[doc = "Enable interrupt on DOWN event.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum DOWN_A {
|
||||
#[doc = "0: Interrupt disabled."]
|
||||
DISABLED = 0,
|
||||
#[doc = "1: Interrupt enabled."]
|
||||
ENABLED = 1,
|
||||
}
|
||||
impl From<DOWN_A> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: DOWN_A) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
impl DOWN_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> DOWN_A {
|
||||
match self.bits {
|
||||
false => DOWN_A::DISABLED,
|
||||
true => DOWN_A::ENABLED,
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `DISABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_disabled(&self) -> bool {
|
||||
*self == DOWN_A::DISABLED
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ENABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_enabled(&self) -> bool {
|
||||
*self == DOWN_A::ENABLED
|
||||
}
|
||||
}
|
||||
#[doc = "Enable interrupt on DOWN event.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum DOWN_AW {
|
||||
#[doc = "1: Enable interrupt on write."]
|
||||
SET = 1,
|
||||
}
|
||||
impl From<DOWN_AW> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: DOWN_AW) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
#[doc = "Field `DOWN` writer - Enable interrupt on DOWN event."]
|
||||
pub type DOWN_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, DOWN_AW, O>;
|
||||
impl<'a, const O: u8> DOWN_W<'a, O> {
|
||||
#[doc = "Enable interrupt on write."]
|
||||
#[inline(always)]
|
||||
pub fn set(self) -> &'a mut W {
|
||||
self.variant(DOWN_AW::SET)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `UP` reader - Enable interrupt on UP event."]
|
||||
pub type UP_R = crate::BitReader<UP_A>;
|
||||
#[doc = "Enable interrupt on UP event.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum UP_A {
|
||||
#[doc = "0: Interrupt disabled."]
|
||||
DISABLED = 0,
|
||||
#[doc = "1: Interrupt enabled."]
|
||||
ENABLED = 1,
|
||||
}
|
||||
impl From<UP_A> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: UP_A) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
impl UP_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> UP_A {
|
||||
match self.bits {
|
||||
false => UP_A::DISABLED,
|
||||
true => UP_A::ENABLED,
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `DISABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_disabled(&self) -> bool {
|
||||
*self == UP_A::DISABLED
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ENABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_enabled(&self) -> bool {
|
||||
*self == UP_A::ENABLED
|
||||
}
|
||||
}
|
||||
#[doc = "Enable interrupt on UP event.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum UP_AW {
|
||||
#[doc = "1: Enable interrupt on write."]
|
||||
SET = 1,
|
||||
}
|
||||
impl From<UP_AW> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: UP_AW) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
#[doc = "Field `UP` writer - Enable interrupt on UP event."]
|
||||
pub type UP_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, UP_AW, O>;
|
||||
impl<'a, const O: u8> UP_W<'a, O> {
|
||||
#[doc = "Enable interrupt on write."]
|
||||
#[inline(always)]
|
||||
pub fn set(self) -> &'a mut W {
|
||||
self.variant(UP_AW::SET)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `CROSS` reader - Enable interrupt on CROSS event."]
|
||||
pub type CROSS_R = crate::BitReader<CROSS_A>;
|
||||
#[doc = "Enable interrupt on CROSS event.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum CROSS_A {
|
||||
#[doc = "0: Interrupt disabled."]
|
||||
DISABLED = 0,
|
||||
#[doc = "1: Interrupt enabled."]
|
||||
ENABLED = 1,
|
||||
}
|
||||
impl From<CROSS_A> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: CROSS_A) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
impl CROSS_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> CROSS_A {
|
||||
match self.bits {
|
||||
false => CROSS_A::DISABLED,
|
||||
true => CROSS_A::ENABLED,
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `DISABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_disabled(&self) -> bool {
|
||||
*self == CROSS_A::DISABLED
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ENABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_enabled(&self) -> bool {
|
||||
*self == CROSS_A::ENABLED
|
||||
}
|
||||
}
|
||||
#[doc = "Enable interrupt on CROSS event.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum CROSS_AW {
|
||||
#[doc = "1: Enable interrupt on write."]
|
||||
SET = 1,
|
||||
}
|
||||
impl From<CROSS_AW> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: CROSS_AW) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
#[doc = "Field `CROSS` writer - Enable interrupt on CROSS event."]
|
||||
pub type CROSS_W<'a, const O: u8> = crate::BitWriter<'a, u32, INTENSET_SPEC, CROSS_AW, O>;
|
||||
impl<'a, const O: u8> CROSS_W<'a, O> {
|
||||
#[doc = "Enable interrupt on write."]
|
||||
#[inline(always)]
|
||||
pub fn set(self) -> &'a mut W {
|
||||
self.variant(CROSS_AW::SET)
|
||||
}
|
||||
}
|
||||
impl R {
|
||||
#[doc = "Bit 0 - Enable interrupt on READY event."]
|
||||
#[inline(always)]
|
||||
pub fn ready(&self) -> READY_R {
|
||||
READY_R::new((self.bits & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 1 - Enable interrupt on DOWN event."]
|
||||
#[inline(always)]
|
||||
pub fn down(&self) -> DOWN_R {
|
||||
DOWN_R::new(((self.bits >> 1) & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 2 - Enable interrupt on UP event."]
|
||||
#[inline(always)]
|
||||
pub fn up(&self) -> UP_R {
|
||||
UP_R::new(((self.bits >> 2) & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 3 - Enable interrupt on CROSS event."]
|
||||
#[inline(always)]
|
||||
pub fn cross(&self) -> CROSS_R {
|
||||
CROSS_R::new(((self.bits >> 3) & 1) != 0)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
#[doc = "Bit 0 - Enable interrupt on READY event."]
|
||||
#[inline(always)]
|
||||
pub fn ready(&mut self) -> READY_W<0> {
|
||||
READY_W::new(self)
|
||||
}
|
||||
#[doc = "Bit 1 - Enable interrupt on DOWN event."]
|
||||
#[inline(always)]
|
||||
pub fn down(&mut self) -> DOWN_W<1> {
|
||||
DOWN_W::new(self)
|
||||
}
|
||||
#[doc = "Bit 2 - Enable interrupt on UP event."]
|
||||
#[inline(always)]
|
||||
pub fn up(&mut self) -> UP_W<2> {
|
||||
UP_W::new(self)
|
||||
}
|
||||
#[doc = "Bit 3 - Enable interrupt on CROSS event."]
|
||||
#[inline(always)]
|
||||
pub fn cross(&mut self) -> CROSS_W<3> {
|
||||
CROSS_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 = "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 = 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
|
||||
}
|
||||
}
|
||||
Vendored
+126
@@ -0,0 +1,126 @@
|
||||
#[doc = "Register `POWER` reader"]
|
||||
pub struct R(crate::R<POWER_SPEC>);
|
||||
impl core::ops::Deref for R {
|
||||
type Target = crate::R<POWER_SPEC>;
|
||||
#[inline(always)]
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
impl From<crate::R<POWER_SPEC>> for R {
|
||||
#[inline(always)]
|
||||
fn from(reader: crate::R<POWER_SPEC>) -> Self {
|
||||
R(reader)
|
||||
}
|
||||
}
|
||||
#[doc = "Register `POWER` writer"]
|
||||
pub struct W(crate::W<POWER_SPEC>);
|
||||
impl core::ops::Deref for W {
|
||||
type Target = crate::W<POWER_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<POWER_SPEC>> for W {
|
||||
#[inline(always)]
|
||||
fn from(writer: crate::W<POWER_SPEC>) -> Self {
|
||||
W(writer)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `POWER` reader - Peripheral power control."]
|
||||
pub type POWER_R = crate::BitReader<POWER_A>;
|
||||
#[doc = "Peripheral power control.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum POWER_A {
|
||||
#[doc = "0: Module power disabled."]
|
||||
DISABLED = 0,
|
||||
#[doc = "1: Module power enabled."]
|
||||
ENABLED = 1,
|
||||
}
|
||||
impl From<POWER_A> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: POWER_A) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
impl POWER_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> POWER_A {
|
||||
match self.bits {
|
||||
false => POWER_A::DISABLED,
|
||||
true => POWER_A::ENABLED,
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `DISABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_disabled(&self) -> bool {
|
||||
*self == POWER_A::DISABLED
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ENABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_enabled(&self) -> bool {
|
||||
*self == POWER_A::ENABLED
|
||||
}
|
||||
}
|
||||
#[doc = "Field `POWER` writer - Peripheral power control."]
|
||||
pub type POWER_W<'a, const O: u8> = crate::BitWriter<'a, u32, POWER_SPEC, POWER_A, O>;
|
||||
impl<'a, const O: u8> POWER_W<'a, O> {
|
||||
#[doc = "Module power disabled."]
|
||||
#[inline(always)]
|
||||
pub fn disabled(self) -> &'a mut W {
|
||||
self.variant(POWER_A::DISABLED)
|
||||
}
|
||||
#[doc = "Module power enabled."]
|
||||
#[inline(always)]
|
||||
pub fn enabled(self) -> &'a mut W {
|
||||
self.variant(POWER_A::ENABLED)
|
||||
}
|
||||
}
|
||||
impl R {
|
||||
#[doc = "Bit 0 - Peripheral power control."]
|
||||
#[inline(always)]
|
||||
pub fn power(&self) -> POWER_R {
|
||||
POWER_R::new((self.bits & 1) != 0)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
#[doc = "Bit 0 - Peripheral power control."]
|
||||
#[inline(always)]
|
||||
pub fn power(&mut self) -> POWER_W<0> {
|
||||
POWER_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 = "Peripheral power control.\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 [power](index.html) module"]
|
||||
pub struct POWER_SPEC;
|
||||
impl crate::RegisterSpec for POWER_SPEC {
|
||||
type Ux = u32;
|
||||
}
|
||||
#[doc = "`read()` method returns [power::R](R) reader structure"]
|
||||
impl crate::Readable for POWER_SPEC {
|
||||
type Reader = R;
|
||||
}
|
||||
#[doc = "`write(|w| ..)` method takes [power::W](W) writer structure"]
|
||||
impl crate::Writable for POWER_SPEC {
|
||||
type Writer = W;
|
||||
}
|
||||
#[doc = "`reset()` method sets POWER to value 0"]
|
||||
impl crate::Resettable for POWER_SPEC {
|
||||
#[inline(always)]
|
||||
fn reset_value() -> Self::Ux {
|
||||
0
|
||||
}
|
||||
}
|
||||
Vendored
+206
@@ -0,0 +1,206 @@
|
||||
#[doc = "Register `PSEL` reader"]
|
||||
pub struct R(crate::R<PSEL_SPEC>);
|
||||
impl core::ops::Deref for R {
|
||||
type Target = crate::R<PSEL_SPEC>;
|
||||
#[inline(always)]
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
impl From<crate::R<PSEL_SPEC>> for R {
|
||||
#[inline(always)]
|
||||
fn from(reader: crate::R<PSEL_SPEC>) -> Self {
|
||||
R(reader)
|
||||
}
|
||||
}
|
||||
#[doc = "Register `PSEL` writer"]
|
||||
pub struct W(crate::W<PSEL_SPEC>);
|
||||
impl core::ops::Deref for W {
|
||||
type Target = crate::W<PSEL_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<PSEL_SPEC>> for W {
|
||||
#[inline(always)]
|
||||
fn from(writer: crate::W<PSEL_SPEC>) -> Self {
|
||||
W(writer)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `PSEL` reader - Analog input pin select."]
|
||||
pub type PSEL_R = crate::FieldReader<u8, PSEL_A>;
|
||||
#[doc = "Analog input pin select.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
#[repr(u8)]
|
||||
pub enum PSEL_A {
|
||||
#[doc = "0: Use analog input 0 as analog input."]
|
||||
ANALOG_INPUT0 = 0,
|
||||
#[doc = "1: Use analog input 1 as analog input."]
|
||||
ANALOG_INPUT1 = 1,
|
||||
#[doc = "2: Use analog input 2 as analog input."]
|
||||
ANALOG_INPUT2 = 2,
|
||||
#[doc = "3: Use analog input 3 as analog input."]
|
||||
ANALOG_INPUT3 = 3,
|
||||
#[doc = "4: Use analog input 4 as analog input."]
|
||||
ANALOG_INPUT4 = 4,
|
||||
#[doc = "5: Use analog input 5 as analog input."]
|
||||
ANALOG_INPUT5 = 5,
|
||||
#[doc = "6: Use analog input 6 as analog input."]
|
||||
ANALOG_INPUT6 = 6,
|
||||
#[doc = "7: Use analog input 7 as analog input."]
|
||||
ANALOG_INPUT7 = 7,
|
||||
}
|
||||
impl From<PSEL_A> for u8 {
|
||||
#[inline(always)]
|
||||
fn from(variant: PSEL_A) -> Self {
|
||||
variant as _
|
||||
}
|
||||
}
|
||||
impl PSEL_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> PSEL_A {
|
||||
match self.bits {
|
||||
0 => PSEL_A::ANALOG_INPUT0,
|
||||
1 => PSEL_A::ANALOG_INPUT1,
|
||||
2 => PSEL_A::ANALOG_INPUT2,
|
||||
3 => PSEL_A::ANALOG_INPUT3,
|
||||
4 => PSEL_A::ANALOG_INPUT4,
|
||||
5 => PSEL_A::ANALOG_INPUT5,
|
||||
6 => PSEL_A::ANALOG_INPUT6,
|
||||
7 => PSEL_A::ANALOG_INPUT7,
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ANALOG_INPUT0`"]
|
||||
#[inline(always)]
|
||||
pub fn is_analog_input0(&self) -> bool {
|
||||
*self == PSEL_A::ANALOG_INPUT0
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ANALOG_INPUT1`"]
|
||||
#[inline(always)]
|
||||
pub fn is_analog_input1(&self) -> bool {
|
||||
*self == PSEL_A::ANALOG_INPUT1
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ANALOG_INPUT2`"]
|
||||
#[inline(always)]
|
||||
pub fn is_analog_input2(&self) -> bool {
|
||||
*self == PSEL_A::ANALOG_INPUT2
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ANALOG_INPUT3`"]
|
||||
#[inline(always)]
|
||||
pub fn is_analog_input3(&self) -> bool {
|
||||
*self == PSEL_A::ANALOG_INPUT3
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ANALOG_INPUT4`"]
|
||||
#[inline(always)]
|
||||
pub fn is_analog_input4(&self) -> bool {
|
||||
*self == PSEL_A::ANALOG_INPUT4
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ANALOG_INPUT5`"]
|
||||
#[inline(always)]
|
||||
pub fn is_analog_input5(&self) -> bool {
|
||||
*self == PSEL_A::ANALOG_INPUT5
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ANALOG_INPUT6`"]
|
||||
#[inline(always)]
|
||||
pub fn is_analog_input6(&self) -> bool {
|
||||
*self == PSEL_A::ANALOG_INPUT6
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ANALOG_INPUT7`"]
|
||||
#[inline(always)]
|
||||
pub fn is_analog_input7(&self) -> bool {
|
||||
*self == PSEL_A::ANALOG_INPUT7
|
||||
}
|
||||
}
|
||||
#[doc = "Field `PSEL` writer - Analog input pin select."]
|
||||
pub type PSEL_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, PSEL_SPEC, u8, PSEL_A, 3, O>;
|
||||
impl<'a, const O: u8> PSEL_W<'a, O> {
|
||||
#[doc = "Use analog input 0 as analog input."]
|
||||
#[inline(always)]
|
||||
pub fn analog_input0(self) -> &'a mut W {
|
||||
self.variant(PSEL_A::ANALOG_INPUT0)
|
||||
}
|
||||
#[doc = "Use analog input 1 as analog input."]
|
||||
#[inline(always)]
|
||||
pub fn analog_input1(self) -> &'a mut W {
|
||||
self.variant(PSEL_A::ANALOG_INPUT1)
|
||||
}
|
||||
#[doc = "Use analog input 2 as analog input."]
|
||||
#[inline(always)]
|
||||
pub fn analog_input2(self) -> &'a mut W {
|
||||
self.variant(PSEL_A::ANALOG_INPUT2)
|
||||
}
|
||||
#[doc = "Use analog input 3 as analog input."]
|
||||
#[inline(always)]
|
||||
pub fn analog_input3(self) -> &'a mut W {
|
||||
self.variant(PSEL_A::ANALOG_INPUT3)
|
||||
}
|
||||
#[doc = "Use analog input 4 as analog input."]
|
||||
#[inline(always)]
|
||||
pub fn analog_input4(self) -> &'a mut W {
|
||||
self.variant(PSEL_A::ANALOG_INPUT4)
|
||||
}
|
||||
#[doc = "Use analog input 5 as analog input."]
|
||||
#[inline(always)]
|
||||
pub fn analog_input5(self) -> &'a mut W {
|
||||
self.variant(PSEL_A::ANALOG_INPUT5)
|
||||
}
|
||||
#[doc = "Use analog input 6 as analog input."]
|
||||
#[inline(always)]
|
||||
pub fn analog_input6(self) -> &'a mut W {
|
||||
self.variant(PSEL_A::ANALOG_INPUT6)
|
||||
}
|
||||
#[doc = "Use analog input 7 as analog input."]
|
||||
#[inline(always)]
|
||||
pub fn analog_input7(self) -> &'a mut W {
|
||||
self.variant(PSEL_A::ANALOG_INPUT7)
|
||||
}
|
||||
}
|
||||
impl R {
|
||||
#[doc = "Bits 0:2 - Analog input pin select."]
|
||||
#[inline(always)]
|
||||
pub fn psel(&self) -> PSEL_R {
|
||||
PSEL_R::new((self.bits & 7) as u8)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
#[doc = "Bits 0:2 - Analog input pin select."]
|
||||
#[inline(always)]
|
||||
pub fn psel(&mut self) -> PSEL_W<0> {
|
||||
PSEL_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 = "Input pin select.\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 [psel](index.html) module"]
|
||||
pub struct PSEL_SPEC;
|
||||
impl crate::RegisterSpec for PSEL_SPEC {
|
||||
type Ux = u32;
|
||||
}
|
||||
#[doc = "`read()` method returns [psel::R](R) reader structure"]
|
||||
impl crate::Readable for PSEL_SPEC {
|
||||
type Reader = R;
|
||||
}
|
||||
#[doc = "`write(|w| ..)` method takes [psel::W](W) writer structure"]
|
||||
impl crate::Writable for PSEL_SPEC {
|
||||
type Writer = W;
|
||||
}
|
||||
#[doc = "`reset()` method sets PSEL to value 0"]
|
||||
impl crate::Resettable for PSEL_SPEC {
|
||||
#[inline(always)]
|
||||
fn reset_value() -> Self::Ux {
|
||||
0
|
||||
}
|
||||
}
|
||||
+207
@@ -0,0 +1,207 @@
|
||||
#[doc = "Register `REFSEL` reader"]
|
||||
pub struct R(crate::R<REFSEL_SPEC>);
|
||||
impl core::ops::Deref for R {
|
||||
type Target = crate::R<REFSEL_SPEC>;
|
||||
#[inline(always)]
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
impl From<crate::R<REFSEL_SPEC>> for R {
|
||||
#[inline(always)]
|
||||
fn from(reader: crate::R<REFSEL_SPEC>) -> Self {
|
||||
R(reader)
|
||||
}
|
||||
}
|
||||
#[doc = "Register `REFSEL` writer"]
|
||||
pub struct W(crate::W<REFSEL_SPEC>);
|
||||
impl core::ops::Deref for W {
|
||||
type Target = crate::W<REFSEL_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<REFSEL_SPEC>> for W {
|
||||
#[inline(always)]
|
||||
fn from(writer: crate::W<REFSEL_SPEC>) -> Self {
|
||||
W(writer)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `REFSEL` reader - Reference select."]
|
||||
pub type REFSEL_R = crate::FieldReader<u8, REFSEL_A>;
|
||||
#[doc = "Reference select.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
#[repr(u8)]
|
||||
pub enum REFSEL_A {
|
||||
#[doc = "0: Use supply with a 1/8 prescaler as reference."]
|
||||
SUPPLY_ONE_EIGHTH_PRESCALING = 0,
|
||||
#[doc = "1: Use supply with a 2/8 prescaler as reference."]
|
||||
SUPPLY_TWO_EIGHTHS_PRESCALING = 1,
|
||||
#[doc = "2: Use supply with a 3/8 prescaler as reference."]
|
||||
SUPPLY_THREE_EIGHTHS_PRESCALING = 2,
|
||||
#[doc = "3: Use supply with a 4/8 prescaler as reference."]
|
||||
SUPPLY_FOUR_EIGHTHS_PRESCALING = 3,
|
||||
#[doc = "4: Use supply with a 5/8 prescaler as reference."]
|
||||
SUPPLY_FIVE_EIGHTHS_PRESCALING = 4,
|
||||
#[doc = "5: Use supply with a 6/8 prescaler as reference."]
|
||||
SUPPLY_SIX_EIGHTHS_PRESCALING = 5,
|
||||
#[doc = "6: Use supply with a 7/8 prescaler as reference."]
|
||||
SUPPLY_SEVEN_EIGHTHS_PRESCALING = 6,
|
||||
#[doc = "7: Use external analog reference as reference."]
|
||||
AREF = 7,
|
||||
}
|
||||
impl From<REFSEL_A> for u8 {
|
||||
#[inline(always)]
|
||||
fn from(variant: REFSEL_A) -> Self {
|
||||
variant as _
|
||||
}
|
||||
}
|
||||
impl REFSEL_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> REFSEL_A {
|
||||
match self.bits {
|
||||
0 => REFSEL_A::SUPPLY_ONE_EIGHTH_PRESCALING,
|
||||
1 => REFSEL_A::SUPPLY_TWO_EIGHTHS_PRESCALING,
|
||||
2 => REFSEL_A::SUPPLY_THREE_EIGHTHS_PRESCALING,
|
||||
3 => REFSEL_A::SUPPLY_FOUR_EIGHTHS_PRESCALING,
|
||||
4 => REFSEL_A::SUPPLY_FIVE_EIGHTHS_PRESCALING,
|
||||
5 => REFSEL_A::SUPPLY_SIX_EIGHTHS_PRESCALING,
|
||||
6 => REFSEL_A::SUPPLY_SEVEN_EIGHTHS_PRESCALING,
|
||||
7 => REFSEL_A::AREF,
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `SUPPLY_ONE_EIGHTH_PRESCALING`"]
|
||||
#[inline(always)]
|
||||
pub fn is_supply_one_eighth_prescaling(&self) -> bool {
|
||||
*self == REFSEL_A::SUPPLY_ONE_EIGHTH_PRESCALING
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `SUPPLY_TWO_EIGHTHS_PRESCALING`"]
|
||||
#[inline(always)]
|
||||
pub fn is_supply_two_eighths_prescaling(&self) -> bool {
|
||||
*self == REFSEL_A::SUPPLY_TWO_EIGHTHS_PRESCALING
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `SUPPLY_THREE_EIGHTHS_PRESCALING`"]
|
||||
#[inline(always)]
|
||||
pub fn is_supply_three_eighths_prescaling(&self) -> bool {
|
||||
*self == REFSEL_A::SUPPLY_THREE_EIGHTHS_PRESCALING
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `SUPPLY_FOUR_EIGHTHS_PRESCALING`"]
|
||||
#[inline(always)]
|
||||
pub fn is_supply_four_eighths_prescaling(&self) -> bool {
|
||||
*self == REFSEL_A::SUPPLY_FOUR_EIGHTHS_PRESCALING
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `SUPPLY_FIVE_EIGHTHS_PRESCALING`"]
|
||||
#[inline(always)]
|
||||
pub fn is_supply_five_eighths_prescaling(&self) -> bool {
|
||||
*self == REFSEL_A::SUPPLY_FIVE_EIGHTHS_PRESCALING
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `SUPPLY_SIX_EIGHTHS_PRESCALING`"]
|
||||
#[inline(always)]
|
||||
pub fn is_supply_six_eighths_prescaling(&self) -> bool {
|
||||
*self == REFSEL_A::SUPPLY_SIX_EIGHTHS_PRESCALING
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `SUPPLY_SEVEN_EIGHTHS_PRESCALING`"]
|
||||
#[inline(always)]
|
||||
pub fn is_supply_seven_eighths_prescaling(&self) -> bool {
|
||||
*self == REFSEL_A::SUPPLY_SEVEN_EIGHTHS_PRESCALING
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `AREF`"]
|
||||
#[inline(always)]
|
||||
pub fn is_aref(&self) -> bool {
|
||||
*self == REFSEL_A::AREF
|
||||
}
|
||||
}
|
||||
#[doc = "Field `REFSEL` writer - Reference select."]
|
||||
pub type REFSEL_W<'a, const O: u8> =
|
||||
crate::FieldWriterSafe<'a, u32, REFSEL_SPEC, u8, REFSEL_A, 3, O>;
|
||||
impl<'a, const O: u8> REFSEL_W<'a, O> {
|
||||
#[doc = "Use supply with a 1/8 prescaler as reference."]
|
||||
#[inline(always)]
|
||||
pub fn supply_one_eighth_prescaling(self) -> &'a mut W {
|
||||
self.variant(REFSEL_A::SUPPLY_ONE_EIGHTH_PRESCALING)
|
||||
}
|
||||
#[doc = "Use supply with a 2/8 prescaler as reference."]
|
||||
#[inline(always)]
|
||||
pub fn supply_two_eighths_prescaling(self) -> &'a mut W {
|
||||
self.variant(REFSEL_A::SUPPLY_TWO_EIGHTHS_PRESCALING)
|
||||
}
|
||||
#[doc = "Use supply with a 3/8 prescaler as reference."]
|
||||
#[inline(always)]
|
||||
pub fn supply_three_eighths_prescaling(self) -> &'a mut W {
|
||||
self.variant(REFSEL_A::SUPPLY_THREE_EIGHTHS_PRESCALING)
|
||||
}
|
||||
#[doc = "Use supply with a 4/8 prescaler as reference."]
|
||||
#[inline(always)]
|
||||
pub fn supply_four_eighths_prescaling(self) -> &'a mut W {
|
||||
self.variant(REFSEL_A::SUPPLY_FOUR_EIGHTHS_PRESCALING)
|
||||
}
|
||||
#[doc = "Use supply with a 5/8 prescaler as reference."]
|
||||
#[inline(always)]
|
||||
pub fn supply_five_eighths_prescaling(self) -> &'a mut W {
|
||||
self.variant(REFSEL_A::SUPPLY_FIVE_EIGHTHS_PRESCALING)
|
||||
}
|
||||
#[doc = "Use supply with a 6/8 prescaler as reference."]
|
||||
#[inline(always)]
|
||||
pub fn supply_six_eighths_prescaling(self) -> &'a mut W {
|
||||
self.variant(REFSEL_A::SUPPLY_SIX_EIGHTHS_PRESCALING)
|
||||
}
|
||||
#[doc = "Use supply with a 7/8 prescaler as reference."]
|
||||
#[inline(always)]
|
||||
pub fn supply_seven_eighths_prescaling(self) -> &'a mut W {
|
||||
self.variant(REFSEL_A::SUPPLY_SEVEN_EIGHTHS_PRESCALING)
|
||||
}
|
||||
#[doc = "Use external analog reference as reference."]
|
||||
#[inline(always)]
|
||||
pub fn aref(self) -> &'a mut W {
|
||||
self.variant(REFSEL_A::AREF)
|
||||
}
|
||||
}
|
||||
impl R {
|
||||
#[doc = "Bits 0:2 - Reference select."]
|
||||
#[inline(always)]
|
||||
pub fn refsel(&self) -> REFSEL_R {
|
||||
REFSEL_R::new((self.bits & 7) as u8)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
#[doc = "Bits 0:2 - Reference select."]
|
||||
#[inline(always)]
|
||||
pub fn refsel(&mut self) -> REFSEL_W<0> {
|
||||
REFSEL_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 = "Reference select.\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 [refsel](index.html) module"]
|
||||
pub struct REFSEL_SPEC;
|
||||
impl crate::RegisterSpec for REFSEL_SPEC {
|
||||
type Ux = u32;
|
||||
}
|
||||
#[doc = "`read()` method returns [refsel::R](R) reader structure"]
|
||||
impl crate::Readable for REFSEL_SPEC {
|
||||
type Reader = R;
|
||||
}
|
||||
#[doc = "`write(|w| ..)` method takes [refsel::W](W) writer structure"]
|
||||
impl crate::Writable for REFSEL_SPEC {
|
||||
type Writer = W;
|
||||
}
|
||||
#[doc = "`reset()` method sets REFSEL to value 0"]
|
||||
impl crate::Resettable for REFSEL_SPEC {
|
||||
#[inline(always)]
|
||||
fn reset_value() -> Self::Ux {
|
||||
0
|
||||
}
|
||||
}
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
#[doc = "Register `RESULT` reader"]
|
||||
pub struct R(crate::R<RESULT_SPEC>);
|
||||
impl core::ops::Deref for R {
|
||||
type Target = crate::R<RESULT_SPEC>;
|
||||
#[inline(always)]
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
impl From<crate::R<RESULT_SPEC>> for R {
|
||||
#[inline(always)]
|
||||
fn from(reader: crate::R<RESULT_SPEC>) -> Self {
|
||||
R(reader)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `RESULT` reader - Result of last compare. Decision point SAMPLE task."]
|
||||
pub type RESULT_R = crate::BitReader<RESULT_A>;
|
||||
#[doc = "Result of last compare. Decision point SAMPLE task.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum RESULT_A {
|
||||
#[doc = "0: Input voltage is bellow the reference threshold."]
|
||||
BELOW = 0,
|
||||
#[doc = "1: Input voltage is above the reference threshold."]
|
||||
ABOVE = 1,
|
||||
}
|
||||
impl From<RESULT_A> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: RESULT_A) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
impl RESULT_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> RESULT_A {
|
||||
match self.bits {
|
||||
false => RESULT_A::BELOW,
|
||||
true => RESULT_A::ABOVE,
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `BELOW`"]
|
||||
#[inline(always)]
|
||||
pub fn is_below(&self) -> bool {
|
||||
*self == RESULT_A::BELOW
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ABOVE`"]
|
||||
#[inline(always)]
|
||||
pub fn is_above(&self) -> bool {
|
||||
*self == RESULT_A::ABOVE
|
||||
}
|
||||
}
|
||||
impl R {
|
||||
#[doc = "Bit 0 - Result of last compare. Decision point SAMPLE task."]
|
||||
#[inline(always)]
|
||||
pub fn result(&self) -> RESULT_R {
|
||||
RESULT_R::new((self.bits & 1) != 0)
|
||||
}
|
||||
}
|
||||
#[doc = "Result of last compare.\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 [result](index.html) module"]
|
||||
pub struct RESULT_SPEC;
|
||||
impl crate::RegisterSpec for RESULT_SPEC {
|
||||
type Ux = u32;
|
||||
}
|
||||
#[doc = "`read()` method returns [result::R](R) reader structure"]
|
||||
impl crate::Readable for RESULT_SPEC {
|
||||
type Reader = R;
|
||||
}
|
||||
#[doc = "`reset()` method sets RESULT to value 0"]
|
||||
impl crate::Resettable for RESULT_SPEC {
|
||||
#[inline(always)]
|
||||
fn reset_value() -> Self::Ux {
|
||||
0
|
||||
}
|
||||
}
|
||||
+367
@@ -0,0 +1,367 @@
|
||||
#[doc = "Register `SHORTS` reader"]
|
||||
pub struct R(crate::R<SHORTS_SPEC>);
|
||||
impl core::ops::Deref for R {
|
||||
type Target = crate::R<SHORTS_SPEC>;
|
||||
#[inline(always)]
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
impl From<crate::R<SHORTS_SPEC>> for R {
|
||||
#[inline(always)]
|
||||
fn from(reader: crate::R<SHORTS_SPEC>) -> Self {
|
||||
R(reader)
|
||||
}
|
||||
}
|
||||
#[doc = "Register `SHORTS` writer"]
|
||||
pub struct W(crate::W<SHORTS_SPEC>);
|
||||
impl core::ops::Deref for W {
|
||||
type Target = crate::W<SHORTS_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<SHORTS_SPEC>> for W {
|
||||
#[inline(always)]
|
||||
fn from(writer: crate::W<SHORTS_SPEC>) -> Self {
|
||||
W(writer)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `READY_SAMPLE` reader - Shortcut between READY event and SAMPLE task."]
|
||||
pub type READY_SAMPLE_R = crate::BitReader<READY_SAMPLE_A>;
|
||||
#[doc = "Shortcut between READY event and SAMPLE task.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum READY_SAMPLE_A {
|
||||
#[doc = "0: Shortcut disabled."]
|
||||
DISABLED = 0,
|
||||
#[doc = "1: Shortcut enabled."]
|
||||
ENABLED = 1,
|
||||
}
|
||||
impl From<READY_SAMPLE_A> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: READY_SAMPLE_A) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
impl READY_SAMPLE_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> READY_SAMPLE_A {
|
||||
match self.bits {
|
||||
false => READY_SAMPLE_A::DISABLED,
|
||||
true => READY_SAMPLE_A::ENABLED,
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `DISABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_disabled(&self) -> bool {
|
||||
*self == READY_SAMPLE_A::DISABLED
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ENABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_enabled(&self) -> bool {
|
||||
*self == READY_SAMPLE_A::ENABLED
|
||||
}
|
||||
}
|
||||
#[doc = "Field `READY_SAMPLE` writer - Shortcut between READY event and SAMPLE task."]
|
||||
pub type READY_SAMPLE_W<'a, const O: u8> =
|
||||
crate::BitWriter<'a, u32, SHORTS_SPEC, READY_SAMPLE_A, O>;
|
||||
impl<'a, const O: u8> READY_SAMPLE_W<'a, O> {
|
||||
#[doc = "Shortcut disabled."]
|
||||
#[inline(always)]
|
||||
pub fn disabled(self) -> &'a mut W {
|
||||
self.variant(READY_SAMPLE_A::DISABLED)
|
||||
}
|
||||
#[doc = "Shortcut enabled."]
|
||||
#[inline(always)]
|
||||
pub fn enabled(self) -> &'a mut W {
|
||||
self.variant(READY_SAMPLE_A::ENABLED)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `READY_STOP` reader - Shortcut between RADY event and STOP task."]
|
||||
pub type READY_STOP_R = crate::BitReader<READY_STOP_A>;
|
||||
#[doc = "Shortcut between RADY event and STOP task.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum READY_STOP_A {
|
||||
#[doc = "0: Shortcut disabled."]
|
||||
DISABLED = 0,
|
||||
#[doc = "1: Shortcut enabled."]
|
||||
ENABLED = 1,
|
||||
}
|
||||
impl From<READY_STOP_A> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: READY_STOP_A) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
impl READY_STOP_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> READY_STOP_A {
|
||||
match self.bits {
|
||||
false => READY_STOP_A::DISABLED,
|
||||
true => READY_STOP_A::ENABLED,
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `DISABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_disabled(&self) -> bool {
|
||||
*self == READY_STOP_A::DISABLED
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ENABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_enabled(&self) -> bool {
|
||||
*self == READY_STOP_A::ENABLED
|
||||
}
|
||||
}
|
||||
#[doc = "Field `READY_STOP` writer - Shortcut between RADY event and STOP task."]
|
||||
pub type READY_STOP_W<'a, const O: u8> = crate::BitWriter<'a, u32, SHORTS_SPEC, READY_STOP_A, O>;
|
||||
impl<'a, const O: u8> READY_STOP_W<'a, O> {
|
||||
#[doc = "Shortcut disabled."]
|
||||
#[inline(always)]
|
||||
pub fn disabled(self) -> &'a mut W {
|
||||
self.variant(READY_STOP_A::DISABLED)
|
||||
}
|
||||
#[doc = "Shortcut enabled."]
|
||||
#[inline(always)]
|
||||
pub fn enabled(self) -> &'a mut W {
|
||||
self.variant(READY_STOP_A::ENABLED)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `DOWN_STOP` reader - Shortcut between DOWN event and STOP task."]
|
||||
pub type DOWN_STOP_R = crate::BitReader<DOWN_STOP_A>;
|
||||
#[doc = "Shortcut between DOWN event and STOP task.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum DOWN_STOP_A {
|
||||
#[doc = "0: Shortcut disabled."]
|
||||
DISABLED = 0,
|
||||
#[doc = "1: Shortcut enabled."]
|
||||
ENABLED = 1,
|
||||
}
|
||||
impl From<DOWN_STOP_A> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: DOWN_STOP_A) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
impl DOWN_STOP_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> DOWN_STOP_A {
|
||||
match self.bits {
|
||||
false => DOWN_STOP_A::DISABLED,
|
||||
true => DOWN_STOP_A::ENABLED,
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `DISABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_disabled(&self) -> bool {
|
||||
*self == DOWN_STOP_A::DISABLED
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ENABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_enabled(&self) -> bool {
|
||||
*self == DOWN_STOP_A::ENABLED
|
||||
}
|
||||
}
|
||||
#[doc = "Field `DOWN_STOP` writer - Shortcut between DOWN event and STOP task."]
|
||||
pub type DOWN_STOP_W<'a, const O: u8> = crate::BitWriter<'a, u32, SHORTS_SPEC, DOWN_STOP_A, O>;
|
||||
impl<'a, const O: u8> DOWN_STOP_W<'a, O> {
|
||||
#[doc = "Shortcut disabled."]
|
||||
#[inline(always)]
|
||||
pub fn disabled(self) -> &'a mut W {
|
||||
self.variant(DOWN_STOP_A::DISABLED)
|
||||
}
|
||||
#[doc = "Shortcut enabled."]
|
||||
#[inline(always)]
|
||||
pub fn enabled(self) -> &'a mut W {
|
||||
self.variant(DOWN_STOP_A::ENABLED)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `UP_STOP` reader - Shortcut between UP event and STOP task."]
|
||||
pub type UP_STOP_R = crate::BitReader<UP_STOP_A>;
|
||||
#[doc = "Shortcut between UP event and STOP task.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum UP_STOP_A {
|
||||
#[doc = "0: Shortcut disabled."]
|
||||
DISABLED = 0,
|
||||
#[doc = "1: Shortcut enabled."]
|
||||
ENABLED = 1,
|
||||
}
|
||||
impl From<UP_STOP_A> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: UP_STOP_A) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
impl UP_STOP_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> UP_STOP_A {
|
||||
match self.bits {
|
||||
false => UP_STOP_A::DISABLED,
|
||||
true => UP_STOP_A::ENABLED,
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `DISABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_disabled(&self) -> bool {
|
||||
*self == UP_STOP_A::DISABLED
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ENABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_enabled(&self) -> bool {
|
||||
*self == UP_STOP_A::ENABLED
|
||||
}
|
||||
}
|
||||
#[doc = "Field `UP_STOP` writer - Shortcut between UP event and STOP task."]
|
||||
pub type UP_STOP_W<'a, const O: u8> = crate::BitWriter<'a, u32, SHORTS_SPEC, UP_STOP_A, O>;
|
||||
impl<'a, const O: u8> UP_STOP_W<'a, O> {
|
||||
#[doc = "Shortcut disabled."]
|
||||
#[inline(always)]
|
||||
pub fn disabled(self) -> &'a mut W {
|
||||
self.variant(UP_STOP_A::DISABLED)
|
||||
}
|
||||
#[doc = "Shortcut enabled."]
|
||||
#[inline(always)]
|
||||
pub fn enabled(self) -> &'a mut W {
|
||||
self.variant(UP_STOP_A::ENABLED)
|
||||
}
|
||||
}
|
||||
#[doc = "Field `CROSS_STOP` reader - Shortcut between CROSS event and STOP task."]
|
||||
pub type CROSS_STOP_R = crate::BitReader<CROSS_STOP_A>;
|
||||
#[doc = "Shortcut between CROSS event and STOP task.\n\nValue on reset: 0"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum CROSS_STOP_A {
|
||||
#[doc = "0: Shortcut disabled."]
|
||||
DISABLED = 0,
|
||||
#[doc = "1: Shortcut enabled."]
|
||||
ENABLED = 1,
|
||||
}
|
||||
impl From<CROSS_STOP_A> for bool {
|
||||
#[inline(always)]
|
||||
fn from(variant: CROSS_STOP_A) -> Self {
|
||||
variant as u8 != 0
|
||||
}
|
||||
}
|
||||
impl CROSS_STOP_R {
|
||||
#[doc = "Get enumerated values variant"]
|
||||
#[inline(always)]
|
||||
pub fn variant(&self) -> CROSS_STOP_A {
|
||||
match self.bits {
|
||||
false => CROSS_STOP_A::DISABLED,
|
||||
true => CROSS_STOP_A::ENABLED,
|
||||
}
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `DISABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_disabled(&self) -> bool {
|
||||
*self == CROSS_STOP_A::DISABLED
|
||||
}
|
||||
#[doc = "Checks if the value of the field is `ENABLED`"]
|
||||
#[inline(always)]
|
||||
pub fn is_enabled(&self) -> bool {
|
||||
*self == CROSS_STOP_A::ENABLED
|
||||
}
|
||||
}
|
||||
#[doc = "Field `CROSS_STOP` writer - Shortcut between CROSS event and STOP task."]
|
||||
pub type CROSS_STOP_W<'a, const O: u8> = crate::BitWriter<'a, u32, SHORTS_SPEC, CROSS_STOP_A, O>;
|
||||
impl<'a, const O: u8> CROSS_STOP_W<'a, O> {
|
||||
#[doc = "Shortcut disabled."]
|
||||
#[inline(always)]
|
||||
pub fn disabled(self) -> &'a mut W {
|
||||
self.variant(CROSS_STOP_A::DISABLED)
|
||||
}
|
||||
#[doc = "Shortcut enabled."]
|
||||
#[inline(always)]
|
||||
pub fn enabled(self) -> &'a mut W {
|
||||
self.variant(CROSS_STOP_A::ENABLED)
|
||||
}
|
||||
}
|
||||
impl R {
|
||||
#[doc = "Bit 0 - Shortcut between READY event and SAMPLE task."]
|
||||
#[inline(always)]
|
||||
pub fn ready_sample(&self) -> READY_SAMPLE_R {
|
||||
READY_SAMPLE_R::new((self.bits & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 1 - Shortcut between RADY event and STOP task."]
|
||||
#[inline(always)]
|
||||
pub fn ready_stop(&self) -> READY_STOP_R {
|
||||
READY_STOP_R::new(((self.bits >> 1) & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 2 - Shortcut between DOWN event and STOP task."]
|
||||
#[inline(always)]
|
||||
pub fn down_stop(&self) -> DOWN_STOP_R {
|
||||
DOWN_STOP_R::new(((self.bits >> 2) & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 3 - Shortcut between UP event and STOP task."]
|
||||
#[inline(always)]
|
||||
pub fn up_stop(&self) -> UP_STOP_R {
|
||||
UP_STOP_R::new(((self.bits >> 3) & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 4 - Shortcut between CROSS event and STOP task."]
|
||||
#[inline(always)]
|
||||
pub fn cross_stop(&self) -> CROSS_STOP_R {
|
||||
CROSS_STOP_R::new(((self.bits >> 4) & 1) != 0)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
#[doc = "Bit 0 - Shortcut between READY event and SAMPLE task."]
|
||||
#[inline(always)]
|
||||
pub fn ready_sample(&mut self) -> READY_SAMPLE_W<0> {
|
||||
READY_SAMPLE_W::new(self)
|
||||
}
|
||||
#[doc = "Bit 1 - Shortcut between RADY event and STOP task."]
|
||||
#[inline(always)]
|
||||
pub fn ready_stop(&mut self) -> READY_STOP_W<1> {
|
||||
READY_STOP_W::new(self)
|
||||
}
|
||||
#[doc = "Bit 2 - Shortcut between DOWN event and STOP task."]
|
||||
#[inline(always)]
|
||||
pub fn down_stop(&mut self) -> DOWN_STOP_W<2> {
|
||||
DOWN_STOP_W::new(self)
|
||||
}
|
||||
#[doc = "Bit 3 - Shortcut between UP event and STOP task."]
|
||||
#[inline(always)]
|
||||
pub fn up_stop(&mut self) -> UP_STOP_W<3> {
|
||||
UP_STOP_W::new(self)
|
||||
}
|
||||
#[doc = "Bit 4 - Shortcut between CROSS event and STOP task."]
|
||||
#[inline(always)]
|
||||
pub fn cross_stop(&mut self) -> CROSS_STOP_W<4> {
|
||||
CROSS_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 = "Shortcuts for the LPCOMP.\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 [shorts](index.html) module"]
|
||||
pub struct SHORTS_SPEC;
|
||||
impl crate::RegisterSpec for SHORTS_SPEC {
|
||||
type Ux = u32;
|
||||
}
|
||||
#[doc = "`read()` method returns [shorts::R](R) reader structure"]
|
||||
impl crate::Readable for SHORTS_SPEC {
|
||||
type Reader = R;
|
||||
}
|
||||
#[doc = "`write(|w| ..)` method takes [shorts::W](W) writer structure"]
|
||||
impl crate::Writable for SHORTS_SPEC {
|
||||
type Writer = W;
|
||||
}
|
||||
#[doc = "`reset()` method sets SHORTS to value 0"]
|
||||
impl crate::Resettable for SHORTS_SPEC {
|
||||
#[inline(always)]
|
||||
fn reset_value() -> Self::Ux {
|
||||
0
|
||||
}
|
||||
}
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
#[doc = "Register `TASKS_SAMPLE` writer"]
|
||||
pub struct W(crate::W<TASKS_SAMPLE_SPEC>);
|
||||
impl core::ops::Deref for W {
|
||||
type Target = crate::W<TASKS_SAMPLE_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_SAMPLE_SPEC>> for W {
|
||||
#[inline(always)]
|
||||
fn from(writer: crate::W<TASKS_SAMPLE_SPEC>) -> Self {
|
||||
W(writer)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
#[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 = "Sample comparator value.\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_sample](index.html) module"]
|
||||
pub struct TASKS_SAMPLE_SPEC;
|
||||
impl crate::RegisterSpec for TASKS_SAMPLE_SPEC {
|
||||
type Ux = u32;
|
||||
}
|
||||
#[doc = "`write(|w| ..)` method takes [tasks_sample::W](W) writer structure"]
|
||||
impl crate::Writable for TASKS_SAMPLE_SPEC {
|
||||
type Writer = W;
|
||||
}
|
||||
#[doc = "`reset()` method sets TASKS_SAMPLE to value 0"]
|
||||
impl crate::Resettable for TASKS_SAMPLE_SPEC {
|
||||
#[inline(always)]
|
||||
fn reset_value() -> Self::Ux {
|
||||
0
|
||||
}
|
||||
}
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
#[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)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
#[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 the comparator.\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
|
||||
}
|
||||
}
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
#[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)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
#[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 the comparator.\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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user