Trait nrf52810_hal::prelude::StatefulOutputPin[][src]

pub trait StatefulOutputPin: OutputPin {
    pub fn is_set_high(&self) -> Result<bool, Self::Error>;
pub fn is_set_low(&self) -> Result<bool, Self::Error>; }

Push-pull output pin that can read its output state

This trait is available if embedded-hal is built with the "unproven" feature.

Required methods

pub fn is_set_high(&self) -> Result<bool, Self::Error>[src]

Is the pin in drive high mode?

NOTE this does not read the electrical state of the pin

pub fn is_set_low(&self) -> Result<bool, Self::Error>[src]

Is the pin in drive low mode?

NOTE this does not read the electrical state of the pin

Loading content...

Implementors

impl<MODE> StatefulOutputPin for P0_00<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_00<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_00<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_01<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_01<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_01<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_02<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_02<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_02<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_03<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_03<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_03<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_04<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_04<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_04<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_05<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_05<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_05<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_06<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_06<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_06<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_07<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_07<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_07<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_08<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_08<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_08<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_09<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_09<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_09<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_10<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_10<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_10<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_11<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_11<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_11<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_12<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_12<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_12<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_13<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_13<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_13<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_14<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_14<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_14<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_15<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_15<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_15<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_16<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_16<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_16<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_17<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_17<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_17<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_18<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_18<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_18<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_19<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_19<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_19<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_20<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_20<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_20<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_21<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_21<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_21<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_22<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_22<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_22<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_23<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_23<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_23<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_24<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_24<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_24<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_25<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_25<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_25<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_26<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_26<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_26<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_27<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_27<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_27<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_28<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_28<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_28<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_29<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_29<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_29<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_30<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_30<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_30<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for P0_31<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <P0_31<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <P0_31<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<MODE> StatefulOutputPin for Pin<Output<MODE>>[src]

pub fn is_set_high(
    &self
) -> Result<bool, <Pin<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as high?

pub fn is_set_low(
    &self
) -> Result<bool, <Pin<Output<MODE>> as OutputPin>::Error>
[src]

Is the output pin set as low?

impl<T> StatefulOutputPin for T where
    T: StatefulOutputPin + OutputPin
[src]

Implementation of fallible v2::StatefulOutputPin for v1::StatefulOutputPin digital traits

Loading content...