pub trait Output {
fn set(&self);
fn clear(&self);
fn toggle(&self) -> bool;
fn write_activation(&self, state: ActivationState, mode: ActivationMode) { ... }
}
Required Methods
Set the GPIO pin high. If the pin is not an output or input/output, this call is ignored.
Set the GPIO pin low. If the pin is not an output or input/output, this call is ignored.
Provided Methods
fn write_activation(&self, state: ActivationState, mode: ActivationMode)
fn write_activation(&self, state: ActivationState, mode: ActivationMode)
Activate or deactivate a GPIO pin, for a given activation mode.