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.
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 DISABLED 0 |
#define ENABLED 1 |
Referenced by Enableallchannels(), EnableChannels2(), LBTChannelPauseCallback(), LORAREG_GetAttr_DutyCycleTimer(), LORAREG_GetAttr_minLBTChPauseTimer(), SearchAvailableChannel1(), SearchAvailableChannel2(), setEnableAllChs(), setLBTTimer(), setNewChannel(), setNewChannelsT1(), UpdateChannelIdStatusT2(), UpdateChannelIdStatusT4(), UpdateMinMaxChDataRate(), and ValidateSupportedDr().
#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.
rssi | - The RSSI measured in the channel. |
References ERR_NONE, RADIO_RegisterRead(), and REG_FSK_RSSIVALUE.
RadioError_t Radio_ReadLoraRssi | ( | int16_t * | rssi | ) |
This function reads the RSSI value for LoRa.
rssi | - The RSSI measured in the channel. |
References ERR_NONE, _RadioConfiguration_t::frequency, HF_FREQ_HZ, RADIO_RegisterRead(), REG_LORA_RSSIVALUE, RSSI_HF_OFFSET, and RSSI_LF_OFFSET.
RadioConfiguration_t radioConfiguration |