stm32f1_staging/stm32f107/can1/
fm1r.rspub type R = crate::R<FM1Rrs>;
pub type W = crate::W<FM1Rrs>;
pub type FBM_R = crate::BitReader;
pub type FBM_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn fbm(&self, n: u8) -> FBM_R {
#[allow(clippy::no_effect)]
[(); 28][n as usize];
FBM_R::new(((self.bits >> n) & 1) != 0)
}
#[inline(always)]
pub fn fbm_iter(&self) -> impl Iterator<Item = FBM_R> + '_ {
(0..28).map(move |n| FBM_R::new(((self.bits >> n) & 1) != 0))
}
#[inline(always)]
pub fn fbm0(&self) -> FBM_R {
FBM_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn fbm1(&self) -> FBM_R {
FBM_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn fbm2(&self) -> FBM_R {
FBM_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn fbm3(&self) -> FBM_R {
FBM_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn fbm4(&self) -> FBM_R {
FBM_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn fbm5(&self) -> FBM_R {
FBM_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn fbm6(&self) -> FBM_R {
FBM_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn fbm7(&self) -> FBM_R {
FBM_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn fbm8(&self) -> FBM_R {
FBM_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn fbm9(&self) -> FBM_R {
FBM_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn fbm10(&self) -> FBM_R {
FBM_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn fbm11(&self) -> FBM_R {
FBM_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn fbm12(&self) -> FBM_R {
FBM_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn fbm13(&self) -> FBM_R {
FBM_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn fbm14(&self) -> FBM_R {
FBM_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn fbm15(&self) -> FBM_R {
FBM_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn fbm16(&self) -> FBM_R {
FBM_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn fbm17(&self) -> FBM_R {
FBM_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn fbm18(&self) -> FBM_R {
FBM_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn fbm19(&self) -> FBM_R {
FBM_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn fbm20(&self) -> FBM_R {
FBM_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn fbm21(&self) -> FBM_R {
FBM_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn fbm22(&self) -> FBM_R {
FBM_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn fbm23(&self) -> FBM_R {
FBM_R::new(((self.bits >> 23) & 1) != 0)
}
#[inline(always)]
pub fn fbm24(&self) -> FBM_R {
FBM_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn fbm25(&self) -> FBM_R {
FBM_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn fbm26(&self) -> FBM_R {
FBM_R::new(((self.bits >> 26) & 1) != 0)
}
#[inline(always)]
pub fn fbm27(&self) -> FBM_R {
FBM_R::new(((self.bits >> 27) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("FM1R")
.field("fbm0", &self.fbm0())
.field("fbm1", &self.fbm1())
.field("fbm2", &self.fbm2())
.field("fbm3", &self.fbm3())
.field("fbm4", &self.fbm4())
.field("fbm5", &self.fbm5())
.field("fbm6", &self.fbm6())
.field("fbm7", &self.fbm7())
.field("fbm8", &self.fbm8())
.field("fbm9", &self.fbm9())
.field("fbm10", &self.fbm10())
.field("fbm11", &self.fbm11())
.field("fbm12", &self.fbm12())
.field("fbm13", &self.fbm13())
.field("fbm14", &self.fbm14())
.field("fbm15", &self.fbm15())
.field("fbm16", &self.fbm16())
.field("fbm17", &self.fbm17())
.field("fbm18", &self.fbm18())
.field("fbm19", &self.fbm19())
.field("fbm20", &self.fbm20())
.field("fbm21", &self.fbm21())
.field("fbm22", &self.fbm22())
.field("fbm23", &self.fbm23())
.field("fbm24", &self.fbm24())
.field("fbm25", &self.fbm25())
.field("fbm26", &self.fbm26())
.field("fbm27", &self.fbm27())
.finish()
}
}
impl W {
#[inline(always)]
#[must_use]
pub fn fbm(&mut self, n: u8) -> FBM_W<FM1Rrs> {
#[allow(clippy::no_effect)]
[(); 28][n as usize];
FBM_W::new(self, n)
}
#[inline(always)]
#[must_use]
pub fn fbm0(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 0)
}
#[inline(always)]
#[must_use]
pub fn fbm1(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 1)
}
#[inline(always)]
#[must_use]
pub fn fbm2(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 2)
}
#[inline(always)]
#[must_use]
pub fn fbm3(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 3)
}
#[inline(always)]
#[must_use]
pub fn fbm4(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 4)
}
#[inline(always)]
#[must_use]
pub fn fbm5(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 5)
}
#[inline(always)]
#[must_use]
pub fn fbm6(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 6)
}
#[inline(always)]
#[must_use]
pub fn fbm7(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 7)
}
#[inline(always)]
#[must_use]
pub fn fbm8(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 8)
}
#[inline(always)]
#[must_use]
pub fn fbm9(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 9)
}
#[inline(always)]
#[must_use]
pub fn fbm10(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 10)
}
#[inline(always)]
#[must_use]
pub fn fbm11(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 11)
}
#[inline(always)]
#[must_use]
pub fn fbm12(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 12)
}
#[inline(always)]
#[must_use]
pub fn fbm13(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 13)
}
#[inline(always)]
#[must_use]
pub fn fbm14(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 14)
}
#[inline(always)]
#[must_use]
pub fn fbm15(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 15)
}
#[inline(always)]
#[must_use]
pub fn fbm16(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 16)
}
#[inline(always)]
#[must_use]
pub fn fbm17(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 17)
}
#[inline(always)]
#[must_use]
pub fn fbm18(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 18)
}
#[inline(always)]
#[must_use]
pub fn fbm19(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 19)
}
#[inline(always)]
#[must_use]
pub fn fbm20(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 20)
}
#[inline(always)]
#[must_use]
pub fn fbm21(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 21)
}
#[inline(always)]
#[must_use]
pub fn fbm22(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 22)
}
#[inline(always)]
#[must_use]
pub fn fbm23(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 23)
}
#[inline(always)]
#[must_use]
pub fn fbm24(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 24)
}
#[inline(always)]
#[must_use]
pub fn fbm25(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 25)
}
#[inline(always)]
#[must_use]
pub fn fbm26(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 26)
}
#[inline(always)]
#[must_use]
pub fn fbm27(&mut self) -> FBM_W<FM1Rrs> {
FBM_W::new(self, 27)
}
}
pub struct FM1Rrs;
impl crate::RegisterSpec for FM1Rrs {
type Ux = u32;
}
impl crate::Readable for FM1Rrs {}
impl crate::Writable for FM1Rrs {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
impl crate::Resettable for FM1Rrs {
const RESET_VALUE: u32 = 0;
}