2016-01-14 19:45:04 +01:00
|
|
|
/*
|
2025-03-13 19:16:33 +01:00
|
|
|
* Copyright (C) 2015,2016,2017,2018,2020,2021,2025 by Jonathan Naylor G4KLX
|
2016-01-14 19:45:04 +01:00
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#if !defined(Defines_H)
|
|
|
|
|
#define Defines_H
|
|
|
|
|
|
2016-03-03 19:01:01 +01:00
|
|
|
const unsigned char MODE_IDLE = 0U;
|
2016-03-03 22:45:20 +01:00
|
|
|
const unsigned char MODE_DSTAR = 1U;
|
|
|
|
|
const unsigned char MODE_DMR = 2U;
|
|
|
|
|
const unsigned char MODE_YSF = 3U;
|
2016-09-06 20:09:46 +02:00
|
|
|
const unsigned char MODE_P25 = 4U;
|
2018-01-11 20:35:33 +01:00
|
|
|
const unsigned char MODE_NXDN = 5U;
|
2018-06-07 19:46:03 +02:00
|
|
|
const unsigned char MODE_POCSAG = 6U;
|
2020-04-11 21:42:05 +02:00
|
|
|
|
|
|
|
|
const unsigned char MODE_FM = 10U;
|
|
|
|
|
|
2016-09-27 20:47:07 +02:00
|
|
|
const unsigned char MODE_CW = 98U;
|
2016-03-03 22:45:20 +01:00
|
|
|
const unsigned char MODE_LOCKOUT = 99U;
|
2016-03-21 23:47:58 +01:00
|
|
|
const unsigned char MODE_ERROR = 100U;
|
2018-08-15 18:17:42 +02:00
|
|
|
const unsigned char MODE_QUIT = 110U;
|
2016-01-14 19:45:04 +01:00
|
|
|
|
|
|
|
|
const unsigned char TAG_HEADER = 0x00U;
|
2021-08-10 20:54:14 +02:00
|
|
|
const unsigned char TAG_DATA = 0x01U;
|
|
|
|
|
const unsigned char TAG_LOST = 0x02U;
|
|
|
|
|
const unsigned char TAG_EOT = 0x03U;
|
2016-01-14 19:45:04 +01:00
|
|
|
|
2020-12-15 17:21:07 +01:00
|
|
|
const unsigned int DSTAR_MODEM_DATA_LEN = 220U;
|
2020-11-28 21:53:54 +01:00
|
|
|
|
2025-03-13 19:16:33 +01:00
|
|
|
enum class HW_TYPE {
|
|
|
|
|
MMDVM,
|
|
|
|
|
DVMEGA,
|
|
|
|
|
MMDVM_ZUMSPOT,
|
|
|
|
|
MMDVM_HS_HAT,
|
|
|
|
|
MMDVM_HS_DUAL_HAT,
|
|
|
|
|
NANO_HOTSPOT,
|
|
|
|
|
NANO_DV,
|
|
|
|
|
D2RG_MMDVM_HS,
|
|
|
|
|
MMDVM_HS,
|
|
|
|
|
OPENGD77_HS,
|
|
|
|
|
SKYBRIDGE,
|
|
|
|
|
UNKNOWN
|
2016-09-05 18:40:43 +02:00
|
|
|
};
|
|
|
|
|
|
2025-03-13 19:16:33 +01:00
|
|
|
enum class RPT_RF_STATE {
|
|
|
|
|
LISTENING,
|
|
|
|
|
LATE_ENTRY,
|
|
|
|
|
AUDIO,
|
|
|
|
|
DATA_AUDIO,
|
|
|
|
|
DATA,
|
|
|
|
|
REJECTED,
|
|
|
|
|
INVALID
|
2016-02-25 20:54:18 +01:00
|
|
|
};
|
|
|
|
|
|
2025-03-13 19:16:33 +01:00
|
|
|
enum class RPT_NET_STATE {
|
|
|
|
|
IDLE,
|
|
|
|
|
AUDIO,
|
|
|
|
|
DATA_AUDIO,
|
|
|
|
|
DATA
|
2016-01-19 18:43:33 +01:00
|
|
|
};
|
|
|
|
|
|
2025-03-13 19:16:33 +01:00
|
|
|
enum class DMR_BEACONS {
|
|
|
|
|
OFF,
|
|
|
|
|
NETWORK,
|
|
|
|
|
TIMED
|
2019-11-05 09:42:21 +01:00
|
|
|
};
|
|
|
|
|
|
2025-03-13 19:16:33 +01:00
|
|
|
enum class DMR_OVCM {
|
|
|
|
|
OFF,
|
|
|
|
|
RX_ON,
|
|
|
|
|
TX_ON,
|
|
|
|
|
ON,
|
|
|
|
|
FORCE_OFF
|
2019-11-17 03:57:58 +01:00
|
|
|
};
|
|
|
|
|
|
2025-03-13 19:16:33 +01:00
|
|
|
enum class DSTAR_ACK {
|
|
|
|
|
BER,
|
|
|
|
|
RSSI,
|
|
|
|
|
SMETER
|
2021-05-15 06:51:12 +02:00
|
|
|
};
|
|
|
|
|
|
2016-01-14 19:45:04 +01:00
|
|
|
#endif
|