pub trait Output {
// Required methods
fn set(&self);
fn clear(&self);
fn toggle(&self) -> bool;
// Provided method
fn write_activation(&self, state: ActivationState, mode: ActivationMode) { ... }
}
Required Methods§
sourcefn set(&self)
fn set(&self)
Set the GPIO pin high. If the pin is not an output or input/output, this call is ignored.
Provided Methods§
sourcefn 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.