# _embedded_hal_digital_OutputPin in k210_hal::prelude - Rust
Single digital push-pull output pin
Keywords: rust, rustlang, rust-lang, _embedded_hal_digital_OutputPin

# Trait k210_hal::prelude::_embedded_hal_digital_OutputPin

source · [−]

    pub trait _embedded_hal_digital_OutputPin {
        type Error;
        fn try_set_low(&mut self) -> Result<(), Self::Error>;
        fn try_set_high(&mut self) -> Result<(), Self::Error>;
    }

Expand description

Single digital push-pull output pin

## Associated Types

source

#### type Error

Error type

## Required methods

source

#### fn try_set_low(&mut self) -> Result<(), Self::Error>

Drives the pin low

NOTE the actual electrical state of the pin may not actually be low, e.g. due to external electrical sources

source

#### fn try_set_high(&mut self) -> Result<(), Self::Error>

Drives the pin high

NOTE the actual electrical state of the pin may not actually be high, e.g. due to external electrical sources

## Implementors

source

### impl<GPIO: GpioIndex, PIN> OutputPin for Gpio<GPIO, PIN, Output>

#### type Error = Infallible

source

### impl<MODE> OutputPin for Gpiohs0<Output<MODE>>

#### type Error = Infallible