RFM69 v0.1.2 RFM69 View Source

This module is the primary interface into the RFM69 package.

Link to this section Summary

Functions

reads a frame of binary data from the chip’s FIFO queue

Sets the base frequency of the RFM69 chip in MHz

Writes the given binary data to the FIFO queue and waits for the response

Link to this section Functions

Link to this function clear_buffers() View Source
clear_buffers() :: :ok
Link to this function read(timeout_ms) View Source
read(non_neg_integer) ::
  {:ok, %{data: binary, rssi: number}} |
  {:error, any}

reads a frame of binary data from the chip’s FIFO queue

Link to this function set_base_frequency(mhz) View Source
set_base_frequency(pos_integer) :: {:ok}

Sets the base frequency of the RFM69 chip in MHz

Link to this function write(packet_bytes, repetitions, repetition_delay, timeout_ms, initial \\ true) View Source
write(binary, pos_integer, non_neg_integer, non_neg_integer, boolean) :: {:ok, <<_::0>>}

Writes a frame of binary data to the FIFO queue

Link to this function write_and_read(packet_bytes, timeout_ms) View Source
write_and_read(binary, non_neg_integer) ::
  {:ok, %{data: binary, rssi: number}} |
  {:error, any}

Writes the given binary data to the FIFO queue and waits for the response.