00001 #ifndef PCRDEF_H
00002 #define PCRDEF_H
00003 /*
00004 Copyright (C) 1999 PolyWog and Javaman for Ghetto.Org
00005 This file is part of the PCR-1000 API Library.
00006
00007 The PCR-1000 API Library is free software; you can redistribute it and/or
00008 modify it under the terms of the GNU Library General Public License as
00009 published by the Free Software Foundation; either version 2 of the
00010 License, or (at your option) any later version.
00011
00012 The PCR-1000 API Library is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00015 Library General Public License for more details.
00016
00017 You should have received a copy of the GNU Library General Public
00018 License along with the PCR-1000 API Library; see the file LICENSE. If not,
00019 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00020 Boston, MA 02111-1307, USA.
00021 */
00022
00023 /*
00024 This is the PCR-1000 Command Set define file. Basically this file
00025 consists of all of the pertinent command prefixes that are sent to
00026 the radio.
00027 */
00028
00030 typedef char pcrcmd_t;
00032 typedef unsigned long int pcrfreq_t;
00033
00035 #define PCRQST "\?"
00037 #define PCRECMD "\x0d\x0a"
00038
00040
00049 #define PCRINITM "H101\x0d\x0aG300\x0d\x0a"
00051
00060 #define PCRINITA "H101\x0d\x0aG301\x0d\x0a"
00061
00063 #define PCRSIG "G3"
00065 #define PCRSIGOFF "G300"
00067 #define PCRSIGON "G301"
00069 #define PCRSIGBOFF "G302"
00071 #define PCRSIGBON "G303"
00072
00074 #define PCRPWR "H1"
00076 #define PCRPWROFF "H100"
00078 #define PCRPWRON "H101"
00079
00081 #define PCRVOL "J40"
00083 #define PCRVOLON "J4075"
00085 #define PCRVOLOFF "J4000"
00086
00088 #define PCRSQL "J41"
00090 #define PCRSQLO "J4100"
00092 #define PCRSQLC "J4145"
00093
00095 #define PCRIF "J43"
00097 #define PCRIFC "J4380"
00098
00100 #define PCRAGC "J45"
00102 #define PCRAGCOFF "J4500"
00104 #define PCRAGCON "J4501"
00105
00107 #define PCRNB "J46"
00109 #define PCRNBOFF "J4600"
00111 #define PCRNBON "J4601"
00112
00114 #define PCRRFA "J47"
00116 #define PCRRFAOFF "J4700"
00118 #define PCRRFAON "J4701"
00119
00121 #define PCRVSC "J50"
00123 #define PCRVSCOFF "J5000"
00125 #define PCRVSCON "J5001"
00126
00128 #define PCRTSQL "J51"
00130 #define PCRTSQLOFF "J5100"
00131
00132 #define PCRUNK01 "J4A" /* Unknown - 1 */
00133 #define PCRUNK02 "J4A80" /* Unknown - 2 */
00134
00136 #define PCRTFLTR "LD82"
00138 #define PCRTFLTR00 "LD8200"
00140 #define PCRTFLTR01 "LD8201"
00141
00143 #define PCRFRQ "K0"
00145 #define MAXFRQLEN 10
00147 #define LOWERFRQ 50000
00149 #define UPPERFRQ 1300000000
00150
00152 #define PCRMODLSB "00"
00154 #define PCRMODUSB "01"
00156 #define PCRMODAM "02"
00158 #define PCRMODCW "03"
00160 #define PCRMODUNK "04"
00162 #define PCRMODNFM "05"
00164 #define PCRMODWFM "06"
00165
00167 #define PCRFLTR3 "00"
00169 #define PCRFLTR6 "01"
00171 #define PCRFLTR15 "02"
00173 #define PCRFLTR50 "03"
00175 #define PCRFLTR230 "04"
00176
00177
00179 #define PCRQSQL "I0"
00181 #define PCRQRST "I1"
00183 #define PCRQOFST "I2"
00185 #define PCRQDTMF "I3"
00187 #define PCRQWAREZ "G4"
00189 #define PCRQDSP "GD"
00191 #define PCRQCTY "GE"
00192
00194 #define PCRAOK "G000"
00196 #define PCRABAD "G001"
00198 #define PCRADSP PCRQDSP
00200 #define PCRADSPNO "GD00"
00202 #define PCRADSPOK "GD01"
00204 #define PCRASQL PCRQSQL
00206 #define PCRASQLCL "04"
00208 #define PCRASQLOPN "07"
00210
00212 #define PCRARST PCRQRST
00214
00216 #define PCRAOFST PCRQOFST
00218 #define PCRAOFSTCTR "I280"
00219
00221 #define PCRADTMF PCRQDTMF
00223 #define PCRADTMFNO "I300"
00225 #define PCRADTMF0 "I310"
00227 #define PCRADTMF1 "I311"
00229 #define PCRADTMF2 "I312"
00231 #define PCRADTMF3 "I313"
00233 #define PCRADTMF4 "I314"
00235 #define PCRADTMF5 "I315"
00237 #define PCRADTMF6 "I316"
00239 #define PCRADTMF7 "I317"
00241 #define PCRADTMF8 "I318"
00243 #define PCRADTMF9 "I319"
00245 #define PCRADTMFA "I31A"
00247 #define PCRADTMFB "I31B"
00249 #define PCRADTMFC "I31C"
00251 #define PCRADTMFD "I31D"
00253 #define PCRADTMFS "I31E"
00255 #define PCRADTMFP "I31F"
00256
00257 /* Radio miscellaneous functions */
00259 #define PCRBD "G1"
00261 #define PCRBD300 "G100"
00263 #define PCRBD1200 "G101"
00265 #define PCRBD2400 "G102"
00267 #define PCRBD9600 "G103"
00269 #define PCRBD19200 "G104"
00271 #define PCRBD38400 "G105"
00272
00273 /* BandScope functions */
00275 #define PCRSBSC "ME00001"
00277 #define PCRRBSC "NE1"
00279 #define PCRRBSC0 "NE100"
00281 #define PCRRBSC1 "NE110"
00283 #define PCRRBSC2 "NE120"
00285 #define PCRRBSC3 "NE130"
00287 #define PCRRBSC4 "NE140"
00289 #define PCRRBSC5 "NE150"
00291 #define PCRRBSC6 "NE160"
00293 #define PCRRBSC7 "NE170"
00295 #define PCRRBSC8 "NE180"
00297 #define PCRRBSC9 "NE190"
00299 #define PCRRBSCA "NE1A0"
00301 #define PCRRBSCB "NE1B0"
00303 #define PCRRBSCC "NE1C0"
00305 #define PCRRBSCD "NE1D0"
00307 #define PCRRBSCE "NE1E0"
00309 #define PCRRBSCF "NE1F0"
00310
00311
00312
00313 #endif /* PCRDEF_H */