2020-05-02 01:54:58 -04:00
|
|
|
//======================================================================
|
|
|
|
// ubitx_iop.h
|
|
|
|
//======================================================================
|
|
|
|
|
|
|
|
#ifndef __ubitx_iop_h__
|
|
|
|
#define __ubitx_iop_h__
|
|
|
|
|
2020-05-03 01:37:21 -04:00
|
|
|
#include "config.h"
|
2020-05-02 01:54:58 -04:00
|
|
|
#include "audio.h"
|
|
|
|
#include "cat.h"
|
|
|
|
#include "eeprom.h"
|
2020-05-14 21:49:54 -04:00
|
|
|
#include "keyer.h"
|
2020-05-01 12:04:26 -04:00
|
|
|
|
|
|
|
// comment this out to disable debugging code
|
|
|
|
//#define DEBUG
|
|
|
|
|
2020-05-17 00:48:39 -04: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 01:54:58 -04:00
|
|
|
|
2020-05-08 01:19:07 -04:00
|
|
|
enum TxState {
|
|
|
|
TX_OFF = 0,
|
|
|
|
TX_MIC,
|
|
|
|
TX_LINE,
|
|
|
|
TX_CAT,
|
|
|
|
TX_KEYER,
|
|
|
|
};
|
|
|
|
|
2020-05-02 01:54:58 -04:00
|
|
|
extern RigMode rigMode;
|
2020-05-01 12:04:26 -04:00
|
|
|
|
2020-05-14 21:49:54 -04:00
|
|
|
extern bool keyerKeyDown;
|
|
|
|
|
2020-05-01 12:04:26 -04:00
|
|
|
#endif
|
2020-05-02 01:54:58 -04:00
|
|
|
|
|
|
|
//======================================================================
|
|
|
|
// EOF
|
|
|
|
//======================================================================
|