View Source Wafer.Driver.ElixirALE.GPIO.Dispatcher (wafer v1.0.3)
This module implements a simple dispatcher for GPIO interrupts when using
ElixirALE
.
Summary
Functions
Returns a specification to start this module under a supervisor.
Disable interrupts for this connection on the specified pin_condition.
Enable interrupts for this connection using the specified pin_condition.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec disable(Wafer.Conn.t(), Wafer.GPIO.pin_condition()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Disable interrupts for this connection on the specified pin_condition.
@spec enable(Wafer.Conn.t(), Wafer.GPIO.pin_condition(), any()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Enable interrupts for this connection using the specified pin_condition.