async rx mode

This commit is contained in:
Pawel Spychalski (DzikuVx)
2017-12-17 09:33:04 +01:00
parent a7c2e13b10
commit e8f1976a2d
3 changed files with 28 additions and 5 deletions

View File

@@ -74,6 +74,9 @@ enum debugConfigFlags {
#define NO_DATA_TO_READ -1
#define RADIO_STATE_TX 1
#define RADIO_STATE_RX 2
struct RadioState_t {
uint32_t frequency = 867000000;
uint32_t loraBandwidth = 250000;
@@ -83,6 +86,7 @@ struct RadioState_t {
int8_t bytesToRead = -1;
uint8_t rssi = 0;
uint8_t snr = 0;
uint8_t deviceState = RADIO_STATE_RX;
};
struct TxDeviceState_t {