Jeff.Device (jeff v0.3.0) View Source

Peripheral Device configuration and handling

Link to this section Summary

Link to this section Types

Specs

check_scheme() :: :checksum | :crc

Specs

sequence_number() :: 0..3

Specs

t() :: %Jeff.Device{
  address: Jeff.osdp_address(),
  check_scheme: check_scheme(),
  commands: :queue.queue(term()),
  last_valid_reply: non_neg_integer(),
  secure_channel: term(),
  security?: boolean(),
  sequence: sequence_number()
}

Link to this section Functions

Link to this function

receive_valid_reply(device)

View Source

Specs

receive_valid_reply(t()) :: t()
Link to this function

send_command(device, command)

View Source