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>
1223 lines
41 KiB
Rust
1223 lines
41 KiB
Rust
#[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_START` reader - Shortcut between event READY and task START"]
|
|
pub type READY_START_R = crate::BitReader<READY_START_A>;
|
|
#[doc = "Shortcut between event READY and task START\n\nValue on reset: 0"]
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub enum READY_START_A {
|
|
#[doc = "0: Disable shortcut"]
|
|
DISABLED = 0,
|
|
#[doc = "1: Enable shortcut"]
|
|
ENABLED = 1,
|
|
}
|
|
impl From<READY_START_A> for bool {
|
|
#[inline(always)]
|
|
fn from(variant: READY_START_A) -> Self {
|
|
variant as u8 != 0
|
|
}
|
|
}
|
|
impl READY_START_R {
|
|
#[doc = "Get enumerated values variant"]
|
|
#[inline(always)]
|
|
pub fn variant(&self) -> READY_START_A {
|
|
match self.bits {
|
|
false => READY_START_A::DISABLED,
|
|
true => READY_START_A::ENABLED,
|
|
}
|
|
}
|
|
#[doc = "Checks if the value of the field is `DISABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_disabled(&self) -> bool {
|
|
*self == READY_START_A::DISABLED
|
|
}
|
|
#[doc = "Checks if the value of the field is `ENABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_enabled(&self) -> bool {
|
|
*self == READY_START_A::ENABLED
|
|
}
|
|
}
|
|
#[doc = "Field `READY_START` writer - Shortcut between event READY and task START"]
|
|
pub type READY_START_W<'a, const O: u8> = crate::BitWriter<'a, u32, SHORTS_SPEC, READY_START_A, O>;
|
|
impl<'a, const O: u8> READY_START_W<'a, O> {
|
|
#[doc = "Disable shortcut"]
|
|
#[inline(always)]
|
|
pub fn disabled(self) -> &'a mut W {
|
|
self.variant(READY_START_A::DISABLED)
|
|
}
|
|
#[doc = "Enable shortcut"]
|
|
#[inline(always)]
|
|
pub fn enabled(self) -> &'a mut W {
|
|
self.variant(READY_START_A::ENABLED)
|
|
}
|
|
}
|
|
#[doc = "Field `END_DISABLE` reader - Shortcut between event END and task DISABLE"]
|
|
pub type END_DISABLE_R = crate::BitReader<END_DISABLE_A>;
|
|
#[doc = "Shortcut between event END and task DISABLE\n\nValue on reset: 0"]
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub enum END_DISABLE_A {
|
|
#[doc = "0: Disable shortcut"]
|
|
DISABLED = 0,
|
|
#[doc = "1: Enable shortcut"]
|
|
ENABLED = 1,
|
|
}
|
|
impl From<END_DISABLE_A> for bool {
|
|
#[inline(always)]
|
|
fn from(variant: END_DISABLE_A) -> Self {
|
|
variant as u8 != 0
|
|
}
|
|
}
|
|
impl END_DISABLE_R {
|
|
#[doc = "Get enumerated values variant"]
|
|
#[inline(always)]
|
|
pub fn variant(&self) -> END_DISABLE_A {
|
|
match self.bits {
|
|
false => END_DISABLE_A::DISABLED,
|
|
true => END_DISABLE_A::ENABLED,
|
|
}
|
|
}
|
|
#[doc = "Checks if the value of the field is `DISABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_disabled(&self) -> bool {
|
|
*self == END_DISABLE_A::DISABLED
|
|
}
|
|
#[doc = "Checks if the value of the field is `ENABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_enabled(&self) -> bool {
|
|
*self == END_DISABLE_A::ENABLED
|
|
}
|
|
}
|
|
#[doc = "Field `END_DISABLE` writer - Shortcut between event END and task DISABLE"]
|
|
pub type END_DISABLE_W<'a, const O: u8> = crate::BitWriter<'a, u32, SHORTS_SPEC, END_DISABLE_A, O>;
|
|
impl<'a, const O: u8> END_DISABLE_W<'a, O> {
|
|
#[doc = "Disable shortcut"]
|
|
#[inline(always)]
|
|
pub fn disabled(self) -> &'a mut W {
|
|
self.variant(END_DISABLE_A::DISABLED)
|
|
}
|
|
#[doc = "Enable shortcut"]
|
|
#[inline(always)]
|
|
pub fn enabled(self) -> &'a mut W {
|
|
self.variant(END_DISABLE_A::ENABLED)
|
|
}
|
|
}
|
|
#[doc = "Field `DISABLED_TXEN` reader - Shortcut between event DISABLED and task TXEN"]
|
|
pub type DISABLED_TXEN_R = crate::BitReader<DISABLED_TXEN_A>;
|
|
#[doc = "Shortcut between event DISABLED and task TXEN\n\nValue on reset: 0"]
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub enum DISABLED_TXEN_A {
|
|
#[doc = "0: Disable shortcut"]
|
|
DISABLED = 0,
|
|
#[doc = "1: Enable shortcut"]
|
|
ENABLED = 1,
|
|
}
|
|
impl From<DISABLED_TXEN_A> for bool {
|
|
#[inline(always)]
|
|
fn from(variant: DISABLED_TXEN_A) -> Self {
|
|
variant as u8 != 0
|
|
}
|
|
}
|
|
impl DISABLED_TXEN_R {
|
|
#[doc = "Get enumerated values variant"]
|
|
#[inline(always)]
|
|
pub fn variant(&self) -> DISABLED_TXEN_A {
|
|
match self.bits {
|
|
false => DISABLED_TXEN_A::DISABLED,
|
|
true => DISABLED_TXEN_A::ENABLED,
|
|
}
|
|
}
|
|
#[doc = "Checks if the value of the field is `DISABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_disabled(&self) -> bool {
|
|
*self == DISABLED_TXEN_A::DISABLED
|
|
}
|
|
#[doc = "Checks if the value of the field is `ENABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_enabled(&self) -> bool {
|
|
*self == DISABLED_TXEN_A::ENABLED
|
|
}
|
|
}
|
|
#[doc = "Field `DISABLED_TXEN` writer - Shortcut between event DISABLED and task TXEN"]
|
|
pub type DISABLED_TXEN_W<'a, const O: u8> =
|
|
crate::BitWriter<'a, u32, SHORTS_SPEC, DISABLED_TXEN_A, O>;
|
|
impl<'a, const O: u8> DISABLED_TXEN_W<'a, O> {
|
|
#[doc = "Disable shortcut"]
|
|
#[inline(always)]
|
|
pub fn disabled(self) -> &'a mut W {
|
|
self.variant(DISABLED_TXEN_A::DISABLED)
|
|
}
|
|
#[doc = "Enable shortcut"]
|
|
#[inline(always)]
|
|
pub fn enabled(self) -> &'a mut W {
|
|
self.variant(DISABLED_TXEN_A::ENABLED)
|
|
}
|
|
}
|
|
#[doc = "Field `DISABLED_RXEN` reader - Shortcut between event DISABLED and task RXEN"]
|
|
pub type DISABLED_RXEN_R = crate::BitReader<DISABLED_RXEN_A>;
|
|
#[doc = "Shortcut between event DISABLED and task RXEN\n\nValue on reset: 0"]
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub enum DISABLED_RXEN_A {
|
|
#[doc = "0: Disable shortcut"]
|
|
DISABLED = 0,
|
|
#[doc = "1: Enable shortcut"]
|
|
ENABLED = 1,
|
|
}
|
|
impl From<DISABLED_RXEN_A> for bool {
|
|
#[inline(always)]
|
|
fn from(variant: DISABLED_RXEN_A) -> Self {
|
|
variant as u8 != 0
|
|
}
|
|
}
|
|
impl DISABLED_RXEN_R {
|
|
#[doc = "Get enumerated values variant"]
|
|
#[inline(always)]
|
|
pub fn variant(&self) -> DISABLED_RXEN_A {
|
|
match self.bits {
|
|
false => DISABLED_RXEN_A::DISABLED,
|
|
true => DISABLED_RXEN_A::ENABLED,
|
|
}
|
|
}
|
|
#[doc = "Checks if the value of the field is `DISABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_disabled(&self) -> bool {
|
|
*self == DISABLED_RXEN_A::DISABLED
|
|
}
|
|
#[doc = "Checks if the value of the field is `ENABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_enabled(&self) -> bool {
|
|
*self == DISABLED_RXEN_A::ENABLED
|
|
}
|
|
}
|
|
#[doc = "Field `DISABLED_RXEN` writer - Shortcut between event DISABLED and task RXEN"]
|
|
pub type DISABLED_RXEN_W<'a, const O: u8> =
|
|
crate::BitWriter<'a, u32, SHORTS_SPEC, DISABLED_RXEN_A, O>;
|
|
impl<'a, const O: u8> DISABLED_RXEN_W<'a, O> {
|
|
#[doc = "Disable shortcut"]
|
|
#[inline(always)]
|
|
pub fn disabled(self) -> &'a mut W {
|
|
self.variant(DISABLED_RXEN_A::DISABLED)
|
|
}
|
|
#[doc = "Enable shortcut"]
|
|
#[inline(always)]
|
|
pub fn enabled(self) -> &'a mut W {
|
|
self.variant(DISABLED_RXEN_A::ENABLED)
|
|
}
|
|
}
|
|
#[doc = "Field `ADDRESS_RSSISTART` reader - Shortcut between event ADDRESS and task RSSISTART"]
|
|
pub type ADDRESS_RSSISTART_R = crate::BitReader<ADDRESS_RSSISTART_A>;
|
|
#[doc = "Shortcut between event ADDRESS and task RSSISTART\n\nValue on reset: 0"]
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub enum ADDRESS_RSSISTART_A {
|
|
#[doc = "0: Disable shortcut"]
|
|
DISABLED = 0,
|
|
#[doc = "1: Enable shortcut"]
|
|
ENABLED = 1,
|
|
}
|
|
impl From<ADDRESS_RSSISTART_A> for bool {
|
|
#[inline(always)]
|
|
fn from(variant: ADDRESS_RSSISTART_A) -> Self {
|
|
variant as u8 != 0
|
|
}
|
|
}
|
|
impl ADDRESS_RSSISTART_R {
|
|
#[doc = "Get enumerated values variant"]
|
|
#[inline(always)]
|
|
pub fn variant(&self) -> ADDRESS_RSSISTART_A {
|
|
match self.bits {
|
|
false => ADDRESS_RSSISTART_A::DISABLED,
|
|
true => ADDRESS_RSSISTART_A::ENABLED,
|
|
}
|
|
}
|
|
#[doc = "Checks if the value of the field is `DISABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_disabled(&self) -> bool {
|
|
*self == ADDRESS_RSSISTART_A::DISABLED
|
|
}
|
|
#[doc = "Checks if the value of the field is `ENABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_enabled(&self) -> bool {
|
|
*self == ADDRESS_RSSISTART_A::ENABLED
|
|
}
|
|
}
|
|
#[doc = "Field `ADDRESS_RSSISTART` writer - Shortcut between event ADDRESS and task RSSISTART"]
|
|
pub type ADDRESS_RSSISTART_W<'a, const O: u8> =
|
|
crate::BitWriter<'a, u32, SHORTS_SPEC, ADDRESS_RSSISTART_A, O>;
|
|
impl<'a, const O: u8> ADDRESS_RSSISTART_W<'a, O> {
|
|
#[doc = "Disable shortcut"]
|
|
#[inline(always)]
|
|
pub fn disabled(self) -> &'a mut W {
|
|
self.variant(ADDRESS_RSSISTART_A::DISABLED)
|
|
}
|
|
#[doc = "Enable shortcut"]
|
|
#[inline(always)]
|
|
pub fn enabled(self) -> &'a mut W {
|
|
self.variant(ADDRESS_RSSISTART_A::ENABLED)
|
|
}
|
|
}
|
|
#[doc = "Field `END_START` reader - Shortcut between event END and task START"]
|
|
pub type END_START_R = crate::BitReader<END_START_A>;
|
|
#[doc = "Shortcut between event END and task START\n\nValue on reset: 0"]
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub enum END_START_A {
|
|
#[doc = "0: Disable shortcut"]
|
|
DISABLED = 0,
|
|
#[doc = "1: Enable shortcut"]
|
|
ENABLED = 1,
|
|
}
|
|
impl From<END_START_A> for bool {
|
|
#[inline(always)]
|
|
fn from(variant: END_START_A) -> Self {
|
|
variant as u8 != 0
|
|
}
|
|
}
|
|
impl END_START_R {
|
|
#[doc = "Get enumerated values variant"]
|
|
#[inline(always)]
|
|
pub fn variant(&self) -> END_START_A {
|
|
match self.bits {
|
|
false => END_START_A::DISABLED,
|
|
true => END_START_A::ENABLED,
|
|
}
|
|
}
|
|
#[doc = "Checks if the value of the field is `DISABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_disabled(&self) -> bool {
|
|
*self == END_START_A::DISABLED
|
|
}
|
|
#[doc = "Checks if the value of the field is `ENABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_enabled(&self) -> bool {
|
|
*self == END_START_A::ENABLED
|
|
}
|
|
}
|
|
#[doc = "Field `END_START` writer - Shortcut between event END and task START"]
|
|
pub type END_START_W<'a, const O: u8> = crate::BitWriter<'a, u32, SHORTS_SPEC, END_START_A, O>;
|
|
impl<'a, const O: u8> END_START_W<'a, O> {
|
|
#[doc = "Disable shortcut"]
|
|
#[inline(always)]
|
|
pub fn disabled(self) -> &'a mut W {
|
|
self.variant(END_START_A::DISABLED)
|
|
}
|
|
#[doc = "Enable shortcut"]
|
|
#[inline(always)]
|
|
pub fn enabled(self) -> &'a mut W {
|
|
self.variant(END_START_A::ENABLED)
|
|
}
|
|
}
|
|
#[doc = "Field `ADDRESS_BCSTART` reader - Shortcut between event ADDRESS and task BCSTART"]
|
|
pub type ADDRESS_BCSTART_R = crate::BitReader<ADDRESS_BCSTART_A>;
|
|
#[doc = "Shortcut between event ADDRESS and task BCSTART\n\nValue on reset: 0"]
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub enum ADDRESS_BCSTART_A {
|
|
#[doc = "0: Disable shortcut"]
|
|
DISABLED = 0,
|
|
#[doc = "1: Enable shortcut"]
|
|
ENABLED = 1,
|
|
}
|
|
impl From<ADDRESS_BCSTART_A> for bool {
|
|
#[inline(always)]
|
|
fn from(variant: ADDRESS_BCSTART_A) -> Self {
|
|
variant as u8 != 0
|
|
}
|
|
}
|
|
impl ADDRESS_BCSTART_R {
|
|
#[doc = "Get enumerated values variant"]
|
|
#[inline(always)]
|
|
pub fn variant(&self) -> ADDRESS_BCSTART_A {
|
|
match self.bits {
|
|
false => ADDRESS_BCSTART_A::DISABLED,
|
|
true => ADDRESS_BCSTART_A::ENABLED,
|
|
}
|
|
}
|
|
#[doc = "Checks if the value of the field is `DISABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_disabled(&self) -> bool {
|
|
*self == ADDRESS_BCSTART_A::DISABLED
|
|
}
|
|
#[doc = "Checks if the value of the field is `ENABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_enabled(&self) -> bool {
|
|
*self == ADDRESS_BCSTART_A::ENABLED
|
|
}
|
|
}
|
|
#[doc = "Field `ADDRESS_BCSTART` writer - Shortcut between event ADDRESS and task BCSTART"]
|
|
pub type ADDRESS_BCSTART_W<'a, const O: u8> =
|
|
crate::BitWriter<'a, u32, SHORTS_SPEC, ADDRESS_BCSTART_A, O>;
|
|
impl<'a, const O: u8> ADDRESS_BCSTART_W<'a, O> {
|
|
#[doc = "Disable shortcut"]
|
|
#[inline(always)]
|
|
pub fn disabled(self) -> &'a mut W {
|
|
self.variant(ADDRESS_BCSTART_A::DISABLED)
|
|
}
|
|
#[doc = "Enable shortcut"]
|
|
#[inline(always)]
|
|
pub fn enabled(self) -> &'a mut W {
|
|
self.variant(ADDRESS_BCSTART_A::ENABLED)
|
|
}
|
|
}
|
|
#[doc = "Field `DISABLED_RSSISTOP` reader - Shortcut between event DISABLED and task RSSISTOP"]
|
|
pub type DISABLED_RSSISTOP_R = crate::BitReader<DISABLED_RSSISTOP_A>;
|
|
#[doc = "Shortcut between event DISABLED and task RSSISTOP\n\nValue on reset: 0"]
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub enum DISABLED_RSSISTOP_A {
|
|
#[doc = "0: Disable shortcut"]
|
|
DISABLED = 0,
|
|
#[doc = "1: Enable shortcut"]
|
|
ENABLED = 1,
|
|
}
|
|
impl From<DISABLED_RSSISTOP_A> for bool {
|
|
#[inline(always)]
|
|
fn from(variant: DISABLED_RSSISTOP_A) -> Self {
|
|
variant as u8 != 0
|
|
}
|
|
}
|
|
impl DISABLED_RSSISTOP_R {
|
|
#[doc = "Get enumerated values variant"]
|
|
#[inline(always)]
|
|
pub fn variant(&self) -> DISABLED_RSSISTOP_A {
|
|
match self.bits {
|
|
false => DISABLED_RSSISTOP_A::DISABLED,
|
|
true => DISABLED_RSSISTOP_A::ENABLED,
|
|
}
|
|
}
|
|
#[doc = "Checks if the value of the field is `DISABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_disabled(&self) -> bool {
|
|
*self == DISABLED_RSSISTOP_A::DISABLED
|
|
}
|
|
#[doc = "Checks if the value of the field is `ENABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_enabled(&self) -> bool {
|
|
*self == DISABLED_RSSISTOP_A::ENABLED
|
|
}
|
|
}
|
|
#[doc = "Field `DISABLED_RSSISTOP` writer - Shortcut between event DISABLED and task RSSISTOP"]
|
|
pub type DISABLED_RSSISTOP_W<'a, const O: u8> =
|
|
crate::BitWriter<'a, u32, SHORTS_SPEC, DISABLED_RSSISTOP_A, O>;
|
|
impl<'a, const O: u8> DISABLED_RSSISTOP_W<'a, O> {
|
|
#[doc = "Disable shortcut"]
|
|
#[inline(always)]
|
|
pub fn disabled(self) -> &'a mut W {
|
|
self.variant(DISABLED_RSSISTOP_A::DISABLED)
|
|
}
|
|
#[doc = "Enable shortcut"]
|
|
#[inline(always)]
|
|
pub fn enabled(self) -> &'a mut W {
|
|
self.variant(DISABLED_RSSISTOP_A::ENABLED)
|
|
}
|
|
}
|
|
#[doc = "Field `RXREADY_CCASTART` reader - Shortcut between event RXREADY and task CCASTART"]
|
|
pub type RXREADY_CCASTART_R = crate::BitReader<RXREADY_CCASTART_A>;
|
|
#[doc = "Shortcut between event RXREADY and task CCASTART\n\nValue on reset: 0"]
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub enum RXREADY_CCASTART_A {
|
|
#[doc = "0: Disable shortcut"]
|
|
DISABLED = 0,
|
|
#[doc = "1: Enable shortcut"]
|
|
ENABLED = 1,
|
|
}
|
|
impl From<RXREADY_CCASTART_A> for bool {
|
|
#[inline(always)]
|
|
fn from(variant: RXREADY_CCASTART_A) -> Self {
|
|
variant as u8 != 0
|
|
}
|
|
}
|
|
impl RXREADY_CCASTART_R {
|
|
#[doc = "Get enumerated values variant"]
|
|
#[inline(always)]
|
|
pub fn variant(&self) -> RXREADY_CCASTART_A {
|
|
match self.bits {
|
|
false => RXREADY_CCASTART_A::DISABLED,
|
|
true => RXREADY_CCASTART_A::ENABLED,
|
|
}
|
|
}
|
|
#[doc = "Checks if the value of the field is `DISABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_disabled(&self) -> bool {
|
|
*self == RXREADY_CCASTART_A::DISABLED
|
|
}
|
|
#[doc = "Checks if the value of the field is `ENABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_enabled(&self) -> bool {
|
|
*self == RXREADY_CCASTART_A::ENABLED
|
|
}
|
|
}
|
|
#[doc = "Field `RXREADY_CCASTART` writer - Shortcut between event RXREADY and task CCASTART"]
|
|
pub type RXREADY_CCASTART_W<'a, const O: u8> =
|
|
crate::BitWriter<'a, u32, SHORTS_SPEC, RXREADY_CCASTART_A, O>;
|
|
impl<'a, const O: u8> RXREADY_CCASTART_W<'a, O> {
|
|
#[doc = "Disable shortcut"]
|
|
#[inline(always)]
|
|
pub fn disabled(self) -> &'a mut W {
|
|
self.variant(RXREADY_CCASTART_A::DISABLED)
|
|
}
|
|
#[doc = "Enable shortcut"]
|
|
#[inline(always)]
|
|
pub fn enabled(self) -> &'a mut W {
|
|
self.variant(RXREADY_CCASTART_A::ENABLED)
|
|
}
|
|
}
|
|
#[doc = "Field `CCAIDLE_TXEN` reader - Shortcut between event CCAIDLE and task TXEN"]
|
|
pub type CCAIDLE_TXEN_R = crate::BitReader<CCAIDLE_TXEN_A>;
|
|
#[doc = "Shortcut between event CCAIDLE and task TXEN\n\nValue on reset: 0"]
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub enum CCAIDLE_TXEN_A {
|
|
#[doc = "0: Disable shortcut"]
|
|
DISABLED = 0,
|
|
#[doc = "1: Enable shortcut"]
|
|
ENABLED = 1,
|
|
}
|
|
impl From<CCAIDLE_TXEN_A> for bool {
|
|
#[inline(always)]
|
|
fn from(variant: CCAIDLE_TXEN_A) -> Self {
|
|
variant as u8 != 0
|
|
}
|
|
}
|
|
impl CCAIDLE_TXEN_R {
|
|
#[doc = "Get enumerated values variant"]
|
|
#[inline(always)]
|
|
pub fn variant(&self) -> CCAIDLE_TXEN_A {
|
|
match self.bits {
|
|
false => CCAIDLE_TXEN_A::DISABLED,
|
|
true => CCAIDLE_TXEN_A::ENABLED,
|
|
}
|
|
}
|
|
#[doc = "Checks if the value of the field is `DISABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_disabled(&self) -> bool {
|
|
*self == CCAIDLE_TXEN_A::DISABLED
|
|
}
|
|
#[doc = "Checks if the value of the field is `ENABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_enabled(&self) -> bool {
|
|
*self == CCAIDLE_TXEN_A::ENABLED
|
|
}
|
|
}
|
|
#[doc = "Field `CCAIDLE_TXEN` writer - Shortcut between event CCAIDLE and task TXEN"]
|
|
pub type CCAIDLE_TXEN_W<'a, const O: u8> =
|
|
crate::BitWriter<'a, u32, SHORTS_SPEC, CCAIDLE_TXEN_A, O>;
|
|
impl<'a, const O: u8> CCAIDLE_TXEN_W<'a, O> {
|
|
#[doc = "Disable shortcut"]
|
|
#[inline(always)]
|
|
pub fn disabled(self) -> &'a mut W {
|
|
self.variant(CCAIDLE_TXEN_A::DISABLED)
|
|
}
|
|
#[doc = "Enable shortcut"]
|
|
#[inline(always)]
|
|
pub fn enabled(self) -> &'a mut W {
|
|
self.variant(CCAIDLE_TXEN_A::ENABLED)
|
|
}
|
|
}
|
|
#[doc = "Field `CCABUSY_DISABLE` reader - Shortcut between event CCABUSY and task DISABLE"]
|
|
pub type CCABUSY_DISABLE_R = crate::BitReader<CCABUSY_DISABLE_A>;
|
|
#[doc = "Shortcut between event CCABUSY and task DISABLE\n\nValue on reset: 0"]
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub enum CCABUSY_DISABLE_A {
|
|
#[doc = "0: Disable shortcut"]
|
|
DISABLED = 0,
|
|
#[doc = "1: Enable shortcut"]
|
|
ENABLED = 1,
|
|
}
|
|
impl From<CCABUSY_DISABLE_A> for bool {
|
|
#[inline(always)]
|
|
fn from(variant: CCABUSY_DISABLE_A) -> Self {
|
|
variant as u8 != 0
|
|
}
|
|
}
|
|
impl CCABUSY_DISABLE_R {
|
|
#[doc = "Get enumerated values variant"]
|
|
#[inline(always)]
|
|
pub fn variant(&self) -> CCABUSY_DISABLE_A {
|
|
match self.bits {
|
|
false => CCABUSY_DISABLE_A::DISABLED,
|
|
true => CCABUSY_DISABLE_A::ENABLED,
|
|
}
|
|
}
|
|
#[doc = "Checks if the value of the field is `DISABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_disabled(&self) -> bool {
|
|
*self == CCABUSY_DISABLE_A::DISABLED
|
|
}
|
|
#[doc = "Checks if the value of the field is `ENABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_enabled(&self) -> bool {
|
|
*self == CCABUSY_DISABLE_A::ENABLED
|
|
}
|
|
}
|
|
#[doc = "Field `CCABUSY_DISABLE` writer - Shortcut between event CCABUSY and task DISABLE"]
|
|
pub type CCABUSY_DISABLE_W<'a, const O: u8> =
|
|
crate::BitWriter<'a, u32, SHORTS_SPEC, CCABUSY_DISABLE_A, O>;
|
|
impl<'a, const O: u8> CCABUSY_DISABLE_W<'a, O> {
|
|
#[doc = "Disable shortcut"]
|
|
#[inline(always)]
|
|
pub fn disabled(self) -> &'a mut W {
|
|
self.variant(CCABUSY_DISABLE_A::DISABLED)
|
|
}
|
|
#[doc = "Enable shortcut"]
|
|
#[inline(always)]
|
|
pub fn enabled(self) -> &'a mut W {
|
|
self.variant(CCABUSY_DISABLE_A::ENABLED)
|
|
}
|
|
}
|
|
#[doc = "Field `FRAMESTART_BCSTART` reader - Shortcut between event FRAMESTART and task BCSTART"]
|
|
pub type FRAMESTART_BCSTART_R = crate::BitReader<FRAMESTART_BCSTART_A>;
|
|
#[doc = "Shortcut between event FRAMESTART and task BCSTART\n\nValue on reset: 0"]
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub enum FRAMESTART_BCSTART_A {
|
|
#[doc = "0: Disable shortcut"]
|
|
DISABLED = 0,
|
|
#[doc = "1: Enable shortcut"]
|
|
ENABLED = 1,
|
|
}
|
|
impl From<FRAMESTART_BCSTART_A> for bool {
|
|
#[inline(always)]
|
|
fn from(variant: FRAMESTART_BCSTART_A) -> Self {
|
|
variant as u8 != 0
|
|
}
|
|
}
|
|
impl FRAMESTART_BCSTART_R {
|
|
#[doc = "Get enumerated values variant"]
|
|
#[inline(always)]
|
|
pub fn variant(&self) -> FRAMESTART_BCSTART_A {
|
|
match self.bits {
|
|
false => FRAMESTART_BCSTART_A::DISABLED,
|
|
true => FRAMESTART_BCSTART_A::ENABLED,
|
|
}
|
|
}
|
|
#[doc = "Checks if the value of the field is `DISABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_disabled(&self) -> bool {
|
|
*self == FRAMESTART_BCSTART_A::DISABLED
|
|
}
|
|
#[doc = "Checks if the value of the field is `ENABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_enabled(&self) -> bool {
|
|
*self == FRAMESTART_BCSTART_A::ENABLED
|
|
}
|
|
}
|
|
#[doc = "Field `FRAMESTART_BCSTART` writer - Shortcut between event FRAMESTART and task BCSTART"]
|
|
pub type FRAMESTART_BCSTART_W<'a, const O: u8> =
|
|
crate::BitWriter<'a, u32, SHORTS_SPEC, FRAMESTART_BCSTART_A, O>;
|
|
impl<'a, const O: u8> FRAMESTART_BCSTART_W<'a, O> {
|
|
#[doc = "Disable shortcut"]
|
|
#[inline(always)]
|
|
pub fn disabled(self) -> &'a mut W {
|
|
self.variant(FRAMESTART_BCSTART_A::DISABLED)
|
|
}
|
|
#[doc = "Enable shortcut"]
|
|
#[inline(always)]
|
|
pub fn enabled(self) -> &'a mut W {
|
|
self.variant(FRAMESTART_BCSTART_A::ENABLED)
|
|
}
|
|
}
|
|
#[doc = "Field `READY_EDSTART` reader - Shortcut between event READY and task EDSTART"]
|
|
pub type READY_EDSTART_R = crate::BitReader<READY_EDSTART_A>;
|
|
#[doc = "Shortcut between event READY and task EDSTART\n\nValue on reset: 0"]
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub enum READY_EDSTART_A {
|
|
#[doc = "0: Disable shortcut"]
|
|
DISABLED = 0,
|
|
#[doc = "1: Enable shortcut"]
|
|
ENABLED = 1,
|
|
}
|
|
impl From<READY_EDSTART_A> for bool {
|
|
#[inline(always)]
|
|
fn from(variant: READY_EDSTART_A) -> Self {
|
|
variant as u8 != 0
|
|
}
|
|
}
|
|
impl READY_EDSTART_R {
|
|
#[doc = "Get enumerated values variant"]
|
|
#[inline(always)]
|
|
pub fn variant(&self) -> READY_EDSTART_A {
|
|
match self.bits {
|
|
false => READY_EDSTART_A::DISABLED,
|
|
true => READY_EDSTART_A::ENABLED,
|
|
}
|
|
}
|
|
#[doc = "Checks if the value of the field is `DISABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_disabled(&self) -> bool {
|
|
*self == READY_EDSTART_A::DISABLED
|
|
}
|
|
#[doc = "Checks if the value of the field is `ENABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_enabled(&self) -> bool {
|
|
*self == READY_EDSTART_A::ENABLED
|
|
}
|
|
}
|
|
#[doc = "Field `READY_EDSTART` writer - Shortcut between event READY and task EDSTART"]
|
|
pub type READY_EDSTART_W<'a, const O: u8> =
|
|
crate::BitWriter<'a, u32, SHORTS_SPEC, READY_EDSTART_A, O>;
|
|
impl<'a, const O: u8> READY_EDSTART_W<'a, O> {
|
|
#[doc = "Disable shortcut"]
|
|
#[inline(always)]
|
|
pub fn disabled(self) -> &'a mut W {
|
|
self.variant(READY_EDSTART_A::DISABLED)
|
|
}
|
|
#[doc = "Enable shortcut"]
|
|
#[inline(always)]
|
|
pub fn enabled(self) -> &'a mut W {
|
|
self.variant(READY_EDSTART_A::ENABLED)
|
|
}
|
|
}
|
|
#[doc = "Field `EDEND_DISABLE` reader - Shortcut between event EDEND and task DISABLE"]
|
|
pub type EDEND_DISABLE_R = crate::BitReader<EDEND_DISABLE_A>;
|
|
#[doc = "Shortcut between event EDEND and task DISABLE\n\nValue on reset: 0"]
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub enum EDEND_DISABLE_A {
|
|
#[doc = "0: Disable shortcut"]
|
|
DISABLED = 0,
|
|
#[doc = "1: Enable shortcut"]
|
|
ENABLED = 1,
|
|
}
|
|
impl From<EDEND_DISABLE_A> for bool {
|
|
#[inline(always)]
|
|
fn from(variant: EDEND_DISABLE_A) -> Self {
|
|
variant as u8 != 0
|
|
}
|
|
}
|
|
impl EDEND_DISABLE_R {
|
|
#[doc = "Get enumerated values variant"]
|
|
#[inline(always)]
|
|
pub fn variant(&self) -> EDEND_DISABLE_A {
|
|
match self.bits {
|
|
false => EDEND_DISABLE_A::DISABLED,
|
|
true => EDEND_DISABLE_A::ENABLED,
|
|
}
|
|
}
|
|
#[doc = "Checks if the value of the field is `DISABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_disabled(&self) -> bool {
|
|
*self == EDEND_DISABLE_A::DISABLED
|
|
}
|
|
#[doc = "Checks if the value of the field is `ENABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_enabled(&self) -> bool {
|
|
*self == EDEND_DISABLE_A::ENABLED
|
|
}
|
|
}
|
|
#[doc = "Field `EDEND_DISABLE` writer - Shortcut between event EDEND and task DISABLE"]
|
|
pub type EDEND_DISABLE_W<'a, const O: u8> =
|
|
crate::BitWriter<'a, u32, SHORTS_SPEC, EDEND_DISABLE_A, O>;
|
|
impl<'a, const O: u8> EDEND_DISABLE_W<'a, O> {
|
|
#[doc = "Disable shortcut"]
|
|
#[inline(always)]
|
|
pub fn disabled(self) -> &'a mut W {
|
|
self.variant(EDEND_DISABLE_A::DISABLED)
|
|
}
|
|
#[doc = "Enable shortcut"]
|
|
#[inline(always)]
|
|
pub fn enabled(self) -> &'a mut W {
|
|
self.variant(EDEND_DISABLE_A::ENABLED)
|
|
}
|
|
}
|
|
#[doc = "Field `CCAIDLE_STOP` reader - Shortcut between event CCAIDLE and task STOP"]
|
|
pub type CCAIDLE_STOP_R = crate::BitReader<CCAIDLE_STOP_A>;
|
|
#[doc = "Shortcut between event CCAIDLE and task STOP\n\nValue on reset: 0"]
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub enum CCAIDLE_STOP_A {
|
|
#[doc = "0: Disable shortcut"]
|
|
DISABLED = 0,
|
|
#[doc = "1: Enable shortcut"]
|
|
ENABLED = 1,
|
|
}
|
|
impl From<CCAIDLE_STOP_A> for bool {
|
|
#[inline(always)]
|
|
fn from(variant: CCAIDLE_STOP_A) -> Self {
|
|
variant as u8 != 0
|
|
}
|
|
}
|
|
impl CCAIDLE_STOP_R {
|
|
#[doc = "Get enumerated values variant"]
|
|
#[inline(always)]
|
|
pub fn variant(&self) -> CCAIDLE_STOP_A {
|
|
match self.bits {
|
|
false => CCAIDLE_STOP_A::DISABLED,
|
|
true => CCAIDLE_STOP_A::ENABLED,
|
|
}
|
|
}
|
|
#[doc = "Checks if the value of the field is `DISABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_disabled(&self) -> bool {
|
|
*self == CCAIDLE_STOP_A::DISABLED
|
|
}
|
|
#[doc = "Checks if the value of the field is `ENABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_enabled(&self) -> bool {
|
|
*self == CCAIDLE_STOP_A::ENABLED
|
|
}
|
|
}
|
|
#[doc = "Field `CCAIDLE_STOP` writer - Shortcut between event CCAIDLE and task STOP"]
|
|
pub type CCAIDLE_STOP_W<'a, const O: u8> =
|
|
crate::BitWriter<'a, u32, SHORTS_SPEC, CCAIDLE_STOP_A, O>;
|
|
impl<'a, const O: u8> CCAIDLE_STOP_W<'a, O> {
|
|
#[doc = "Disable shortcut"]
|
|
#[inline(always)]
|
|
pub fn disabled(self) -> &'a mut W {
|
|
self.variant(CCAIDLE_STOP_A::DISABLED)
|
|
}
|
|
#[doc = "Enable shortcut"]
|
|
#[inline(always)]
|
|
pub fn enabled(self) -> &'a mut W {
|
|
self.variant(CCAIDLE_STOP_A::ENABLED)
|
|
}
|
|
}
|
|
#[doc = "Field `TXREADY_START` reader - Shortcut between event TXREADY and task START"]
|
|
pub type TXREADY_START_R = crate::BitReader<TXREADY_START_A>;
|
|
#[doc = "Shortcut between event TXREADY and task START\n\nValue on reset: 0"]
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub enum TXREADY_START_A {
|
|
#[doc = "0: Disable shortcut"]
|
|
DISABLED = 0,
|
|
#[doc = "1: Enable shortcut"]
|
|
ENABLED = 1,
|
|
}
|
|
impl From<TXREADY_START_A> for bool {
|
|
#[inline(always)]
|
|
fn from(variant: TXREADY_START_A) -> Self {
|
|
variant as u8 != 0
|
|
}
|
|
}
|
|
impl TXREADY_START_R {
|
|
#[doc = "Get enumerated values variant"]
|
|
#[inline(always)]
|
|
pub fn variant(&self) -> TXREADY_START_A {
|
|
match self.bits {
|
|
false => TXREADY_START_A::DISABLED,
|
|
true => TXREADY_START_A::ENABLED,
|
|
}
|
|
}
|
|
#[doc = "Checks if the value of the field is `DISABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_disabled(&self) -> bool {
|
|
*self == TXREADY_START_A::DISABLED
|
|
}
|
|
#[doc = "Checks if the value of the field is `ENABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_enabled(&self) -> bool {
|
|
*self == TXREADY_START_A::ENABLED
|
|
}
|
|
}
|
|
#[doc = "Field `TXREADY_START` writer - Shortcut between event TXREADY and task START"]
|
|
pub type TXREADY_START_W<'a, const O: u8> =
|
|
crate::BitWriter<'a, u32, SHORTS_SPEC, TXREADY_START_A, O>;
|
|
impl<'a, const O: u8> TXREADY_START_W<'a, O> {
|
|
#[doc = "Disable shortcut"]
|
|
#[inline(always)]
|
|
pub fn disabled(self) -> &'a mut W {
|
|
self.variant(TXREADY_START_A::DISABLED)
|
|
}
|
|
#[doc = "Enable shortcut"]
|
|
#[inline(always)]
|
|
pub fn enabled(self) -> &'a mut W {
|
|
self.variant(TXREADY_START_A::ENABLED)
|
|
}
|
|
}
|
|
#[doc = "Field `RXREADY_START` reader - Shortcut between event RXREADY and task START"]
|
|
pub type RXREADY_START_R = crate::BitReader<RXREADY_START_A>;
|
|
#[doc = "Shortcut between event RXREADY and task START\n\nValue on reset: 0"]
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub enum RXREADY_START_A {
|
|
#[doc = "0: Disable shortcut"]
|
|
DISABLED = 0,
|
|
#[doc = "1: Enable shortcut"]
|
|
ENABLED = 1,
|
|
}
|
|
impl From<RXREADY_START_A> for bool {
|
|
#[inline(always)]
|
|
fn from(variant: RXREADY_START_A) -> Self {
|
|
variant as u8 != 0
|
|
}
|
|
}
|
|
impl RXREADY_START_R {
|
|
#[doc = "Get enumerated values variant"]
|
|
#[inline(always)]
|
|
pub fn variant(&self) -> RXREADY_START_A {
|
|
match self.bits {
|
|
false => RXREADY_START_A::DISABLED,
|
|
true => RXREADY_START_A::ENABLED,
|
|
}
|
|
}
|
|
#[doc = "Checks if the value of the field is `DISABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_disabled(&self) -> bool {
|
|
*self == RXREADY_START_A::DISABLED
|
|
}
|
|
#[doc = "Checks if the value of the field is `ENABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_enabled(&self) -> bool {
|
|
*self == RXREADY_START_A::ENABLED
|
|
}
|
|
}
|
|
#[doc = "Field `RXREADY_START` writer - Shortcut between event RXREADY and task START"]
|
|
pub type RXREADY_START_W<'a, const O: u8> =
|
|
crate::BitWriter<'a, u32, SHORTS_SPEC, RXREADY_START_A, O>;
|
|
impl<'a, const O: u8> RXREADY_START_W<'a, O> {
|
|
#[doc = "Disable shortcut"]
|
|
#[inline(always)]
|
|
pub fn disabled(self) -> &'a mut W {
|
|
self.variant(RXREADY_START_A::DISABLED)
|
|
}
|
|
#[doc = "Enable shortcut"]
|
|
#[inline(always)]
|
|
pub fn enabled(self) -> &'a mut W {
|
|
self.variant(RXREADY_START_A::ENABLED)
|
|
}
|
|
}
|
|
#[doc = "Field `PHYEND_DISABLE` reader - Shortcut between event PHYEND and task DISABLE"]
|
|
pub type PHYEND_DISABLE_R = crate::BitReader<PHYEND_DISABLE_A>;
|
|
#[doc = "Shortcut between event PHYEND and task DISABLE\n\nValue on reset: 0"]
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub enum PHYEND_DISABLE_A {
|
|
#[doc = "0: Disable shortcut"]
|
|
DISABLED = 0,
|
|
#[doc = "1: Enable shortcut"]
|
|
ENABLED = 1,
|
|
}
|
|
impl From<PHYEND_DISABLE_A> for bool {
|
|
#[inline(always)]
|
|
fn from(variant: PHYEND_DISABLE_A) -> Self {
|
|
variant as u8 != 0
|
|
}
|
|
}
|
|
impl PHYEND_DISABLE_R {
|
|
#[doc = "Get enumerated values variant"]
|
|
#[inline(always)]
|
|
pub fn variant(&self) -> PHYEND_DISABLE_A {
|
|
match self.bits {
|
|
false => PHYEND_DISABLE_A::DISABLED,
|
|
true => PHYEND_DISABLE_A::ENABLED,
|
|
}
|
|
}
|
|
#[doc = "Checks if the value of the field is `DISABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_disabled(&self) -> bool {
|
|
*self == PHYEND_DISABLE_A::DISABLED
|
|
}
|
|
#[doc = "Checks if the value of the field is `ENABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_enabled(&self) -> bool {
|
|
*self == PHYEND_DISABLE_A::ENABLED
|
|
}
|
|
}
|
|
#[doc = "Field `PHYEND_DISABLE` writer - Shortcut between event PHYEND and task DISABLE"]
|
|
pub type PHYEND_DISABLE_W<'a, const O: u8> =
|
|
crate::BitWriter<'a, u32, SHORTS_SPEC, PHYEND_DISABLE_A, O>;
|
|
impl<'a, const O: u8> PHYEND_DISABLE_W<'a, O> {
|
|
#[doc = "Disable shortcut"]
|
|
#[inline(always)]
|
|
pub fn disabled(self) -> &'a mut W {
|
|
self.variant(PHYEND_DISABLE_A::DISABLED)
|
|
}
|
|
#[doc = "Enable shortcut"]
|
|
#[inline(always)]
|
|
pub fn enabled(self) -> &'a mut W {
|
|
self.variant(PHYEND_DISABLE_A::ENABLED)
|
|
}
|
|
}
|
|
#[doc = "Field `PHYEND_START` reader - Shortcut between event PHYEND and task START"]
|
|
pub type PHYEND_START_R = crate::BitReader<PHYEND_START_A>;
|
|
#[doc = "Shortcut between event PHYEND and task START\n\nValue on reset: 0"]
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub enum PHYEND_START_A {
|
|
#[doc = "0: Disable shortcut"]
|
|
DISABLED = 0,
|
|
#[doc = "1: Enable shortcut"]
|
|
ENABLED = 1,
|
|
}
|
|
impl From<PHYEND_START_A> for bool {
|
|
#[inline(always)]
|
|
fn from(variant: PHYEND_START_A) -> Self {
|
|
variant as u8 != 0
|
|
}
|
|
}
|
|
impl PHYEND_START_R {
|
|
#[doc = "Get enumerated values variant"]
|
|
#[inline(always)]
|
|
pub fn variant(&self) -> PHYEND_START_A {
|
|
match self.bits {
|
|
false => PHYEND_START_A::DISABLED,
|
|
true => PHYEND_START_A::ENABLED,
|
|
}
|
|
}
|
|
#[doc = "Checks if the value of the field is `DISABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_disabled(&self) -> bool {
|
|
*self == PHYEND_START_A::DISABLED
|
|
}
|
|
#[doc = "Checks if the value of the field is `ENABLED`"]
|
|
#[inline(always)]
|
|
pub fn is_enabled(&self) -> bool {
|
|
*self == PHYEND_START_A::ENABLED
|
|
}
|
|
}
|
|
#[doc = "Field `PHYEND_START` writer - Shortcut between event PHYEND and task START"]
|
|
pub type PHYEND_START_W<'a, const O: u8> =
|
|
crate::BitWriter<'a, u32, SHORTS_SPEC, PHYEND_START_A, O>;
|
|
impl<'a, const O: u8> PHYEND_START_W<'a, O> {
|
|
#[doc = "Disable shortcut"]
|
|
#[inline(always)]
|
|
pub fn disabled(self) -> &'a mut W {
|
|
self.variant(PHYEND_START_A::DISABLED)
|
|
}
|
|
#[doc = "Enable shortcut"]
|
|
#[inline(always)]
|
|
pub fn enabled(self) -> &'a mut W {
|
|
self.variant(PHYEND_START_A::ENABLED)
|
|
}
|
|
}
|
|
impl R {
|
|
#[doc = "Bit 0 - Shortcut between event READY and task START"]
|
|
#[inline(always)]
|
|
pub fn ready_start(&self) -> READY_START_R {
|
|
READY_START_R::new((self.bits & 1) != 0)
|
|
}
|
|
#[doc = "Bit 1 - Shortcut between event END and task DISABLE"]
|
|
#[inline(always)]
|
|
pub fn end_disable(&self) -> END_DISABLE_R {
|
|
END_DISABLE_R::new(((self.bits >> 1) & 1) != 0)
|
|
}
|
|
#[doc = "Bit 2 - Shortcut between event DISABLED and task TXEN"]
|
|
#[inline(always)]
|
|
pub fn disabled_txen(&self) -> DISABLED_TXEN_R {
|
|
DISABLED_TXEN_R::new(((self.bits >> 2) & 1) != 0)
|
|
}
|
|
#[doc = "Bit 3 - Shortcut between event DISABLED and task RXEN"]
|
|
#[inline(always)]
|
|
pub fn disabled_rxen(&self) -> DISABLED_RXEN_R {
|
|
DISABLED_RXEN_R::new(((self.bits >> 3) & 1) != 0)
|
|
}
|
|
#[doc = "Bit 4 - Shortcut between event ADDRESS and task RSSISTART"]
|
|
#[inline(always)]
|
|
pub fn address_rssistart(&self) -> ADDRESS_RSSISTART_R {
|
|
ADDRESS_RSSISTART_R::new(((self.bits >> 4) & 1) != 0)
|
|
}
|
|
#[doc = "Bit 5 - Shortcut between event END and task START"]
|
|
#[inline(always)]
|
|
pub fn end_start(&self) -> END_START_R {
|
|
END_START_R::new(((self.bits >> 5) & 1) != 0)
|
|
}
|
|
#[doc = "Bit 6 - Shortcut between event ADDRESS and task BCSTART"]
|
|
#[inline(always)]
|
|
pub fn address_bcstart(&self) -> ADDRESS_BCSTART_R {
|
|
ADDRESS_BCSTART_R::new(((self.bits >> 6) & 1) != 0)
|
|
}
|
|
#[doc = "Bit 8 - Shortcut between event DISABLED and task RSSISTOP"]
|
|
#[inline(always)]
|
|
pub fn disabled_rssistop(&self) -> DISABLED_RSSISTOP_R {
|
|
DISABLED_RSSISTOP_R::new(((self.bits >> 8) & 1) != 0)
|
|
}
|
|
#[doc = "Bit 11 - Shortcut between event RXREADY and task CCASTART"]
|
|
#[inline(always)]
|
|
pub fn rxready_ccastart(&self) -> RXREADY_CCASTART_R {
|
|
RXREADY_CCASTART_R::new(((self.bits >> 11) & 1) != 0)
|
|
}
|
|
#[doc = "Bit 12 - Shortcut between event CCAIDLE and task TXEN"]
|
|
#[inline(always)]
|
|
pub fn ccaidle_txen(&self) -> CCAIDLE_TXEN_R {
|
|
CCAIDLE_TXEN_R::new(((self.bits >> 12) & 1) != 0)
|
|
}
|
|
#[doc = "Bit 13 - Shortcut between event CCABUSY and task DISABLE"]
|
|
#[inline(always)]
|
|
pub fn ccabusy_disable(&self) -> CCABUSY_DISABLE_R {
|
|
CCABUSY_DISABLE_R::new(((self.bits >> 13) & 1) != 0)
|
|
}
|
|
#[doc = "Bit 14 - Shortcut between event FRAMESTART and task BCSTART"]
|
|
#[inline(always)]
|
|
pub fn framestart_bcstart(&self) -> FRAMESTART_BCSTART_R {
|
|
FRAMESTART_BCSTART_R::new(((self.bits >> 14) & 1) != 0)
|
|
}
|
|
#[doc = "Bit 15 - Shortcut between event READY and task EDSTART"]
|
|
#[inline(always)]
|
|
pub fn ready_edstart(&self) -> READY_EDSTART_R {
|
|
READY_EDSTART_R::new(((self.bits >> 15) & 1) != 0)
|
|
}
|
|
#[doc = "Bit 16 - Shortcut between event EDEND and task DISABLE"]
|
|
#[inline(always)]
|
|
pub fn edend_disable(&self) -> EDEND_DISABLE_R {
|
|
EDEND_DISABLE_R::new(((self.bits >> 16) & 1) != 0)
|
|
}
|
|
#[doc = "Bit 17 - Shortcut between event CCAIDLE and task STOP"]
|
|
#[inline(always)]
|
|
pub fn ccaidle_stop(&self) -> CCAIDLE_STOP_R {
|
|
CCAIDLE_STOP_R::new(((self.bits >> 17) & 1) != 0)
|
|
}
|
|
#[doc = "Bit 18 - Shortcut between event TXREADY and task START"]
|
|
#[inline(always)]
|
|
pub fn txready_start(&self) -> TXREADY_START_R {
|
|
TXREADY_START_R::new(((self.bits >> 18) & 1) != 0)
|
|
}
|
|
#[doc = "Bit 19 - Shortcut between event RXREADY and task START"]
|
|
#[inline(always)]
|
|
pub fn rxready_start(&self) -> RXREADY_START_R {
|
|
RXREADY_START_R::new(((self.bits >> 19) & 1) != 0)
|
|
}
|
|
#[doc = "Bit 20 - Shortcut between event PHYEND and task DISABLE"]
|
|
#[inline(always)]
|
|
pub fn phyend_disable(&self) -> PHYEND_DISABLE_R {
|
|
PHYEND_DISABLE_R::new(((self.bits >> 20) & 1) != 0)
|
|
}
|
|
#[doc = "Bit 21 - Shortcut between event PHYEND and task START"]
|
|
#[inline(always)]
|
|
pub fn phyend_start(&self) -> PHYEND_START_R {
|
|
PHYEND_START_R::new(((self.bits >> 21) & 1) != 0)
|
|
}
|
|
}
|
|
impl W {
|
|
#[doc = "Bit 0 - Shortcut between event READY and task START"]
|
|
#[inline(always)]
|
|
pub fn ready_start(&mut self) -> READY_START_W<0> {
|
|
READY_START_W::new(self)
|
|
}
|
|
#[doc = "Bit 1 - Shortcut between event END and task DISABLE"]
|
|
#[inline(always)]
|
|
pub fn end_disable(&mut self) -> END_DISABLE_W<1> {
|
|
END_DISABLE_W::new(self)
|
|
}
|
|
#[doc = "Bit 2 - Shortcut between event DISABLED and task TXEN"]
|
|
#[inline(always)]
|
|
pub fn disabled_txen(&mut self) -> DISABLED_TXEN_W<2> {
|
|
DISABLED_TXEN_W::new(self)
|
|
}
|
|
#[doc = "Bit 3 - Shortcut between event DISABLED and task RXEN"]
|
|
#[inline(always)]
|
|
pub fn disabled_rxen(&mut self) -> DISABLED_RXEN_W<3> {
|
|
DISABLED_RXEN_W::new(self)
|
|
}
|
|
#[doc = "Bit 4 - Shortcut between event ADDRESS and task RSSISTART"]
|
|
#[inline(always)]
|
|
pub fn address_rssistart(&mut self) -> ADDRESS_RSSISTART_W<4> {
|
|
ADDRESS_RSSISTART_W::new(self)
|
|
}
|
|
#[doc = "Bit 5 - Shortcut between event END and task START"]
|
|
#[inline(always)]
|
|
pub fn end_start(&mut self) -> END_START_W<5> {
|
|
END_START_W::new(self)
|
|
}
|
|
#[doc = "Bit 6 - Shortcut between event ADDRESS and task BCSTART"]
|
|
#[inline(always)]
|
|
pub fn address_bcstart(&mut self) -> ADDRESS_BCSTART_W<6> {
|
|
ADDRESS_BCSTART_W::new(self)
|
|
}
|
|
#[doc = "Bit 8 - Shortcut between event DISABLED and task RSSISTOP"]
|
|
#[inline(always)]
|
|
pub fn disabled_rssistop(&mut self) -> DISABLED_RSSISTOP_W<8> {
|
|
DISABLED_RSSISTOP_W::new(self)
|
|
}
|
|
#[doc = "Bit 11 - Shortcut between event RXREADY and task CCASTART"]
|
|
#[inline(always)]
|
|
pub fn rxready_ccastart(&mut self) -> RXREADY_CCASTART_W<11> {
|
|
RXREADY_CCASTART_W::new(self)
|
|
}
|
|
#[doc = "Bit 12 - Shortcut between event CCAIDLE and task TXEN"]
|
|
#[inline(always)]
|
|
pub fn ccaidle_txen(&mut self) -> CCAIDLE_TXEN_W<12> {
|
|
CCAIDLE_TXEN_W::new(self)
|
|
}
|
|
#[doc = "Bit 13 - Shortcut between event CCABUSY and task DISABLE"]
|
|
#[inline(always)]
|
|
pub fn ccabusy_disable(&mut self) -> CCABUSY_DISABLE_W<13> {
|
|
CCABUSY_DISABLE_W::new(self)
|
|
}
|
|
#[doc = "Bit 14 - Shortcut between event FRAMESTART and task BCSTART"]
|
|
#[inline(always)]
|
|
pub fn framestart_bcstart(&mut self) -> FRAMESTART_BCSTART_W<14> {
|
|
FRAMESTART_BCSTART_W::new(self)
|
|
}
|
|
#[doc = "Bit 15 - Shortcut between event READY and task EDSTART"]
|
|
#[inline(always)]
|
|
pub fn ready_edstart(&mut self) -> READY_EDSTART_W<15> {
|
|
READY_EDSTART_W::new(self)
|
|
}
|
|
#[doc = "Bit 16 - Shortcut between event EDEND and task DISABLE"]
|
|
#[inline(always)]
|
|
pub fn edend_disable(&mut self) -> EDEND_DISABLE_W<16> {
|
|
EDEND_DISABLE_W::new(self)
|
|
}
|
|
#[doc = "Bit 17 - Shortcut between event CCAIDLE and task STOP"]
|
|
#[inline(always)]
|
|
pub fn ccaidle_stop(&mut self) -> CCAIDLE_STOP_W<17> {
|
|
CCAIDLE_STOP_W::new(self)
|
|
}
|
|
#[doc = "Bit 18 - Shortcut between event TXREADY and task START"]
|
|
#[inline(always)]
|
|
pub fn txready_start(&mut self) -> TXREADY_START_W<18> {
|
|
TXREADY_START_W::new(self)
|
|
}
|
|
#[doc = "Bit 19 - Shortcut between event RXREADY and task START"]
|
|
#[inline(always)]
|
|
pub fn rxready_start(&mut self) -> RXREADY_START_W<19> {
|
|
RXREADY_START_W::new(self)
|
|
}
|
|
#[doc = "Bit 20 - Shortcut between event PHYEND and task DISABLE"]
|
|
#[inline(always)]
|
|
pub fn phyend_disable(&mut self) -> PHYEND_DISABLE_W<20> {
|
|
PHYEND_DISABLE_W::new(self)
|
|
}
|
|
#[doc = "Bit 21 - Shortcut between event PHYEND and task START"]
|
|
#[inline(always)]
|
|
pub fn phyend_start(&mut self) -> PHYEND_START_W<21> {
|
|
PHYEND_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 = "Shortcuts between local events and tasks\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
|
|
}
|
|
}
|