Trait OutputPin

Source
pub trait OutputPin: Pin {
Show 14 methods // Required methods fn set_to_open_drain_output(&mut self) -> &mut Self; fn set_to_push_pull_output(&mut self) -> &mut Self; fn enable_output(&mut self, on: bool) -> &mut Self; fn set_output_high(&mut self, on: bool) -> &mut Self; fn set_drive_strength(&mut self, strength: DriveStrength) -> &mut Self; fn enable_open_drain(&mut self, on: bool) -> &mut Self; fn enable_output_in_sleep_mode(&mut self, on: bool) -> &mut Self; fn internal_pull_up_in_sleep_mode(&mut self, on: bool) -> &mut Self; fn internal_pull_down_in_sleep_mode(&mut self, on: bool) -> &mut Self; fn internal_pull_up(&mut self, on: bool) -> &mut Self; fn internal_pull_down(&mut self, on: bool) -> &mut Self; fn connect_peripheral_to_output( &mut self, signal: OutputSignal, ) -> &mut Self; fn connect_peripheral_to_output_with_options( &mut self, signal: OutputSignal, invert: bool, invert_enable: bool, enable_from_gpio: bool, force_via_gpio_mux: bool, ) -> &mut Self; fn disconnect_peripheral_from_output(&mut self) -> &mut Self;
}

Required Methods§

Source

fn set_to_open_drain_output(&mut self) -> &mut Self

Source

fn set_to_push_pull_output(&mut self) -> &mut Self

Source

fn enable_output(&mut self, on: bool) -> &mut Self

Source

fn set_output_high(&mut self, on: bool) -> &mut Self

Source

fn set_drive_strength(&mut self, strength: DriveStrength) -> &mut Self

Source

fn enable_open_drain(&mut self, on: bool) -> &mut Self

Source

fn enable_output_in_sleep_mode(&mut self, on: bool) -> &mut Self

Source

fn internal_pull_up_in_sleep_mode(&mut self, on: bool) -> &mut Self

Source

fn internal_pull_down_in_sleep_mode(&mut self, on: bool) -> &mut Self

Source

fn internal_pull_up(&mut self, on: bool) -> &mut Self

Source

fn internal_pull_down(&mut self, on: bool) -> &mut Self

Source

fn connect_peripheral_to_output(&mut self, signal: OutputSignal) -> &mut Self

Source

fn connect_peripheral_to_output_with_options( &mut self, signal: OutputSignal, invert: bool, invert_enable: bool, enable_from_gpio: bool, force_via_gpio_mux: bool, ) -> &mut Self

Source

fn disconnect_peripheral_from_output(&mut self) -> &mut Self

Remove this output pin from a connected signal.

Clears the entry in the GPIO matrix / IO mux that associates this output pin with a previously connected signal. Any other outputs connected to the signal remain intact.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<MODE, const GPIONUM: u8> OutputPin for GpioPin<MODE, GPIONUM>
where GpioPin<MODE, GPIONUM>: GpioProperties, <GpioPin<MODE, GPIONUM> as GpioProperties>::PinType: IsOutputPin, MODE: OutputMode,