VintageNetWizardLauncher.Gpio behaviour (vintage_net_wizard_launcher v0.1.0)

Indirection behaviour for more nuanced testing of Circuits.GPIO than the built-in NIF stub

Link to this section Summary

Link to this section Callbacks

Link to this callback

open(pin_number, pin_direction)

@callback open(Circuits.GPIO.pin_number(), Circuits.GPIO.pin_direction()) ::
  {:ok, reference()} | {:error, atom()}
Link to this callback

set_interrupts(reference, trigger)

@callback set_interrupts(reference(), Circuits.GPIO.trigger()) :: :ok | {:error, atom()}
Link to this callback

set_pull_mode(reference, pull_mode)

@callback set_pull_mode(reference(), Circuits.GPIO.pull_mode()) :: :ok | {:error, atom()}