Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
LSatan authored Jan 23, 2021
1 parent 0152d79 commit b60cd23
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
12 changes: 3 additions & 9 deletions ELECHOUSE_CC1101_SRC_DRV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -971,12 +971,10 @@ void ELECHOUSE_CC1101::RegConfigSettings(void)
****************************************************************/
void ELECHOUSE_CC1101::SetTx(void)
{
if(trxstate!=1){
SpiStrobe(CC1101_SIDLE);
SpiStrobe(CC1101_STX); //start send
trxstate=1;
}
}
/****************************************************************
*FUNCTION NAME:SetRx
*FUNCTION :set CC1101 to receive state
Expand All @@ -985,11 +983,10 @@ void ELECHOUSE_CC1101::SetTx(void)
****************************************************************/
void ELECHOUSE_CC1101::SetRx(void)
{
if(trxstate!=2){
SpiStrobe(CC1101_SIDLE);
SpiStrobe(CC1101_SRX); //start receive
trxstate=2;
}
}
/****************************************************************
*FUNCTION NAME:SetTx
*FUNCTION :set CC1101 send data and change frequency
Expand All @@ -998,13 +995,11 @@ void ELECHOUSE_CC1101::SetRx(void)
****************************************************************/
void ELECHOUSE_CC1101::SetTx(float mhz)
{
setMHZ(mhz);
if(trxstate!=1){
SpiStrobe(CC1101_SIDLE);
setMHZ(mhz);
SpiStrobe(CC1101_STX); //start send
trxstate=1;
}
}
/****************************************************************
*FUNCTION NAME:SetRx
*FUNCTION :set CC1101 to receive state and change frequency
Expand All @@ -1013,12 +1008,11 @@ void ELECHOUSE_CC1101::SetTx(float mhz)
****************************************************************/
void ELECHOUSE_CC1101::SetRx(float mhz)
{
SpiStrobe(CC1101_SIDLE);
setMHZ(mhz);
if(trxstate!=2){
SpiStrobe(CC1101_SRX); //start receive
trxstate=2;
}
}
/****************************************************************
*FUNCTION NAME:RSSI Level
*FUNCTION :Calculating the RSSI Level
Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SmartRC-CC1101-Driver-Lib_V2.5.3
# SmartRC-CC1101-Driver-Lib_V2.5.4

Note: Find out about the laws in your country.
Use at your own risk.
Expand Down Expand Up @@ -132,6 +132,15 @@ https://www.paypal.me/LittleSatan666

Thank You!

---------------------------------------------
Changelog: SmartRC-CC1101-Driver-Lib_V2.5.4
---------------------------------------------
23.01.2021

Driver Library :No big frequency jumps over SetRx(freq); Possible. Fixed! Big thanks to NorthernMan54 for testing!

Driver Library :double-initaliesing option from V2.5.3 has been removed. Necessary for SetRx(freq); to use.

---------------------------------------------
Changelog: SmartRC-CC1101-Driver-Lib_V2.5.3
---------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "git",
"url": "https://github.com/LSatan/SmartRC-CC1101-Driver-Lib"
},
"version": "2.5.3",
"version": "2.5.4",
"frameworks": [
"arduino"
],
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=SmartRC-CC1101-Driver-Lib
version=2.5.3
version=2.5.4
author=LSatan
maintainer=LSatan <littlesatan.666.ls@gmail.com>
sentence=Driver for cc1101.
Expand Down

0 comments on commit b60cd23

Please sign in to comment.