pub type R = crate::R<BCRrs>;
pub type W = crate::W<BCRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum MBKEN {
Disabled = 0,
Enabled = 1,
}
impl From<MBKEN> for bool {
#[inline(always)]
fn from(variant: MBKEN) -> Self {
variant as u8 != 0
}
}
pub type MBKEN_R = crate::BitReader<MBKEN>;
impl MBKEN_R {
#[inline(always)]
pub const fn variant(&self) -> MBKEN {
match self.bits {
false => MBKEN::Disabled,
true => MBKEN::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == MBKEN::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == MBKEN::Enabled
}
}
pub type MBKEN_W<'a, REG> = crate::BitWriter<'a, REG, MBKEN>;
impl<'a, REG> MBKEN_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(MBKEN::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(MBKEN::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum MUXEN {
Disabled = 0,
Enabled = 1,
}
impl From<MUXEN> for bool {
#[inline(always)]
fn from(variant: MUXEN) -> Self {
variant as u8 != 0
}
}
pub type MUXEN_R = crate::BitReader<MUXEN>;
impl MUXEN_R {
#[inline(always)]
pub const fn variant(&self) -> MUXEN {
match self.bits {
false => MUXEN::Disabled,
true => MUXEN::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == MUXEN::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == MUXEN::Enabled
}
}
pub type MUXEN_W<'a, REG> = crate::BitWriter<'a, REG, MUXEN>;
impl<'a, REG> MUXEN_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(MUXEN::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(MUXEN::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum MTYP {
Sram = 0,
Psram = 1,
Flash = 2,
}
impl From<MTYP> for u8 {
#[inline(always)]
fn from(variant: MTYP) -> Self {
variant as _
}
}
impl crate::FieldSpec for MTYP {
type Ux = u8;
}
impl crate::IsEnum for MTYP {}
pub type MTYP_R = crate::FieldReader<MTYP>;
impl MTYP_R {
#[inline(always)]
pub const fn variant(&self) -> Option<MTYP> {
match self.bits {
0 => Some(MTYP::Sram),
1 => Some(MTYP::Psram),
2 => Some(MTYP::Flash),
_ => None,
}
}
#[inline(always)]
pub fn is_sram(&self) -> bool {
*self == MTYP::Sram
}
#[inline(always)]
pub fn is_psram(&self) -> bool {
*self == MTYP::Psram
}
#[inline(always)]
pub fn is_flash(&self) -> bool {
*self == MTYP::Flash
}
}
pub type MTYP_W<'a, REG> = crate::FieldWriter<'a, REG, 2, MTYP>;
impl<'a, REG> MTYP_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn sram(self) -> &'a mut crate::W<REG> {
self.variant(MTYP::Sram)
}
#[inline(always)]
pub fn psram(self) -> &'a mut crate::W<REG> {
self.variant(MTYP::Psram)
}
#[inline(always)]
pub fn flash(self) -> &'a mut crate::W<REG> {
self.variant(MTYP::Flash)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum MWID {
Bits8 = 0,
Bits16 = 1,
Bits32 = 2,
}
impl From<MWID> for u8 {
#[inline(always)]
fn from(variant: MWID) -> Self {
variant as _
}
}
impl crate::FieldSpec for MWID {
type Ux = u8;
}
impl crate::IsEnum for MWID {}
pub type MWID_R = crate::FieldReader<MWID>;
impl MWID_R {
#[inline(always)]
pub const fn variant(&self) -> Option<MWID> {
match self.bits {
0 => Some(MWID::Bits8),
1 => Some(MWID::Bits16),
2 => Some(MWID::Bits32),
_ => None,
}
}
#[inline(always)]
pub fn is_bits8(&self) -> bool {
*self == MWID::Bits8
}
#[inline(always)]
pub fn is_bits16(&self) -> bool {
*self == MWID::Bits16
}
#[inline(always)]
pub fn is_bits32(&self) -> bool {
*self == MWID::Bits32
}
}
pub type MWID_W<'a, REG> = crate::FieldWriter<'a, REG, 2, MWID>;
impl<'a, REG> MWID_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn bits8(self) -> &'a mut crate::W<REG> {
self.variant(MWID::Bits8)
}
#[inline(always)]
pub fn bits16(self) -> &'a mut crate::W<REG> {
self.variant(MWID::Bits16)
}
#[inline(always)]
pub fn bits32(self) -> &'a mut crate::W<REG> {
self.variant(MWID::Bits32)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum FACCEN {
Disabled = 0,
Enabled = 1,
}
impl From<FACCEN> for bool {
#[inline(always)]
fn from(variant: FACCEN) -> Self {
variant as u8 != 0
}
}
pub type FACCEN_R = crate::BitReader<FACCEN>;
impl FACCEN_R {
#[inline(always)]
pub const fn variant(&self) -> FACCEN {
match self.bits {
false => FACCEN::Disabled,
true => FACCEN::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == FACCEN::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == FACCEN::Enabled
}
}
pub type FACCEN_W<'a, REG> = crate::BitWriter<'a, REG, FACCEN>;
impl<'a, REG> FACCEN_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(FACCEN::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(FACCEN::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BURSTEN {
Disabled = 0,
Enabled = 1,
}
impl From<BURSTEN> for bool {
#[inline(always)]
fn from(variant: BURSTEN) -> Self {
variant as u8 != 0
}
}
pub type BURSTEN_R = crate::BitReader<BURSTEN>;
impl BURSTEN_R {
#[inline(always)]
pub const fn variant(&self) -> BURSTEN {
match self.bits {
false => BURSTEN::Disabled,
true => BURSTEN::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == BURSTEN::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == BURSTEN::Enabled
}
}
pub type BURSTEN_W<'a, REG> = crate::BitWriter<'a, REG, BURSTEN>;
impl<'a, REG> BURSTEN_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(BURSTEN::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(BURSTEN::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum WAITPOL {
ActiveLow = 0,
ActiveHigh = 1,
}
impl From<WAITPOL> for bool {
#[inline(always)]
fn from(variant: WAITPOL) -> Self {
variant as u8 != 0
}
}
pub type WAITPOL_R = crate::BitReader<WAITPOL>;
impl WAITPOL_R {
#[inline(always)]
pub const fn variant(&self) -> WAITPOL {
match self.bits {
false => WAITPOL::ActiveLow,
true => WAITPOL::ActiveHigh,
}
}
#[inline(always)]
pub fn is_active_low(&self) -> bool {
*self == WAITPOL::ActiveLow
}
#[inline(always)]
pub fn is_active_high(&self) -> bool {
*self == WAITPOL::ActiveHigh
}
}
pub type WAITPOL_W<'a, REG> = crate::BitWriter<'a, REG, WAITPOL>;
impl<'a, REG> WAITPOL_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn active_low(self) -> &'a mut crate::W<REG> {
self.variant(WAITPOL::ActiveLow)
}
#[inline(always)]
pub fn active_high(self) -> &'a mut crate::W<REG> {
self.variant(WAITPOL::ActiveHigh)
}
}
pub type WRAPMOD_R = crate::BitReader;
pub type WRAPMOD_W<'a, REG> = crate::BitWriter<'a, REG>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum WAITCFG {
BeforeWaitState = 0,
DuringWaitState = 1,
}
impl From<WAITCFG> for bool {
#[inline(always)]
fn from(variant: WAITCFG) -> Self {
variant as u8 != 0
}
}
pub type WAITCFG_R = crate::BitReader<WAITCFG>;
impl WAITCFG_R {
#[inline(always)]
pub const fn variant(&self) -> WAITCFG {
match self.bits {
false => WAITCFG::BeforeWaitState,
true => WAITCFG::DuringWaitState,
}
}
#[inline(always)]
pub fn is_before_wait_state(&self) -> bool {
*self == WAITCFG::BeforeWaitState
}
#[inline(always)]
pub fn is_during_wait_state(&self) -> bool {
*self == WAITCFG::DuringWaitState
}
}
pub type WAITCFG_W<'a, REG> = crate::BitWriter<'a, REG, WAITCFG>;
impl<'a, REG> WAITCFG_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn before_wait_state(self) -> &'a mut crate::W<REG> {
self.variant(WAITCFG::BeforeWaitState)
}
#[inline(always)]
pub fn during_wait_state(self) -> &'a mut crate::W<REG> {
self.variant(WAITCFG::DuringWaitState)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum WREN {
Disabled = 0,
Enabled = 1,
}
impl From<WREN> for bool {
#[inline(always)]
fn from(variant: WREN) -> Self {
variant as u8 != 0
}
}
pub type WREN_R = crate::BitReader<WREN>;
impl WREN_R {
#[inline(always)]
pub const fn variant(&self) -> WREN {
match self.bits {
false => WREN::Disabled,
true => WREN::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == WREN::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == WREN::Enabled
}
}
pub type WREN_W<'a, REG> = crate::BitWriter<'a, REG, WREN>;
impl<'a, REG> WREN_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(WREN::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(WREN::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum WAITEN {
Disabled = 0,
Enabled = 1,
}
impl From<WAITEN> for bool {
#[inline(always)]
fn from(variant: WAITEN) -> Self {
variant as u8 != 0
}
}
pub type WAITEN_R = crate::BitReader<WAITEN>;
impl WAITEN_R {
#[inline(always)]
pub const fn variant(&self) -> WAITEN {
match self.bits {
false => WAITEN::Disabled,
true => WAITEN::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == WAITEN::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == WAITEN::Enabled
}
}
pub type WAITEN_W<'a, REG> = crate::BitWriter<'a, REG, WAITEN>;
impl<'a, REG> WAITEN_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(WAITEN::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(WAITEN::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum EXTMOD {
Disabled = 0,
Enabled = 1,
}
impl From<EXTMOD> for bool {
#[inline(always)]
fn from(variant: EXTMOD) -> Self {
variant as u8 != 0
}
}
pub type EXTMOD_R = crate::BitReader<EXTMOD>;
impl EXTMOD_R {
#[inline(always)]
pub const fn variant(&self) -> EXTMOD {
match self.bits {
false => EXTMOD::Disabled,
true => EXTMOD::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == EXTMOD::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == EXTMOD::Enabled
}
}
pub type EXTMOD_W<'a, REG> = crate::BitWriter<'a, REG, EXTMOD>;
impl<'a, REG> EXTMOD_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(EXTMOD::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(EXTMOD::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ASYNCWAIT {
Disabled = 0,
Enabled = 1,
}
impl From<ASYNCWAIT> for bool {
#[inline(always)]
fn from(variant: ASYNCWAIT) -> Self {
variant as u8 != 0
}
}
pub type ASYNCWAIT_R = crate::BitReader<ASYNCWAIT>;
impl ASYNCWAIT_R {
#[inline(always)]
pub const fn variant(&self) -> ASYNCWAIT {
match self.bits {
false => ASYNCWAIT::Disabled,
true => ASYNCWAIT::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == ASYNCWAIT::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == ASYNCWAIT::Enabled
}
}
pub type ASYNCWAIT_W<'a, REG> = crate::BitWriter<'a, REG, ASYNCWAIT>;
impl<'a, REG> ASYNCWAIT_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(ASYNCWAIT::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(ASYNCWAIT::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum CPSIZE {
NoBurstSplit = 0,
Bytes128 = 1,
Bytes256 = 2,
Bytes512 = 3,
Bytes1024 = 4,
}
impl From<CPSIZE> for u8 {
#[inline(always)]
fn from(variant: CPSIZE) -> Self {
variant as _
}
}
impl crate::FieldSpec for CPSIZE {
type Ux = u8;
}
impl crate::IsEnum for CPSIZE {}
pub type CPSIZE_R = crate::FieldReader<CPSIZE>;
impl CPSIZE_R {
#[inline(always)]
pub const fn variant(&self) -> Option<CPSIZE> {
match self.bits {
0 => Some(CPSIZE::NoBurstSplit),
1 => Some(CPSIZE::Bytes128),
2 => Some(CPSIZE::Bytes256),
3 => Some(CPSIZE::Bytes512),
4 => Some(CPSIZE::Bytes1024),
_ => None,
}
}
#[inline(always)]
pub fn is_no_burst_split(&self) -> bool {
*self == CPSIZE::NoBurstSplit
}
#[inline(always)]
pub fn is_bytes128(&self) -> bool {
*self == CPSIZE::Bytes128
}
#[inline(always)]
pub fn is_bytes256(&self) -> bool {
*self == CPSIZE::Bytes256
}
#[inline(always)]
pub fn is_bytes512(&self) -> bool {
*self == CPSIZE::Bytes512
}
#[inline(always)]
pub fn is_bytes1024(&self) -> bool {
*self == CPSIZE::Bytes1024
}
}
pub type CPSIZE_W<'a, REG> = crate::FieldWriter<'a, REG, 3, CPSIZE>;
impl<'a, REG> CPSIZE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn no_burst_split(self) -> &'a mut crate::W<REG> {
self.variant(CPSIZE::NoBurstSplit)
}
#[inline(always)]
pub fn bytes128(self) -> &'a mut crate::W<REG> {
self.variant(CPSIZE::Bytes128)
}
#[inline(always)]
pub fn bytes256(self) -> &'a mut crate::W<REG> {
self.variant(CPSIZE::Bytes256)
}
#[inline(always)]
pub fn bytes512(self) -> &'a mut crate::W<REG> {
self.variant(CPSIZE::Bytes512)
}
#[inline(always)]
pub fn bytes1024(self) -> &'a mut crate::W<REG> {
self.variant(CPSIZE::Bytes1024)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CBURSTRW {
Disabled = 0,
Enabled = 1,
}
impl From<CBURSTRW> for bool {
#[inline(always)]
fn from(variant: CBURSTRW) -> Self {
variant as u8 != 0
}
}
pub type CBURSTRW_R = crate::BitReader<CBURSTRW>;
impl CBURSTRW_R {
#[inline(always)]
pub const fn variant(&self) -> CBURSTRW {
match self.bits {
false => CBURSTRW::Disabled,
true => CBURSTRW::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == CBURSTRW::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == CBURSTRW::Enabled
}
}
pub type CBURSTRW_W<'a, REG> = crate::BitWriter<'a, REG, CBURSTRW>;
impl<'a, REG> CBURSTRW_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(CBURSTRW::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(CBURSTRW::Enabled)
}
}
impl R {
#[inline(always)]
pub fn mbken(&self) -> MBKEN_R {
MBKEN_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn muxen(&self) -> MUXEN_R {
MUXEN_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn mtyp(&self) -> MTYP_R {
MTYP_R::new(((self.bits >> 2) & 3) as u8)
}
#[inline(always)]
pub fn mwid(&self) -> MWID_R {
MWID_R::new(((self.bits >> 4) & 3) as u8)
}
#[inline(always)]
pub fn faccen(&self) -> FACCEN_R {
FACCEN_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn bursten(&self) -> BURSTEN_R {
BURSTEN_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn waitpol(&self) -> WAITPOL_R {
WAITPOL_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn wrapmod(&self) -> WRAPMOD_R {
WRAPMOD_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn waitcfg(&self) -> WAITCFG_R {
WAITCFG_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn wren(&self) -> WREN_R {
WREN_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn waiten(&self) -> WAITEN_R {
WAITEN_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn extmod(&self) -> EXTMOD_R {
EXTMOD_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn asyncwait(&self) -> ASYNCWAIT_R {
ASYNCWAIT_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn cpsize(&self) -> CPSIZE_R {
CPSIZE_R::new(((self.bits >> 16) & 7) as u8)
}
#[inline(always)]
pub fn cburstrw(&self) -> CBURSTRW_R {
CBURSTRW_R::new(((self.bits >> 19) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("BCR")
.field("cburstrw", &self.cburstrw())
.field("asyncwait", &self.asyncwait())
.field("extmod", &self.extmod())
.field("waiten", &self.waiten())
.field("wren", &self.wren())
.field("waitcfg", &self.waitcfg())
.field("wrapmod", &self.wrapmod())
.field("waitpol", &self.waitpol())
.field("bursten", &self.bursten())
.field("faccen", &self.faccen())
.field("mwid", &self.mwid())
.field("mtyp", &self.mtyp())
.field("muxen", &self.muxen())
.field("mbken", &self.mbken())
.field("cpsize", &self.cpsize())
.finish()
}
}
impl W {
#[inline(always)]
#[must_use]
pub fn mbken(&mut self) -> MBKEN_W<BCRrs> {
MBKEN_W::new(self, 0)
}
#[inline(always)]
#[must_use]
pub fn muxen(&mut self) -> MUXEN_W<BCRrs> {
MUXEN_W::new(self, 1)
}
#[inline(always)]
#[must_use]
pub fn mtyp(&mut self) -> MTYP_W<BCRrs> {
MTYP_W::new(self, 2)
}
#[inline(always)]
#[must_use]
pub fn mwid(&mut self) -> MWID_W<BCRrs> {
MWID_W::new(self, 4)
}
#[inline(always)]
#[must_use]
pub fn faccen(&mut self) -> FACCEN_W<BCRrs> {
FACCEN_W::new(self, 6)
}
#[inline(always)]
#[must_use]
pub fn bursten(&mut self) -> BURSTEN_W<BCRrs> {
BURSTEN_W::new(self, 8)
}
#[inline(always)]
#[must_use]
pub fn waitpol(&mut self) -> WAITPOL_W<BCRrs> {
WAITPOL_W::new(self, 9)
}
#[inline(always)]
#[must_use]
pub fn wrapmod(&mut self) -> WRAPMOD_W<BCRrs> {
WRAPMOD_W::new(self, 10)
}
#[inline(always)]
#[must_use]
pub fn waitcfg(&mut self) -> WAITCFG_W<BCRrs> {
WAITCFG_W::new(self, 11)
}
#[inline(always)]
#[must_use]
pub fn wren(&mut self) -> WREN_W<BCRrs> {
WREN_W::new(self, 12)
}
#[inline(always)]
#[must_use]
pub fn waiten(&mut self) -> WAITEN_W<BCRrs> {
WAITEN_W::new(self, 13)
}
#[inline(always)]
#[must_use]
pub fn extmod(&mut self) -> EXTMOD_W<BCRrs> {
EXTMOD_W::new(self, 14)
}
#[inline(always)]
#[must_use]
pub fn asyncwait(&mut self) -> ASYNCWAIT_W<BCRrs> {
ASYNCWAIT_W::new(self, 15)
}
#[inline(always)]
#[must_use]
pub fn cpsize(&mut self) -> CPSIZE_W<BCRrs> {
CPSIZE_W::new(self, 16)
}
#[inline(always)]
#[must_use]
pub fn cburstrw(&mut self) -> CBURSTRW_W<BCRrs> {
CBURSTRW_W::new(self, 19)
}
}
pub struct BCRrs;
impl crate::RegisterSpec for BCRrs {
type Ux = u32;
}
impl crate::Readable for BCRrs {}
impl crate::Writable for BCRrs {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
impl crate::Resettable for BCRrs {
const RESET_VALUE: u32 = 0x30d0;
}