Tuner control functions.


Detailed Description

These functions support tuner operations.


Functions

ASX32_API ASX_ERROR ASX_Tuner_EnumerateBand (ASX_HANDLE hTuner, const int nIndex, enum asxTUNERBAND *peBand, int *pnCount)
 Enumerate each tuner band option.
ASX32_API ASX_ERROR ASX_Tuner_GetBand (ASX_HANDLE hTuner, enum asxTUNERBAND *peBand)
 Get the tuner band.
ASX32_API ASX_ERROR ASX_Tuner_SetBand (ASX_HANDLE hTuner, const enum asxTUNERBAND eBand)
 Set the tuner band.
ASX32_API ASX_ERROR ASX_Tuner_SetFrequency (ASX_HANDLE hTuner, const unsigned long nFreq)
 Set the tuner frequency.
ASX32_API ASX_ERROR ASX_Tuner_GetFrequency (ASX_HANDLE hTuner, unsigned long *plFreq)
 Get the tuner frequency.
ASX32_API ASX_ERROR ASX_Tuner_GetFrequencyRange (ASX_HANDLE hTuner, const enum asxTUNERBAND eBand, unsigned long *plMin, unsigned long *plMax, unsigned long *plStep)
 Get the tuner frequency range in Hz.
ASX32_API ASX_ERROR ASX_Tuner_GetGainRange (ASX_HANDLE hTuner, float *fMin, float *fMax, float *fStep)
 Get the tuner gain range (in dB).
ASX32_API ASX_ERROR ASX_Tuner_SetGain (ASX_HANDLE hTuner, const float fTunerGain)
 Set the tuner gain.
ASX32_API ASX_ERROR ASX_Tuner_GetGain (ASX_HANDLE hTuner, float *pfTunerGain)
 Get the tuner gain.
ASX32_API ASX_ERROR ASX_Tuner_GetRFLevel (ASX_HANDLE hTuner, float *nRFLevel)
 Get the tuner RF level.
ASX32_API ASX_ERROR ASX_Tuner_GetRawRFLevel (ASX_HANDLE hTuner, int *nRawRFLevel)
 Get the Raw tuner RF level.
ASX32_API ASX_ERROR ASX_Tuner_GetStatus (ASX_HANDLE hTuner, unsigned int *puErrorStatusMask, unsigned int *puErrorStatus)
 Get the tuner status.
ASX32_API ASX_ERROR ASX_Tuner_GetMode (ASX_HANDLE hTuner, const enum asxTUNERMODE eMode, enum asxTUNERMODE *peSetting)
 Gets the tuner mode.
ASX32_API ASX_ERROR ASX_Tuner_SetMode (ASX_HANDLE hTuner, const enum asxTUNERMODE eMode, const enum asxTUNERMODE eSetting)
 Sets the tuner mode.
ASX32_API ASX_ERROR ASX_Tuner_EnumerateDeemphasis (ASX_HANDLE hTuner, const int nIndex, enum asxTUNERDEEMPHASIS *peDeemphasis, int *pnCount)
 Enumerates tuner de-emphasis options.
ASX32_API ASX_ERROR ASX_Tuner_SetDeemphasis (ASX_HANDLE hTuner, const enum asxTUNERDEEMPHASIS eDeemphasis)
 Set tuner de-emphasis.
ASX32_API ASX_ERROR ASX_Tuner_GetDeemphasis (ASX_HANDLE hTuner, enum asxTUNERDEEMPHASIS *peDeemphasis)
 Get tuner de-emphasis.
ASX32_API ASX_ERROR ASX_Tuner_EnumerateProgram (ASX_HANDLE hTuner, const int nIndex, enum asxTUNERPROGRAM *peProgram, int *pnCount)
 Enumerates tuner program options.
ASX32_API ASX_ERROR ASX_Tuner_SetProgram (ASX_HANDLE hTuner, const enum asxTUNERPROGRAM eProgram)
 Set tuner program.
ASX32_API ASX_ERROR ASX_Tuner_GetProgram (ASX_HANDLE hTuner, enum asxTUNERPROGRAM *peProgram)
 Get tuner program.
ASX32_API ASX_ERROR ASX_Tuner_GetHdRadioSignalQuality (ASX_HANDLE hTuner, int *pnSignalQuality)
 Get digital signal quality.
ASX32_API ASX_ERROR ASX_Tuner_GetHdRadioSdkVersion (ASX_HANDLE hTuner, char *szSdkVersion, const int nStringLength)
 Get a HD Radio tuner SDK version string.
