Trait gpio::GpioOut
[−]
[src]
pub trait GpioOut { type Error; fn set_low(&mut self) -> Result<(), Self::Error>; fn set_high(&mut self) -> Result<(), Self::Error>; fn set_value<T: Into<GpioValue> + Copy>(
&mut self,
value: T
) -> Result<(), Self::Error> { ... } }
Supports sending GPIOValue
s
Associated Types
type Error
Errors that can occur during initialization of or writing to GPIO
Required Methods
fn set_low(&mut self) -> Result<(), Self::Error>
Set the GPIO port to a low output value directly
fn set_high(&mut self) -> Result<(), Self::Error>
Set the GPIO port to a high output value directly
Provided Methods
fn set_value<T: Into<GpioValue> + Copy>(
&mut self,
value: T
) -> Result<(), Self::Error>
&mut self,
value: T
) -> Result<(), Self::Error>
Sets the output value of the GPIO port
Implementors
impl GpioOut for SysFsGpioOutput type Error = Error;
impl<F> GpioOut for DummyGpioOut<F> where
F: Fn(GpioValue), type Error = ();