RFM69 v0.2.0 RFM69.Device View Source

RFM69.Device is a GenServer to manage the SPI, reset and receive interrupt pids state and provide functions for reading and writing the registers and the FIFO buffer.

Link to this section Summary

Functions

Cancels the receive pin interrupt. The interrupt is canceled under normal conditions when a response message is triggered, but in the case of a timeout where the caller no longer has interest in the next packet, this function can be used

Initializes the SPI device and the reset and interrupt pins and prepares the RFM69 chip for interaction

Accepts the SPI device (eg “spidev0.0”), the reset and interrupt GPIO pin numbers and initializes communication with the RFM69 chip

Link to this section Types

Link to this type t() View Source
t() :: %RFM69.Device{device: String.t, interrupt_pin: integer, name: :atom, reset_pin: integer}

Link to this section Functions

Link to this function handle_call(msg, arg2, state) View Source

Cancels the receive pin interrupt. The interrupt is canceled under normal conditions when a response message is triggered, but in the case of a timeout where the caller no longer has interest in the next packet, this function can be used.

Initializes the SPI device and the reset and interrupt pins and prepares the RFM69 chip for interaction.

Accepts the SPI device (eg “spidev0.0”), the reset and interrupt GPIO pin numbers and initializes communication with the RFM69 chip.