pub type R = crate::R<BSMX0CRrs>;
pub type W = crate::W<BSMX0CRrs>;
pub type BSSEL_R = crate::FieldReader;
pub type BSSEL_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
pub type BSMXACTIVE_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn bssel(&self) -> BSSEL_R {
BSSEL_R::new((self.bits & 0x1f) as u8)
}
#[inline(always)]
pub fn bsmxactive(&self) -> BSMXACTIVE_R {
BSMXACTIVE_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("BSMX0CR")
.field("bssel", &self.bssel())
.field("bsmxactive", &self.bsmxactive())
.finish()
}
}
impl W {
#[inline(always)]
pub fn bssel(&mut self) -> BSSEL_W<BSMX0CRrs> {
BSSEL_W::new(self, 0)
}
}
pub struct BSMX0CRrs;
impl crate::RegisterSpec for BSMX0CRrs {
type Ux = u32;
}
impl crate::Readable for BSMX0CRrs {}
impl crate::Writable for BSMX0CRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for BSMX0CRrs {}