GPIOIRQDevice (ili9486_elixir v0.1.6)
View SourceGenServer that listens for Circuits.GPIO interrupts and forwards them to a user callback.
Summary
Functions
Returns a specification to start this module under a supervisor.
Set the IRQ callback. Returns the pid of the spawned listener process.
Types
@type irq_callback() :: (irq_pin(), irq_timestamp(), irq_status() -> any())
Callback invoked on IRQ
@type irq_pin() :: non_neg_integer()
IRQ pin number
@type irq_status() :: 0 | 1
IRQ status value
@type irq_timestamp() :: non_neg_integer()
IRQ timestamp (from Circuits.GPIO)
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec irq_event_loop(any(), irq_callback()) :: no_return()
@spec irq_event_loop_init(any(), irq_callback()) :: no_return()
@spec set_callback(pid(), irq_callback()) :: pid()
Set the IRQ callback. Returns the pid of the spawned listener process.