1#[doc = "Register `LPI2C` reader"]
2pub type R = crate::R<LPI2C_SPEC>;
3#[doc = "Register `LPI2C` writer"]
4pub type W = crate::W<LPI2C_SPEC>;
5#[doc = "Field `LP_I2C_SDA_IE` reader - need des"]
6pub type LP_I2C_SDA_IE_R = crate::BitReader;
7#[doc = "Field `LP_I2C_SDA_IE` writer - need des"]
8pub type LP_I2C_SDA_IE_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `LP_I2C_SCL_IE` reader - need des"]
10pub type LP_I2C_SCL_IE_R = crate::BitReader;
11#[doc = "Field `LP_I2C_SCL_IE` writer - need des"]
12pub type LP_I2C_SCL_IE_W<'a, REG> = crate::BitWriter<'a, REG>;
13impl R {
14 #[doc = "Bit 30 - need des"]
15 #[inline(always)]
16 pub fn lp_i2c_sda_ie(&self) -> LP_I2C_SDA_IE_R {
17 LP_I2C_SDA_IE_R::new(((self.bits >> 30) & 1) != 0)
18 }
19 #[doc = "Bit 31 - need des"]
20 #[inline(always)]
21 pub fn lp_i2c_scl_ie(&self) -> LP_I2C_SCL_IE_R {
22 LP_I2C_SCL_IE_R::new(((self.bits >> 31) & 1) != 0)
23 }
24}
25#[cfg(feature = "impl-register-debug")]
26impl core::fmt::Debug for R {
27 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
28 f.debug_struct("LPI2C")
29 .field("lp_i2c_sda_ie", &self.lp_i2c_sda_ie())
30 .field("lp_i2c_scl_ie", &self.lp_i2c_scl_ie())
31 .finish()
32 }
33}
34impl W {
35 #[doc = "Bit 30 - need des"]
36 #[inline(always)]
37 pub fn lp_i2c_sda_ie(&mut self) -> LP_I2C_SDA_IE_W<LPI2C_SPEC> {
38 LP_I2C_SDA_IE_W::new(self, 30)
39 }
40 #[doc = "Bit 31 - need des"]
41 #[inline(always)]
42 pub fn lp_i2c_scl_ie(&mut self) -> LP_I2C_SCL_IE_W<LPI2C_SPEC> {
43 LP_I2C_SCL_IE_W::new(self, 31)
44 }
45}
46#[doc = "need des\n\nYou can [`read`](crate::Reg::read) this register and get [`lpi2c::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lpi2c::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
47pub struct LPI2C_SPEC;
48impl crate::RegisterSpec for LPI2C_SPEC {
49 type Ux = u32;
50}
51#[doc = "`read()` method returns [`lpi2c::R`](R) reader structure"]
52impl crate::Readable for LPI2C_SPEC {}
53#[doc = "`write(|w| ..)` method takes [`lpi2c::W`](W) writer structure"]
54impl crate::Writable for LPI2C_SPEC {
55 type Safety = crate::Unsafe;
56}
57#[doc = "`reset()` method sets LPI2C to value 0xc000_0000"]
58impl crate::Resettable for LPI2C_SPEC {
59 const RESET_VALUE: u32 = 0xc000_0000;
60}