MMDVMHost-Private/Defines.h

67 lines
1.6 KiB
C
Raw Normal View History

2016-01-14 18:45:04 +00:00
/*
* Copyright (C) 2015,2016,2017,2018 by Jonathan Naylor G4KLX
2016-01-14 18:45:04 +00: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 18:01:01 +00:00
const unsigned char MODE_IDLE = 0U;
2016-03-03 21:45:20 +00:00
const unsigned char MODE_DSTAR = 1U;
const unsigned char MODE_DMR = 2U;
const unsigned char MODE_YSF = 3U;
2016-09-06 18:09:46 +00:00
const unsigned char MODE_P25 = 4U;
2016-09-27 18:47:07 +00:00
const unsigned char MODE_CW = 98U;
2016-03-03 21:45:20 +00:00
const unsigned char MODE_LOCKOUT = 99U;
2016-03-21 22:47:58 +00:00
const unsigned char MODE_ERROR = 100U;
2016-01-14 18:45:04 +00: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;
enum HW_TYPE {
HWT_MMDVM,
HWT_DVMEGA,
HWT_MMDVM_ZUMSPOT,
HWT_MMDVM_HS_HAT,
HWT_MMDVM_HS,
HWT_UNKNOWN
};
enum RPT_RF_STATE {
RS_RF_LISTENING,
RS_RF_LATE_ENTRY,
RS_RF_AUDIO,
RS_RF_DATA,
RS_RF_REJECTED,
RS_RF_INVALID
};
enum RPT_NET_STATE {
RS_NET_IDLE,
RS_NET_AUDIO,
RS_NET_DATA
2016-01-19 17:43:33 +00:00
};
enum B_STATUS {
BS_NO_DATA,
BS_DATA,
BS_MISSING
};
2016-01-14 18:45:04 +00:00
#endif