2021-02-06 04:59:31 +00:00
|
|
|
#ifndef __RigState_h__
|
|
|
|
#define __RigState_h__
|
|
|
|
|
2021-02-07 05:45:19 +00:00
|
|
|
#include <Arduino.h>
|
|
|
|
|
2021-02-10 04:58:07 +00:00
|
|
|
#define UBITX_VFOA_UPDATE 0x00000001
|
|
|
|
#define UBITX_VFOB_UPDATE 0x00000002
|
|
|
|
#define UBITX_RIT_UPDATE 0x00000004
|
|
|
|
#define UBITX_XIT_UPDATE 0x00000008
|
|
|
|
#define UBITX_FLAGS_UPDATE 0x00000010
|
2021-02-06 04:59:31 +00:00
|
|
|
|
2021-02-10 04:58:07 +00:00
|
|
|
#define UBITX_VFOB_FLAG 0x00000001
|
|
|
|
#define UBITX_SPLIT_FLAG 0x00000002
|
|
|
|
#define UBITX_RIT_FLAG 0x00000004
|
|
|
|
#define UBITX_XIT_FLAG 0x00000008
|
|
|
|
#define UBITX_CW_FLAG 0x00000010
|
|
|
|
#define UBITX_USB_FLAG 0x00000020
|
|
|
|
#define UBITX_TX_FLAG 0x00000040
|
2021-02-06 04:59:31 +00:00
|
|
|
|
|
|
|
struct UBitxRigState {
|
2021-02-10 04:58:07 +00:00
|
|
|
uint32_t header = 0;
|
2021-02-06 04:59:31 +00:00
|
|
|
uint32_t vfo[2];
|
2021-02-10 04:58:07 +00:00
|
|
|
int32_t rit;
|
|
|
|
int32_t xit;
|
|
|
|
uint32_t flags = 0;
|
2021-02-06 04:59:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|