2020-05-02 05:54:58 +00:00
|
|
|
//======================================================================
|
|
|
|
// ubitx_iop.h
|
|
|
|
//======================================================================
|
|
|
|
|
|
|
|
#ifndef __ubitx_iop_h__
|
|
|
|
#define __ubitx_iop_h__
|
|
|
|
|
2020-05-03 05:37:21 +00:00
|
|
|
#include "config.h"
|
2020-05-02 05:54:58 +00:00
|
|
|
#include "audio.h"
|
|
|
|
#include "cat.h"
|
|
|
|
#include "eeprom.h"
|
2020-05-15 01:49:54 +00:00
|
|
|
#include "keyer.h"
|
2020-05-01 16:04:26 +00:00
|
|
|
|
|
|
|
// comment this out to disable debugging code
|
2020-05-20 02:39:35 +00:00
|
|
|
//#define DEBUG
|
2020-05-01 16:04:26 +00:00
|
|
|
|
2020-05-17 04:48:39 +00:00
|
|
|
#if defined(DEBUG)
|
|
|
|
#define USBDEBUG(x) USBSERIAL.print("IOP: "); USBSERIAL.println(x);
|
|
|
|
#else
|
|
|
|
#define USBDEBUG(x)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//enum RigMode {
|
|
|
|
// MODE_SSB = 0,
|
|
|
|
// MODE_DIGI = 1,
|
|
|
|
// MODE_CW = 2,
|
|
|
|
//};
|
2020-05-02 05:54:58 +00:00
|
|
|
|
2020-05-08 05:19:07 +00:00
|
|
|
enum TxState {
|
|
|
|
TX_OFF = 0,
|
|
|
|
TX_MIC,
|
|
|
|
TX_LINE,
|
|
|
|
TX_CAT,
|
|
|
|
TX_KEYER,
|
|
|
|
};
|
|
|
|
|
2020-05-02 05:54:58 +00:00
|
|
|
extern RigMode rigMode;
|
2020-05-01 16:04:26 +00:00
|
|
|
|
2020-05-15 01:49:54 +00:00
|
|
|
extern bool keyerKeyDown;
|
|
|
|
|
2020-05-01 16:04:26 +00:00
|
|
|
#endif
|
2020-05-02 05:54:58 +00:00
|
|
|
|
|
|
|
//======================================================================
|
|
|
|
// EOF
|
|
|
|
//======================================================================
|