diff options
| author | chemicstry <[email protected]> | 2022-07-13 02:25:09 +0300 |
|---|---|---|
| committer | chemicstry <[email protected]> | 2022-07-13 02:25:09 +0300 |
| commit | a335589f345c32cd74c00af63366fc197ca410ab (patch) | |
| tree | 69d5ea77aa2afae9a76a7a41f11a633640f75da8 | |
| parent | 57002875d6bf9ac4378955a4e33f77154fd32edd (diff) | |
Change get_set_level to get_output_level
| -rw-r--r-- | embassy-nrf/src/gpio.rs | 4 | ||||
| -rw-r--r-- | embassy-rp/src/gpio.rs | 6 | ||||
| -rw-r--r-- | embassy-stm32/src/gpio.rs | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/embassy-nrf/src/gpio.rs b/embassy-nrf/src/gpio.rs index d8295fc06..3e3e14b5b 100644 --- a/embassy-nrf/src/gpio.rs +++ b/embassy-nrf/src/gpio.rs | |||
| @@ -165,7 +165,7 @@ impl<'d, T: Pin> Output<'d, T> { | |||
| 165 | 165 | ||
| 166 | /// What level output is set to | 166 | /// What level output is set to |
| 167 | #[inline] | 167 | #[inline] |
| 168 | pub fn get_set_level(&self) -> Level { | 168 | pub fn get_output_level(&self) -> Level { |
| 169 | self.pin.is_set_high().into() | 169 | self.pin.is_set_high().into() |
| 170 | } | 170 | } |
| 171 | } | 171 | } |
| @@ -323,7 +323,7 @@ impl<'d, T: Pin> Flex<'d, T> { | |||
| 323 | 323 | ||
| 324 | /// What level output is set to | 324 | /// What level output is set to |
| 325 | #[inline] | 325 | #[inline] |
| 326 | pub fn get_set_level(&self) -> Level { | 326 | pub fn get_output_level(&self) -> Level { |
| 327 | self.is_set_high().into() | 327 | self.is_set_high().into() |
| 328 | } | 328 | } |
| 329 | } | 329 | } |
diff --git a/embassy-rp/src/gpio.rs b/embassy-rp/src/gpio.rs index 5e8126b4d..aa1508e9f 100644 --- a/embassy-rp/src/gpio.rs +++ b/embassy-rp/src/gpio.rs | |||
| @@ -129,7 +129,7 @@ impl<'d, T: Pin> Output<'d, T> { | |||
| 129 | 129 | ||
| 130 | /// What level output is set to | 130 | /// What level output is set to |
| 131 | #[inline] | 131 | #[inline] |
| 132 | pub fn get_set_level(&self) -> Level { | 132 | pub fn get_output_level(&self) -> Level { |
| 133 | self.pin.is_set_high().into() | 133 | self.pin.is_set_high().into() |
| 134 | } | 134 | } |
| 135 | 135 | ||
| @@ -194,7 +194,7 @@ impl<'d, T: Pin> OutputOpenDrain<'d, T> { | |||
| 194 | 194 | ||
| 195 | /// What level output is set to | 195 | /// What level output is set to |
| 196 | #[inline] | 196 | #[inline] |
| 197 | pub fn get_set_level(&self) -> Level { | 197 | pub fn get_output_level(&self) -> Level { |
| 198 | self.is_set_high().into() | 198 | self.is_set_high().into() |
| 199 | } | 199 | } |
| 200 | 200 | ||
| @@ -334,7 +334,7 @@ impl<'d, T: Pin> Flex<'d, T> { | |||
| 334 | 334 | ||
| 335 | /// What level output is set to | 335 | /// What level output is set to |
| 336 | #[inline] | 336 | #[inline] |
| 337 | pub fn get_set_level(&self) -> Level { | 337 | pub fn get_output_level(&self) -> Level { |
| 338 | self.is_set_high().into() | 338 | self.is_set_high().into() |
| 339 | } | 339 | } |
| 340 | 340 | ||
diff --git a/embassy-stm32/src/gpio.rs b/embassy-stm32/src/gpio.rs index 5f0d94b1b..1ba481e6e 100644 --- a/embassy-stm32/src/gpio.rs +++ b/embassy-stm32/src/gpio.rs | |||
| @@ -160,7 +160,7 @@ impl<'d, T: Pin> Flex<'d, T> { | |||
| 160 | 160 | ||
| 161 | /// What level output is set to | 161 | /// What level output is set to |
| 162 | #[inline] | 162 | #[inline] |
| 163 | pub fn get_set_level(&self) -> Level { | 163 | pub fn get_output_level(&self) -> Level { |
| 164 | self.is_set_high().into() | 164 | self.is_set_high().into() |
| 165 | } | 165 | } |
| 166 | 166 | ||
| @@ -385,7 +385,7 @@ impl<'d, T: Pin> Output<'d, T> { | |||
| 385 | 385 | ||
| 386 | /// What level output is set to | 386 | /// What level output is set to |
| 387 | #[inline] | 387 | #[inline] |
| 388 | pub fn get_set_level(&self) -> Level { | 388 | pub fn get_output_level(&self) -> Level { |
| 389 | self.pin.is_set_high().into() | 389 | self.pin.is_set_high().into() |
| 390 | } | 390 | } |
| 391 | 391 | ||
| @@ -466,7 +466,7 @@ impl<'d, T: Pin> OutputOpenDrain<'d, T> { | |||
| 466 | 466 | ||
| 467 | /// What level output is set to | 467 | /// What level output is set to |
| 468 | #[inline] | 468 | #[inline] |
| 469 | pub fn get_set_level(&self) -> Level { | 469 | pub fn get_output_level(&self) -> Level { |
| 470 | self.pin.is_set_high().into() | 470 | self.pin.is_set_high().into() |
| 471 | } | 471 | } |
| 472 | 472 | ||
