33 #if defined(USE_RX_FRSKY_SPI) || defined(USE_RX_SFHSS_SPI)
55 #if defined(USE_RX_CC2500_SPI_PA_LNA)
57 static IO_t rxLnaEnPin;
58 #if defined(USE_RX_CC2500_SPI_DIVERSITY)
59 static IO_t antSelPin;
85 #if defined(USE_RX_CC2500_SPI_PA_LNA) && defined(USE_RX_CC2500_SPI_DIVERSITY)
86 void cc2500switchAntennae(
void)
88 static bool alternativeAntennaSelected =
true;
91 if (alternativeAntennaSelected) {
96 alternativeAntennaSelected = !alternativeAntennaSelected;
100 #if defined(USE_RX_CC2500_SPI_PA_LNA)
101 void cc2500TxEnable(
void)
108 void cc2500TxDisable(
void)
120 if (chipPartNum == 0x80 && chipVersion == 0x03) {
142 #if defined(USE_RX_CC2500_SPI_PA_LNA)
145 IOInit(rxLnaEnPin, OWNER_RX_SPI_CC2500_LNA_EN, 0);
152 IOInit(txEnPin, OWNER_RX_SPI_CC2500_TX_EN, 0);
157 #if defined(USE_RX_CC2500_SPI_DIVERSITY)
160 IOInit(antSelPin, OWNER_RX_SPI_CC2500_ANT_SEL, 0);
170 #if defined(USE_RX_CC2500_SPI_PA_LNA)
uint8_t cc2500ReadReg(uint8_t reg)
#define CC2500_READ_BURST
static bool cc2500SpiDetect(void)
void cc2500setRssiDbm(uint8_t value)
uint16_t cc2500getRssiDbm(void)
#define IOInit(io, owner, index)
#define IOConfigGPIO(io, cfg)
void setRssi(uint16_t rssiValue, rssiSource_e source)
@ RSSI_SOURCE_RX_PROTOCOL
const rxSpiConfig_t * rxSpiConfig(void)
const rxCc2500SpiConfig_t * rxCc2500SpiConfig(void)
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.