esp8266/gpio/
gpio_out_w1ts.rs1#[doc = "Register `GPIO_OUT_W1TS` writer"]
2pub struct W(crate::W<GPIO_OUT_W1TS_SPEC>);
3impl core::ops::Deref for W {
4 type Target = crate::W<GPIO_OUT_W1TS_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl core::ops::DerefMut for W {
11 #[inline(always)]
12 fn deref_mut(&mut self) -> &mut Self::Target {
13 &mut self.0
14 }
15}
16impl From<crate::W<GPIO_OUT_W1TS_SPEC>> for W {
17 #[inline(always)]
18 fn from(writer: crate::W<GPIO_OUT_W1TS_SPEC>) -> Self {
19 W(writer)
20 }
21}
22#[doc = "Field `GPIO_OUT_DATA_W1TS` writer - Writing 1 into a bit in this register will set the related bit in GPIO_OUT_DATA"]
23pub struct GPIO_OUT_DATA_W1TS_W<'a> {
24 w: &'a mut W,
25}
26impl<'a> GPIO_OUT_DATA_W1TS_W<'a> {
27 #[doc = r"Writes raw bits to the field"]
28 #[inline(always)]
29 pub unsafe fn bits(self, value: u16) -> &'a mut W {
30 self.w.bits = (self.w.bits & !0xffff) | (value as u32 & 0xffff);
31 self.w
32 }
33}
34impl W {
35 #[doc = "Bits 0:15 - Writing 1 into a bit in this register will set the related bit in GPIO_OUT_DATA"]
36 #[inline(always)]
37 pub fn gpio_out_data_w1ts(&mut self) -> GPIO_OUT_DATA_W1TS_W {
38 GPIO_OUT_DATA_W1TS_W { w: self }
39 }
40 #[doc = "Writes raw bits to the register."]
41 #[inline(always)]
42 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
43 self.0.bits(bits);
44 self
45 }
46}
47#[doc = "GPIO_OUT_W1TS\n\nThis register you can [`write_with_zero`]
48(crate::generic::Reg::write_with_zero), [`reset`]
49(crate::generic::Reg::reset), [`write`]
50(crate::generic::Reg::write). See [API]
51(https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [gpio_out_w1ts]
52(index.html) module"]
53pub struct GPIO_OUT_W1TS_SPEC;
54impl crate::RegisterSpec for GPIO_OUT_W1TS_SPEC {
55 type Ux = u32;
56}
57#[doc = "`write(|w| ..)` method takes [gpio_out_w1ts::W]
58(W) writer structure"]
59impl crate::Writable for GPIO_OUT_W1TS_SPEC {
60 type Writer = W;
61}
62#[doc = "`reset()` method sets GPIO_OUT_W1TS to value 0"]
63impl crate::Resettable for GPIO_OUT_W1TS_SPEC {
64 #[inline(always)]
65 fn reset_value() -> Self::Ux {
66 0
67 }
68}