7
Appendix A – Programming the PC-AM6-32 3
On the driver CD you will find Radcap.dll, Radcap.exp, Radcap.lib and
Radcap.h, which can be used to read and set the frequency of each station
or read the received signal strength indicator. The DLL exports the following
functions:
enum RadcapTunerType { RadcapAM, RadcapFM };
UINT __stdcall RadcapStationCount
(
enum RadcapTunerType Mode);
Parameters
Mode
Specifies AM or FM tuners.
Return value
The return value is the number of stations available.
Comments
This function will fail if the monitor program (Tuner.exe) or the AM
spectral display program (AmSpectrum.exe) is running.
BOOL __stdcall RadcapGetID
(
UINT
DeviceID,
enum
RadcapTunerType *pType,
int
*pTunerID, BOOL *pPaired);
Parameters
DeviceID
waveIn device ID
pType
Pointer to RadcapTunerType variable to receive the returned
device
type
pTunerID
Pointer to int variable to receive the returned Tuner ID number
pPaired
Pointer to BOOL variable to receive the returned tuner
configuration
Return value
If the function succeeds the return value is TRUE.
If the function fails, the return value is FALSE. To get extended error
information, call GetLastError ().
Comments
This function takes the Device ID number of a waveIn audio stream
and returns the tuner type, identifier and configuration information
for the corresponding tuner. If the audio stream does not correspond to
a Radcap tuner the function returns FALSE.
Appendix A – Programming the PC-AM6-32