ASX32_API ASX_ERROR ASX_Tuner_GetHdRadioDspVersion (ASX_HANDLE hTuner, char *szSdkVersion, const int nStringLength)
 Get a HD Radio tuner DSP version string.


Function Documentation

ASX32_API ASX_ERROR ASX_Tuner_EnumerateBand ASX_HANDLE  hTuner,
const int  nIndex,
enum asxTUNERBAND peBand,
int *  pnCount
 

Enumerate each tuner band option.

Parameters:
hTuner A handle to an ASX tuner control.
nIndex The index of the tuner band option to fetch.
peBand The returned tuner band option.
pnCount The total number of available tuner bands.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.
Examples:
tuner/main.c.

ASX32_API ASX_ERROR ASX_Tuner_EnumerateDeemphasis ASX_HANDLE  hTuner,
const int  nIndex,
enum asxTUNERDEEMPHASIS peDeemphasis,
int *  pnCount
 

Enumerates tuner de-emphasis options.

Parameters:
hTuner A handle to an ASX tuner control.
nIndex The number of the de-emphasis setting to retrieve.
peDeemphasis The de-emphasis option.
pnCount The total number of de-emphasis options.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Tuner_EnumerateProgram ASX_HANDLE  hTuner,
const int  nIndex,
enum asxTUNERPROGRAM peProgram,
int *  pnCount
 

Enumerates tuner program options.

The API only supports HDRadio in the USA.

Parameters:
hTuner A handle to an ASX tuner control.
nIndex The number of the program setting to retrieve.
peProgram The program option.
pnCount The total number of program options.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Tuner_GetBand ASX_HANDLE  hTuner,
enum asxTUNERBAND peBand
 

Get the tuner band.

Parameters:
hTuner A handle to an ASX tuner control.
peBand The returned tuner band. This must be one of the options returned by calls to ASX_Tuner_EnumerateBand().
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.
Examples:
tuner/main.c.

ASX32_API ASX_ERROR ASX_Tuner_GetDeemphasis ASX_HANDLE  hTuner,
enum asxTUNERDEEMPHASIS peDeemphasis
 

Get tuner de-emphasis.

Parameters:
hTuner A handle to an ASX tuner control.
peDeemphasis The returned de-emphasis value.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Tuner_GetFrequency ASX_HANDLE  hTuner,
unsigned long *  plFreq
 

Get the tuner frequency.

Parameters:
hTuner A handle to an ASX tuner control.
plFreq The returned frequency.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.
Examples:
tuner/main.c.

ASX32_API ASX_ERROR ASX_Tuner_GetFrequencyRange ASX_HANDLE  hTuner,
const enum asxTUNERBAND  eBand,
unsigned long *  plMin,
unsigned long *  plMax,
unsigned long *  plStep
 

Get the tuner frequency range in Hz.

Parameters:
hTuner A handle to an ASX tuner control.
eBand Band to get frequency range of.
plMin The returned minimum frequency in Hz.
plMax The returned maximum frequency in Hz.
plStep The returned frequency step in Hz.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Tuner_GetGain ASX_HANDLE  hTuner,
float *  pfTunerGain
 

Get the tuner gain.

Parameters:
hTuner A handle to an ASX tuner control.
pfTunerGain The returned gain in dB.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.
Examples:
tuner/main.c.

ASX32_API ASX_ERROR ASX_Tuner_GetGainRange ASX_HANDLE  hTuner,
float *  fMin,
float *  fMax,
float *  fStep
 

Get the tuner gain range (in dB).

Some tuners controls support a gain adjustment and this control will retunn the range of gain settings supported.

Parameters:
hTuner A handle to an ASX tuner control.
fMin The returned minimum gain in dB.
fMax The returned maximum gain in dB.
fStep The returned gain step in dB.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.
Examples:
tuner/main.c.

ASX32_API ASX_ERROR ASX_Tuner_GetHdRadioDspVersion ASX_HANDLE  hTuner,
char *  szSdkVersion,
const int  nStringLength
 

Get a HD Radio tuner DSP version string.

Parameters:
hTuner A handle to an ASX tuner control.
szSdkVersion - the returned SDK Version string
nStringLength - length of string being passed in
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Tuner_GetHdRadioSdkVersion ASX_HANDLE  hTuner,
char *  szSdkVersion,
const int  nStringLength
 

Get a HD Radio tuner SDK version string.

Parameters:
hTuner A handle to an ASX tuner control.
szSdkVersion - the returned SDK Version string
nStringLength - length of string being passed in
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Tuner_GetHdRadioSignalQuality ASX_HANDLE  hTuner,
int *  pnSignalQuality
 

