Microchip® Advanced Software Framework

radio_driver_SX1276.h File Reference

This is the Radio drivers SX1276 source file which contains LoRa-specific Radio drivers functions declarations and defines for SX1276.

Copyright (c) 2019 Microchip Technology Inc. and its subsidiaries.

#include "radio_interface.h"
#include <stdint.h>
#include <stddef.h>

Macros

#define DISABLED   0
 
#define ENABLED   1
 
#define HF_FREQ_HZ   862000000UL
 
#define RSSI_HF_OFFSET   -157
 
#define RSSI_LF_OFFSET   -164
 

Functions

RadioError_t Radio_ReadFSKRssi (int16_t *rssi)
 This function reads the RSSI value for FSK. More...
 
RadioError_t Radio_ReadLoraRssi (int16_t *rssi)
 This function reads the RSSI value for LoRa. More...
 

Variables

RadioConfiguration_t radioConfiguration
 

#define HF_FREQ_HZ   862000000UL

Referenced by Radio_ReadLoraRssi().

#define RSSI_HF_OFFSET   -157

Referenced by Radio_ReadLoraRssi().

#define RSSI_LF_OFFSET   -164

Referenced by Radio_ReadLoraRssi().

RadioError_t Radio_ReadFSKRssi ( int16_t *  rssi)

This function reads the RSSI value for FSK.

Parameters
rssi- The RSSI measured in the channel.
Returns
- ERR_NONE. Other types are not used now.

References ERR_NONE, RADIO_RegisterRead(), and REG_FSK_RSSIVALUE.

RadioError_t Radio_ReadLoraRssi ( int16_t *  rssi)

This function reads the RSSI value for LoRa.

Parameters
rssi- The RSSI measured in the channel.
Returns
- ERR_NONE. Other types are not used now.

References ERR_NONE, _RadioConfiguration_t::frequency, HF_FREQ_HZ, RADIO_RegisterRead(), REG_LORA_RSSIVALUE, RSSI_HF_OFFSET, and RSSI_LF_OFFSET.

RadioConfiguration_t radioConfiguration