mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
Change get_set_level to get_output_level
This commit is contained in:
parent
57002875d6
commit
a335589f34
@ -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()
|
||||
}
|
||||
}
|
||||
|
@ -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()
|
||||
}
|
||||
|
||||
|
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user