[][src]Type Definition embedded_hal_mock::pin::Mock

type Mock = Generic<Transaction>;

Mock Pin implementation

Trait Implementations

impl InputPin for Mock[src]

type Error = MockError

Error type

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

Is the input pin high?

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

Is the input pin low?

impl OutputPin for Mock[src]

Single digital push-pull output pin

type Error = MockError

Error type

fn set_low(&mut self) -> Result<(), Self::Error>[src]

Drives the pin low

fn set_high(&mut self) -> Result<(), Self::Error>[src]

Drives the pin high