ecall_control v0.0.6 Ecall.Control.Port behaviour

Link to this section Summary

Link to this section Functions

Link to this function

dial(pid, number)

Link to this function

open_port(module, pid, name)

Link to this function

setup(pid, name)

Link to this function

write_command(pid, cmd, value)

Link to this function

write_data(pid, data)

Link to this section Callbacks

Link to this callback

answer(pid)
answer(pid()) :: :ok

Link to this callback

dial(pid, binary)
dial(pid(), binary()) :: :ok | {:error, term()}

Link to this callback

finish(pid)
finish(pid()) :: :ok

Link to this callback

get_event(binary)
get_event(binary()) :: term()

Link to this callback

hang_up(pid)
hang_up(pid()) :: :ok

Link to this callback

open_port(pid, binary)
open_port(pid(), binary()) :: :ok | {:error, term()}

Link to this callback

reject(pid)
reject(pid()) :: :ok

Link to this callback

setup(pid, term, term)
setup(pid(), term(), term()) :: :ok | {:error, term()}

Link to this callback

setup_list()
setup_list() :: [term()]

Link to this callback

start_link(list)
start_link([term()]) :: {:ok, pid()} | {:error, term()}

Link to this callback

write_command(pid, arg2, arg3)
write_command(pid(), String.t(), String.t()) :: :ok