RFM69 v0.2.0 RFM69.Configuration View Source

RFM69.Configuration is a module and associated struct to model register configuration in an RFM69 chip

Link to this section Summary

Functions

Converts bitrate into the two byte register format

Converts a frequency in hz into the three-byte register format

Converts a Configuration.t struct into a binary that maps to the corresponding RFM69HCW register bytes

Link to this section Types

Link to this type t() View Source
t() :: %RFM69.Configuration{broadcast_adrs: byte, rssi_config: byte, aes_key: byte, rx_bw: byte, afc_bw: byte, rx_timeout1: byte, rx_timeout2: byte, rssi_thresh: byte, fdev: 0..65535, pa_level: byte, payload_length: byte, bitrate: 0..65535, sync_value: 0..18446744073709551615, rssi_value: byte, listen2: byte, test_dagc: byte, packet_config1: byte, dio_mapping1: byte, test_afc: byte, op_mode: byte, listen1: byte, listen3: byte, ook_peak: byte, reserved16: byte, data_modul: byte, reserved0_c: byte, dio_mapping2: byte, afc_fei: byte, temp1: byte, temp2: byte, node_adrs: byte, test_pa2: byte, preamble: 0..65535, afc_ctrl: byte, packet_config2: byte, sync_config: byte, reserved14: byte, reserved15: byte, test_pa1: byte, afc: byte, irq_flags2: byte, version: byte, frf: 0..16777215, reserved17: byte, ook_fix: byte, osc1: byte, pa_ramp: byte, ocp: byte, ook_avg: byte, irq_flags1: byte, lna: byte, fifo_thresh: byte, fei: byte, test_lna: byte, auto_modes: byte}

Link to this section Functions

Link to this function bitrate_to_registers(bitrate) View Source
bitrate_to_registers(non_neg_integer) :: 0..65535

Converts bitrate into the two byte register format

Link to this function frequency_to_registers(frequency_in_hz) View Source
frequency_to_registers(non_neg_integer) :: 0..16777215

Converts a frequency in hz into the three-byte register format

Converts a Configuration.t struct into a binary that maps to the corresponding RFM69HCW register bytes