Type Definition Mock
embedded_hal_mock::pin
type Mock = Generic<Transaction>;
Mock Pin implementation
impl InputPin for Mock
type Error = MockError
Error type
fn is_high(&self) -> Result<bool, Self::Error>
Is the input pin high?
fn is_low(&self) -> Result<bool, Self::Error>
Is the input pin low?
impl OutputPin for Mock
Single digital push-pull output pin
fn set_low(&mut self) -> Result<(), Self::Error>
Drives the pin low
fn set_high(&mut self) -> Result<(), Self::Error>
Drives the pin high