We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b58d509 commit b524a47Copy full SHA for b524a47
src/gpio.rs
@@ -820,6 +820,17 @@ where
820
Pin::new()
821
}
822
823
+ /// Configures the pin to operate as an push-pull output pin.
824
+ /// The state will not be changed.
825
+ #[inline]
826
+ pub fn into_push_pull_output_with_current_state(
827
+ mut self,
828
+ cr: &mut <Self as HL>::Cr,
829
+ ) -> Pin<P, N, Output<PushPull>> {
830
+ self.mode::<Output<PushPull>>(cr);
831
+ Pin::new()
832
+ }
833
+
834
/// Configures the pin to operate as an analog input pin
835
#[inline]
836
pub fn into_analog(mut self, cr: &mut <Self as HL>::Cr) -> Pin<P, N, Analog> {
0 commit comments