View Source NiceRF_SV6xx (NiceRF_SV6xx v0.1.0)

Documentation for NiceRF_SV6xx.

Summary

Types

@type t() :: %NiceRF_SV6xx{
  net_id: term(),
  node_id: term(),
  rf_channel: term(),
  rf_data_rate: term(),
  rf_freq_band: term(),
  rf_output_power: term(),
  serial_data_bit: term(),
  serial_data_rate: term(),
  serial_parity: term(),
  serial_stop_bit: term()
}

Functions

@spec default_params() :: t()
@spec enumerate() :: map()
@spec get_parameters(pid()) :: t()
Link to this function

open(pid, device, opts \\ [])

View Source
@spec open(pid(), String.t(), list()) :: :ok | {:error, File.posix()}
Link to this function

read(pid, timeout \\ 1000)

View Source
@spec read(pid(), non_neg_integer()) ::
  {:ok, binary()} | {:ok, {:partial, binary()}} | {:error, File.posix()}
@spec reset(pid()) :: :ok | :error
@spec rssi_signal(pid()) :: {non_neg_integer(), non_neg_integer()}
Link to this function

set_parameters(pid, params \\ %NiceRF_SV6xx{})

View Source
@spec set_parameters(pid(), t()) :: :ok | :error
@spec start_link() :: GenServer.on_start()
@spec version(pid()) :: String.t()
Link to this function

write(pid, data, timeout \\ 1000)

View Source
@spec write(pid(), iodata(), non_neg_integer()) :: :ok | {:error, File.posix()}