From a335589f345c32cd74c00af63366fc197ca410ab Mon Sep 17 00:00:00 2001 From: chemicstry Date: Wed, 13 Jul 2022 02:25:09 +0300 Subject: [PATCH] Change get_set_level to get_output_level --- embassy-nrf/src/gpio.rs | 4 ++-- embassy-rp/src/gpio.rs | 6 +++--- 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> { /// What level output is set to #[inline] - pub fn get_set_level(&self) -> Level { + pub fn get_output_level(&self) -> Level { self.pin.is_set_high().into() } } @@ -323,7 +323,7 @@ impl<'d, T: Pin> Flex<'d, T> { /// What level output is set to #[inline] - pub fn get_set_level(&self) -> Level { + pub fn get_output_level(&self) -> Level { self.is_set_high().into() } } 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> { /// What level output is set to #[inline] - pub fn get_set_level(&self) -> Level { + pub fn get_output_level(&self) -> Level { self.pin.is_set_high().into() } @@ -194,7 +194,7 @@ impl<'d, T: Pin> OutputOpenDrain<'d, T> { /// What level output is set to #[inline] - pub fn get_set_level(&self) -> Level { + pub fn get_output_level(&self) -> Level { self.is_set_high().into() } @@ -334,7 +334,7 @@ impl<'d, T: Pin> Flex<'d, T> { /// What level output is set to #[inline] - pub fn get_set_level(&self) -> Level { + pub fn get_output_level(&self) -> Level { self.is_set_high().into() } 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> { /// What level output is set to #[inline] - pub fn get_set_level(&self) -> Level { + pub fn get_output_level(&self) -> Level { self.is_set_high().into() } @@ -385,7 +385,7 @@ impl<'d, T: Pin> Output<'d, T> { /// What level output is set to #[inline] - pub fn get_set_level(&self) -> Level { + pub fn get_output_level(&self) -> Level { self.pin.is_set_high().into() } @@ -466,7 +466,7 @@ impl<'d, T: Pin> OutputOpenDrain<'d, T> { /// What level output is set to #[inline] - pub fn get_set_level(&self) -> Level { + pub fn get_output_level(&self) -> Level { self.pin.is_set_high().into() }