1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta name="robots" content="noindex">
<title>PCP Include File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.0.0 on Mon Jan 17 00:45:28 2000 -->
<center>
<a class="qindex"href="index.html">Main Page</a> <a class="qindex"href="annotated.html">Compound List</a> <a class="qindex"href="files.html">File List</a> <a class="qindex"href="headers.html">Header Files</a> <a class="qindex"href="sources.html">Sources</a> <a class="qindex"href="functions.html">Compound Members</a> <a class="qindex"href="globals.html">File Members</a> </center>
<hr><h1>pcp.h</h1>This is the verbatim text of the pcp.h include file.<div class="fragment"><pre>#ifndef PCP_H_
#define PCP_H_
/*
Copyright (C) 1999 PolyWog and Javaman for Ghetto.Org
This file is part of the PCR-1000 API Library.
The PCR-1000 API Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The PCR-1000 API Library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the PCR-1000 API Library; see the file LICENSE. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#include <pcrdef.h>
#include <pcomm.h>
#include <sys/termios.h> /* for tcflag_t */
#define PCPDefaultPort "/dev/pcr1000"
#define PCPDefaultSpeed B9600
struct <a class="code" href="class_pradinf.html">PRadInf</a> {
char PCPPort[64];
tcflag_t PCPSpeed;
char PCPInitSpeed[8];
int PCPVolume;
int PCPSquelch;
pcrfreq_t PCPFreq;
pcrcmd_t PCPMode[128];
pcrcmd_t PCPFilter[128];
bool PCPAutoUpdate;
const char *PCPToneSq;
float PCPToneSqFloat;
bool PCPAutoGain;
bool PCPNoiseBlank;
bool PCPRFAttenuator;
};
class <a class="code" href="class_pcp.html">PCP</a> {
public:
<a class="code" href="class_pcp.html#a0">PCP</a>(char *port=PCPDefaultPort, tcflag_t speed=PCPDefaultSpeed,
const char *name=0);
<a class="code" href="class_pcp.html#a1">~PCP</a>();
bool <a class="code" href="class_pcp.html#a2">PCPInit</a>(bool autoUpdate=false);
bool <a class="code" href="class_pcp.html#a3">PCPPowerUp</a>();
bool <a class="code" href="class_pcp.html#a4">PCPPowerDown</a>();
// basic radio methods
bool <a class="code" href="class_pcp.html#a5">PCPSetSpeed</a>(tcflag_t);
bool <a class="code" href="class_pcp.html#a6">PCPSetPort</a>(const char *);
bool <a class="code" href="class_pcp.html#a7">PCPSetVolume</a>(int);
bool <a class="code" href="class_pcp.html#a8">PCPSetSquelch</a>(int);
bool <a class="code" href="class_pcp.html#a9">PCPSetFreq</a>(pcrfreq_t);
bool <a class="code" href="class_pcp.html#a10">PCPSetMode</a>(const char *);
bool <a class="code" href="class_pcp.html#a11">PCPSetFilter</a>(const char *);
int <a class="code" href="class_pcp.html#a12">PCPSigStrength</a>();
const char *<a class="code" href="class_pcp.html#a13">PCPSigStrengthStr</a>();
// advanced radio methods
bool <a class="code" href="class_pcp.html#a14">PCPSetToneSq</a>(const char*);
bool <a class="code" href="class_pcp.html#a14">PCPSetToneSq</a>(float);
bool <a class="code" href="class_pcp.html#a16">PCPSetAutoGain</a>(bool);
bool <a class="code" href="class_pcp.html#a17">PCPSetNB</a>(bool);
bool <a class="code" href="class_pcp.html#a18">PCPSetRFAttenuator</a>(bool);
bool <a class="code" href="class_pcp.html#a19">PCPIsOn</a>();
bool <a class="code" href="class_pcp.html#a20">PCPQueryOn</a>();
bool <a class="code" href="class_pcp.html#a21">PCPQuerySquelch</a>();
const char *<a class="code" href="class_pcp.html#a22">PCPGetPort</a>();
tcflag_t <a class="code" href="class_pcp.html#a23">PCPGetSpeed_t</a>();
const char *<a class="code" href="class_pcp.html#a24">PCPGetSpeed</a>();
int <a class="code" href="class_pcp.html#a25">PCPGetVolume</a>();
const char *<a class="code" href="class_pcp.html#a26">PCPGetVolumeStr</a>();
int <a class="code" href="class_pcp.html#a27">PCPGetSquelch</a>();
const char *<a class="code" href="class_pcp.html#a28">PCPGetSquelchStr</a>();
pcrfreq_t <a class="code" href="class_pcp.html#a29">PCPGetFreq</a>();
const char *<a class="code" href="class_pcp.html#a30">PCPGetFreqStr</a>();
const pcrcmd_t *<a class="code" href="class_pcp.html#a31">PCPGetMode</a>();
const char *<a class="code" href="class_pcp.html#a32">PCPGetModeStr</a>();
const pcrcmd_t *<a class="code" href="class_pcp.html#a33">PCPGetFilter</a>();
const char *<a class="code" href="class_pcp.html#a34">PCPGetFilterStr</a>();
const char *<a class="code" href="class_pcp.html#a35">PCPGetToneSq</a>();
const char *<a class="code" href="class_pcp.html#a36">PCPGetToneSqStr</a>();
bool <a class="code" href="class_pcp.html#a37">PCPGetAutoGain</a>();
const char *<a class="code" href="class_pcp.html#a38">PCPGetAutoGainStr</a>();
bool <a class="code" href="class_pcp.html#a39">PCPGetNB</a>();
const char *<a class="code" href="class_pcp.html#a40">PCPGetNBStr</a>();
bool <a class="code" href="class_pcp.html#a41">PCPGetRFAttenuator</a>();
const char *<a class="code" href="class_pcp.html#a42">PCPGetRFAttenuatorStr</a>();
const <a class="code" href="class_pradinf.html">PRadInf</a> <a class="code" href="class_pcp.html#a43">PCPGetRadioInfo</a>();
private:
bool <a class="code" href="class_pcp.html#c0">PCPCheckResponse</a>();
<a class="code" href="class_pcomm.html">PComm</a> *PCPComm;
bool PCPStatus;
bool PCPErrRead;
char PCPTemp[256];
struct <a class="code" href="class_pradinf.html">PRadInf</a> *PCPRadio;
};
#endif /* PCP_H_ */
</div></pre><hr><address><small>Generated at Mon Jan 17 00:45:28 2000 for Icom PCR-1000 Library by
<a href="http://www.stack.nl/~dimitri/doxygen/index.html">
<img src="doxygen.gif" alt="doxygen" align=center border=0
width=118 height=53></a> 1.0.0 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
© 1997-1999</small></address>
</body>
</html>
|