Scary commit. I've taken baby steps toward passing rig status between the Raduino and the TeensyDSP using I2C. Compiles, but has not been tested. Need to create a branch.

This commit is contained in:
Rob French
2021-02-05 22:59:31 -06:00
parent e62e3ef548
commit 4186fdcdd4
11 changed files with 191 additions and 8 deletions

View File

@@ -19,6 +19,8 @@
#include <Arduino.h> //for Linux, On Linux it is case sensitive.
#include "RigState.h"
//==============================================================================
// Compile Option
//==============================================================================
@@ -253,6 +255,12 @@ extern byte I2C_LCD_SECOND_ADDRESS; //only using Dual LCD Mode
#define I2CMETER_CALCR 0x55 //Calculated SWR Meter
#define I2CMETER_UNCALCR 0x54 //Uncalculated SWR Meter
// Raduino provides updated data to TeensyDSP
#define I2CMETER_RIGINF 0x50
// Raduino requests any CAT updates from TeensyDSP
#define I2CMETER_REQCAT 0x51
//==============================================================================
// for public, Variable, functions
//==============================================================================
@@ -332,4 +340,6 @@ extern void DisplayVersionInfo(const char* fwVersionInfo);
//I2C Signal Meter, Version 1.097
extern int GetI2CSmeterValue(int valueType); //ubitx_ui.ino
extern void doRaduinoToTeensy(UBitxRigState* r);
#endif //end of if header define