FL-353 Cc1101 rx (#255)
* enable transparent mode * rssi ok, transmit ok, fifo ok * I see the signal * successful async rx (registers from smartrf) * refactor rfstudio register config * rewrite config, found some issues * handle G0 interrupts * g0 irq enable after cc1101 init * update cube
This commit is contained in:
@@ -2,8 +2,11 @@
|
||||
|
||||
#include "flipper_v2.h"
|
||||
|
||||
#define F_OSC 26e6
|
||||
|
||||
/*******************************debug mode*************************************/
|
||||
// #define CC1101_DEBUG 1
|
||||
|
||||
//******************************CC1101 defines ********************************
|
||||
//******************************config registers *****************************
|
||||
#define CC1101_IOCFG2 0x00 //GDO2 output pin configration
|
||||
@@ -148,13 +151,14 @@ private:
|
||||
void Reset(void);
|
||||
void SpiWriteBurstReg(uint8_t addr, uint8_t* buffer, uint8_t num);
|
||||
uint8_t SpiReadReg(uint8_t addr);
|
||||
void SpiReadBurstReg(uint8_t addr, uint8_t* buffer, uint8_t num);
|
||||
void RegConfigSettings(void);
|
||||
|
||||
public:
|
||||
CC1101(GpioPin* ss_pin);
|
||||
|
||||
void SpiWriteReg(uint8_t addr, uint8_t value);
|
||||
bool SpiSetRegValue(uint8_t reg, uint8_t value, uint8_t msb, uint8_t lsb);
|
||||
void SpiReadBurstReg(uint8_t addr, uint8_t* buffer, uint8_t num);
|
||||
void SpiInit(void);
|
||||
void SpiEnd(void);
|
||||
void SetMod(uint8_t mode);
|
||||
@@ -165,4 +169,6 @@ public:
|
||||
void SetReceive(void);
|
||||
void SetTransmit(void);
|
||||
void SetChannel(int channel);
|
||||
bool setRxBandwidth(float bandwidth);
|
||||
bool setBitRate(float bitrate);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user