Get digital signal quality.

The API only supports HDRadio in the USA.

Parameters:
hTuner A handle to an ASX tuner control.
pnSignalQuality - the returned signal quality between 0(poor)..6(excellent).
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Tuner_GetMode ASX_HANDLE  hTuner,
const enum asxTUNERMODE  eMode,
enum asxTUNERMODE peSetting
 

Gets the tuner mode.

Currently this can only be used for turning the RSS level reading on and off on an MT4039 tuner.

Parameters:
hTuner A handle to an ASX tuner control.
eMode The only valid parameter for this call is asxTUNERMODE_RSS.
peSetting Returns the mode setting. Only current valid values are asxTUNERMODE_RSS_ENABLE or asxTUNERMODE_RSS_DISABLE.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Tuner_GetProgram ASX_HANDLE  hTuner,
enum asxTUNERPROGRAM peProgram
 

Get tuner program.

The API only supports HDRadio in the USA.

Parameters:
hTuner A handle to an ASX tuner control.
peProgram The returned program setting.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Tuner_GetRawRFLevel ASX_HANDLE  hTuner,
int *  nRawRFLevel
 

Get the Raw tuner RF level.

Parameters:
hTuner A handle to an ASX tuner control.
nRawRFLevel The returned Raw RF level in whatever units the tuner supports.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Tuner_GetRFLevel ASX_HANDLE  hTuner,
float *  nRFLevel
 

Get the tuner RF level.

Parameters:
hTuner A handle to an ASX tuner control.
nRFLevel The returned RF level in dBuV.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.
Examples:
tuner/main.c.

ASX32_API ASX_ERROR ASX_Tuner_GetStatus ASX_HANDLE  hTuner,
unsigned int *  puErrorStatusMask,
unsigned int *  puErrorStatus
 

Get the tuner status.

This function gets the tuner status and indicates which bits are valid for the current status reading.

Parameters:
hTuner A handle to an ASX tuner control.
puErrorStatusMask The returned status mask. This mask indicates which status bits are valid in puErrorStatus. Bits are defined by asxTUNER_STATUS.
puErrorStatus The returned status bits.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.
Examples:
tuner/main.c.

ASX32_API ASX_ERROR ASX_Tuner_SetBand ASX_HANDLE  hTuner,
const enum asxTUNERBAND  eBand
 

Set the tuner band.

Parameters:
hTuner A handle to an ASX tuner control.
eBand The tuner band to set. This must be one of the options returned by calls to ASX_Tuner_EnumerateBand().
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.
Examples:
tuner/main.c.

ASX32_API ASX_ERROR ASX_Tuner_SetDeemphasis ASX_HANDLE  hTuner,
const enum asxTUNERDEEMPHASIS  eDeemphasis
 

Set tuner de-emphasis.

Parameters:
hTuner A handle to an ASX tuner control.
eDeemphasis The de-emphasis value to set.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Tuner_SetFrequency ASX_HANDLE  hTuner,
const unsigned long  nFreq
 

Set the tuner frequency.

This function sets the tuner frequency subject to the allowable range of frequencies for the current tuner band setting.

Parameters:
hTuner A handle to an ASX tuner control.
nFreq The frequency to set in kHz.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.
Examples:
tuner/main.c.

ASX32_API ASX_ERROR ASX_Tuner_SetGain ASX_HANDLE  hTuner,
const float  fTunerGain
 

Set the tuner gain.

Parameters:
hTuner A handle to an ASX tuner control.
fTunerGain The gain to set in dB.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.
Examples:
tuner/main.c.

ASX32_API ASX_ERROR ASX_Tuner_SetMode ASX_HANDLE  hTuner,
const enum asxTUNERMODE  eMode,
const enum asxTUNERMODE  eSetting
 

Sets the tuner mode.

Currently this can only be used for turning the RSS level reading on and off on an MT4039 tuner.

Parameters:
hTuner A handle to an ASX tuner control.
eMode The only valid parameter for this call is asxTUNERMODE_RSS.
eSetting The mode setting. Only current valid values are asxTUNERMODE_RSS_ENABLE or asxTUNERMODE_RSS_DISABLE.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Tuner_SetProgram ASX_HANDLE  hTuner,
const enum asxTUNERPROGRAM  eProgram
 

Set tuner program.

To The API only supports HDRadio in the USA.

Parameters:
hTuner A handle to an ASX tuner control.
eProgram The program to set.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.


Generated on Tue Nov 18 13:03:41 2008 for ASX by  doxygen 1.4.6-NO