pub type R = crate::R<APB1SMENR2rs>;
pub type W = crate::W<APB1SMENR2rs>;
pub type LPUART1SMEN_R = crate::BitReader;
pub type LPUART1SMEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type I2C4SMEN_R = crate::BitReader;
pub type I2C4SMEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type UCPD1SMEN_R = crate::BitReader;
pub type UCPD1SMEN_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
        #[inline(always)]
    pub fn lpuart1smen(&self) -> LPUART1SMEN_R {
        LPUART1SMEN_R::new((self.bits & 1) != 0)
    }
        #[inline(always)]
    pub fn i2c4smen(&self) -> I2C4SMEN_R {
        I2C4SMEN_R::new(((self.bits >> 1) & 1) != 0)
    }
        #[inline(always)]
    pub fn ucpd1smen(&self) -> UCPD1SMEN_R {
        UCPD1SMEN_R::new(((self.bits >> 8) & 1) != 0)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("APB1SMENR2")
            .field("lpuart1smen", &self.lpuart1smen())
            .field("i2c4smen", &self.i2c4smen())
            .field("ucpd1smen", &self.ucpd1smen())
            .finish()
    }
}
impl W {
        #[inline(always)]
    pub fn lpuart1smen(&mut self) -> LPUART1SMEN_W<APB1SMENR2rs> {
        LPUART1SMEN_W::new(self, 0)
    }
        #[inline(always)]
    pub fn i2c4smen(&mut self) -> I2C4SMEN_W<APB1SMENR2rs> {
        I2C4SMEN_W::new(self, 1)
    }
        #[inline(always)]
    pub fn ucpd1smen(&mut self) -> UCPD1SMEN_W<APB1SMENR2rs> {
        UCPD1SMEN_W::new(self, 8)
    }
}
pub struct APB1SMENR2rs;
impl crate::RegisterSpec for APB1SMENR2rs {
    type Ux = u32;
}
impl crate::Readable for APB1SMENR2rs {}
impl crate::Writable for APB1SMENR2rs {
    type Safety = crate::Unsafe;
}
impl crate::Resettable for APB1SMENR2rs {
    const RESET_VALUE: u32 = 0x0103;
}