MMDVMHost/Defines.h

97 lines
2 KiB
C
Raw Normal View History

2016-01-14 19:45:04 +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;
const unsigned char MODE_QUIT = 110U;
2016-01-14 19:45:04 +01:00
const unsigned char TAG_HEADER = 0x00U;
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;
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
};
enum class RPT_RF_STATE {
LISTENING,
LATE_ENTRY,
AUDIO,
DATA_AUDIO,
DATA,
REJECTED,
INVALID
};
enum class RPT_NET_STATE {
IDLE,
AUDIO,
DATA_AUDIO,
DATA
2016-01-19 18:43:33 +01:00
};
enum class DMR_BEACONS {
OFF,
NETWORK,
TIMED
};
enum class DMR_OVCM {
OFF,
RX_ON,
TX_ON,
ON,
FORCE_OFF
2019-11-17 03:57:58 +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