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.

Toggle the GPIO pin. If the pin was high, set it low. If the pin was low, set it high. If the pin is not an output or input/output, this call is ignored. Return the new value of the pin.

Provided Methods

Activate or deactivate a GPIO pin, for a given activation mode.

Implementors