stm32f3_copterust/stm32f373/
gpiod.rs1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - GPIO port mode register"]
5 pub moder: MODER,
6 #[doc = "0x04 - GPIO port output type register"]
7 pub otyper: OTYPER,
8 #[doc = "0x08 - GPIO port output speed register"]
9 pub ospeedr: OSPEEDR,
10 #[doc = "0x0c - GPIO port pull-up/pull-down register"]
11 pub pupdr: PUPDR,
12 #[doc = "0x10 - GPIO port input data register"]
13 pub idr: IDR,
14 #[doc = "0x14 - GPIO port output data register"]
15 pub odr: ODR,
16 #[doc = "0x18 - GPIO port bit set/reset register"]
17 pub bsrr: BSRR,
18 #[doc = "0x1c - GPIO port configuration lock register"]
19 pub lckr: LCKR,
20 #[doc = "0x20 - GPIO alternate function low register"]
21 pub afrl: AFRL,
22 #[doc = "0x24 - GPIO alternate function high register"]
23 pub afrh: AFRH,
24 #[doc = "0x28 - Port bit reset register"]
25 pub brr: BRR,
26}
27#[doc = "GPIO port mode register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [moder](moder) module"]
28pub type MODER = crate::Reg<u32, _MODER>;
29#[allow(missing_docs)]
30#[doc(hidden)]
31pub struct _MODER;
32#[doc = "`read()` method returns [moder::R](moder::R) reader structure"]
33impl crate::Readable for MODER {}
34#[doc = "`write(|w| ..)` method takes [moder::W](moder::W) writer structure"]
35impl crate::Writable for MODER {}
36#[doc = "GPIO port mode register"]
37pub mod moder;
38#[doc = "GPIO port output type register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [otyper](otyper) module"]
39pub type OTYPER = crate::Reg<u32, _OTYPER>;
40#[allow(missing_docs)]
41#[doc(hidden)]
42pub struct _OTYPER;
43#[doc = "`read()` method returns [otyper::R](otyper::R) reader structure"]
44impl crate::Readable for OTYPER {}
45#[doc = "`write(|w| ..)` method takes [otyper::W](otyper::W) writer structure"]
46impl crate::Writable for OTYPER {}
47#[doc = "GPIO port output type register"]
48pub mod otyper;
49#[doc = "GPIO port output speed register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ospeedr](ospeedr) module"]
50pub type OSPEEDR = crate::Reg<u32, _OSPEEDR>;
51#[allow(missing_docs)]
52#[doc(hidden)]
53pub struct _OSPEEDR;
54#[doc = "`read()` method returns [ospeedr::R](ospeedr::R) reader structure"]
55impl crate::Readable for OSPEEDR {}
56#[doc = "`write(|w| ..)` method takes [ospeedr::W](ospeedr::W) writer structure"]
57impl crate::Writable for OSPEEDR {}
58#[doc = "GPIO port output speed register"]
59pub mod ospeedr;
60#[doc = "GPIO port pull-up/pull-down register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [pupdr](pupdr) module"]
61pub type PUPDR = crate::Reg<u32, _PUPDR>;
62#[allow(missing_docs)]
63#[doc(hidden)]
64pub struct _PUPDR;
65#[doc = "`read()` method returns [pupdr::R](pupdr::R) reader structure"]
66impl crate::Readable for PUPDR {}
67#[doc = "`write(|w| ..)` method takes [pupdr::W](pupdr::W) writer structure"]
68impl crate::Writable for PUPDR {}
69#[doc = "GPIO port pull-up/pull-down register"]
70pub mod pupdr;
71#[doc = "GPIO port input data register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [idr](idr) module"]
72pub type IDR = crate::Reg<u32, _IDR>;
73#[allow(missing_docs)]
74#[doc(hidden)]
75pub struct _IDR;
76#[doc = "`read()` method returns [idr::R](idr::R) reader structure"]
77impl crate::Readable for IDR {}
78#[doc = "GPIO port input data register"]
79pub mod idr;
80#[doc = "GPIO port output data register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [odr](odr) module"]
81pub type ODR = crate::Reg<u32, _ODR>;
82#[allow(missing_docs)]
83#[doc(hidden)]
84pub struct _ODR;
85#[doc = "`read()` method returns [odr::R](odr::R) reader structure"]
86impl crate::Readable for ODR {}
87#[doc = "`write(|w| ..)` method takes [odr::W](odr::W) writer structure"]
88impl crate::Writable for ODR {}
89#[doc = "GPIO port output data register"]
90pub mod odr;
91#[doc = "GPIO port bit set/reset register\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [bsrr](bsrr) module"]
92pub type BSRR = crate::Reg<u32, _BSRR>;
93#[allow(missing_docs)]
94#[doc(hidden)]
95pub struct _BSRR;
96#[doc = "`write(|w| ..)` method takes [bsrr::W](bsrr::W) writer structure"]
97impl crate::Writable for BSRR {}
98#[doc = "GPIO port bit set/reset register"]
99pub mod bsrr;
100#[doc = "GPIO port configuration lock register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [lckr](lckr) module"]
101pub type LCKR = crate::Reg<u32, _LCKR>;
102#[allow(missing_docs)]
103#[doc(hidden)]
104pub struct _LCKR;
105#[doc = "`read()` method returns [lckr::R](lckr::R) reader structure"]
106impl crate::Readable for LCKR {}
107#[doc = "`write(|w| ..)` method takes [lckr::W](lckr::W) writer structure"]
108impl crate::Writable for LCKR {}
109#[doc = "GPIO port configuration lock register"]
110pub mod lckr;
111#[doc = "GPIO alternate function low register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [afrl](afrl) module"]
112pub type AFRL = crate::Reg<u32, _AFRL>;
113#[allow(missing_docs)]
114#[doc(hidden)]
115pub struct _AFRL;
116#[doc = "`read()` method returns [afrl::R](afrl::R) reader structure"]
117impl crate::Readable for AFRL {}
118#[doc = "`write(|w| ..)` method takes [afrl::W](afrl::W) writer structure"]
119impl crate::Writable for AFRL {}
120#[doc = "GPIO alternate function low register"]
121pub mod afrl;
122#[doc = "GPIO alternate function high register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [afrh](afrh) module"]
123pub type AFRH = crate::Reg<u32, _AFRH>;
124#[allow(missing_docs)]
125#[doc(hidden)]
126pub struct _AFRH;
127#[doc = "`read()` method returns [afrh::R](afrh::R) reader structure"]
128impl crate::Readable for AFRH {}
129#[doc = "`write(|w| ..)` method takes [afrh::W](afrh::W) writer structure"]
130impl crate::Writable for AFRH {}
131#[doc = "GPIO alternate function high register"]
132pub mod afrh;
133#[doc = "Port bit reset register\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [brr](brr) module"]
134pub type BRR = crate::Reg<u32, _BRR>;
135#[allow(missing_docs)]
136#[doc(hidden)]
137pub struct _BRR;
138#[doc = "`write(|w| ..)` method takes [brr::W](brr::W) writer structure"]
139impl crate::Writable for BRR {}
140#[doc = "Port bit reset register"]
141pub mod brr;