PAD Control
[Mixer and Controls]

The PAD control supports the reading of "Program Associated Data" from a tuner node. More...

Functions

HPI_ERR HPI_API HPI_PAD_GetChannelName (HPI_HSUBSYS *phSubSys, HPI_HCONTROL hControl, char *pszString, const HW32 dwDataLength)
 Get tuner's PAD channel name.
HPI_ERR HPI_API HPI_PAD_GetArtist (HPI_HSUBSYS *phSubSys, HPI_HCONTROL hControl, char *pszString, const HW32 dwDataLength)
 Get tuner's PAD artist information.
HPI_ERR HPI_API HPI_PAD_GetTitle (HPI_HSUBSYS *phSubSys, HPI_HCONTROL hControl, char *pszString, const HW32 dwDataLength)
 Get tuner's PAD title information.
HPI_ERR HPI_API HPI_PAD_GetComment (HPI_HSUBSYS *phSubSys, HPI_HCONTROL hControl, char *pszString, const HW32 dwDataLength)
 Get tuner's PAD comment information.
HPI_ERR HPI_API HPI_PAD_GetProgramType (HPI_HSUBSYS *phSubSys, HPI_HCONTROL hControl, HW32 *pdwPTY)
 Get tuner's PAD program type (PTY).
HPI_ERR HPI_API HPI_PAD_GetRdsPI (HPI_HSUBSYS *phSubSys, HPI_HCONTROL hControl, HW32 *pdwPI)
 Get tuner's PAD RDS program identification (PI).
HPI_ERR HPI_API HPI_PAD_GetProgramTypeString (HPI_HSUBSYS *phSubSys, HPI_HCONTROL hControl, const HW32 dwDataType, const HW32 nPTY, char *pszData, const HW32 dwDataLength)
 Translate tuner's PTY into a string.

Detailed Description

The PAD control supports the reading of "Program Associated Data" from a tuner node.


Function Documentation

HPI_ERR HPI_API HPI_PAD_GetChannelName HPI_HSUBSYS *  phSubSys,
HPI_HCONTROL  hControl,
char *  pszString,
const HW32  dwDataLength
 

Get tuner's PAD channel name.

Returns:
0 on success, or one of the HPI Error codes.
Parameters:
phSubSys  HPI subsystem handle.
hControl  Handle to PAD control.
pszString  Pointer to channel name string buffer.
dwDataLength  The length of the passed in pszData in bytes. Minimum length is HPI_PAD_CHANNEL_NAME_LEN.

HPI_ERR HPI_API HPI_PAD_GetArtist HPI_HSUBSYS *  phSubSys,
HPI_HCONTROL  hControl,
char *  pszString,
const HW32  dwDataLength
 

Get tuner's PAD artist information.

Returns:
0 on success, or one of the HPI Error codes.
Parameters:
phSubSys  HPI subsystem handle.
hControl  Handle to PAD control.
pszString  Pointer to artist string buffer.
dwDataLength  The length of the passed in pszData in bytes. Minimum length is HPI_PAD_ARTIST_LEN.

HPI_ERR HPI_API HPI_PAD_GetTitle HPI_HSUBSYS *  phSubSys,
HPI_HCONTROL  hControl,
char *  pszString,
const HW32  dwDataLength
 

Get tuner's PAD title information.

Returns:
0 on success, or one of the HPI Error codes.
Parameters:
phSubSys  HPI subsystem handle.
hControl  Handle to PAD control.
pszString  Pointer to title string buffer.
dwDataLength  The length of the passed in pszData in bytes. Minimum length is HPI_PAD_TITLE_LEN.

HPI_ERR HPI_API HPI_PAD_GetComment HPI_HSUBSYS *  phSubSys,
HPI_HCONTROL  hControl,
char *  pszString,
const HW32  dwDataLength
 

Get tuner's PAD comment information.

Returns:
0 on success, or one of the HPI Error codes.
Parameters:
phSubSys  HPI subsystem handle.
hControl  Handle to PAD control.
pszString  Pointer to comment string buffer.
dwDataLength  The length of the passed in pszData in bytes. Minimum length is HPI_PAD_COMMENT_LEN.

HPI_ERR HPI_API HPI_PAD_GetProgramType HPI_HSUBSYS *  phSubSys,
HPI_HCONTROL  hControl,
HW32 *  pdwPTY
 

Get tuner's PAD program type (PTY).

If the PTY field has not been set by the tuner, HPI_PAD_PROGRAM_TYPE_INVALID (0xffff) is returned.

Returns:
0 on success, or one of the HPI Error codes.
Parameters:
phSubSys  HPI subsystem handle.
hControl  Handle to PAD control.
pdwPTY  Pointer to returned Program Type.

HPI_ERR HPI_API HPI_PAD_GetRdsPI HPI_HSUBSYS *  phSubSys,
HPI_HCONTROL  hControl,
HW32 *  pdwPI
 

Get tuner's PAD RDS program identification (PI).

Returns:
0 on success, or one of the HPI Error codes.
Parameters:
phSubSys  HPI subsystem handle.
hControl  Handle to PAD control.
pdwPI  Pointer to returned Program Identification.

HPI_ERR HPI_API HPI_PAD_GetProgramTypeString HPI_HSUBSYS *  phSubSys,
HPI_HCONTROL  hControl,
const HW32  dwDataType,
const HW32  nPTY,
char *  pszData,
const HW32  dwDataLength
 

Translate tuner's PTY into a string.

Returns:
0 on success, or one of the HPI Error codes.
Parameters:
phSubSys  HPI subsystem handle.
hControl  Handle to PAD control.
dwDataType  Data type. One of eHPI_RDS_type.
nPTY  The PTY value to translate.
pszData  Pointer to the returned data string.
dwDataLength  String length. Should be 32 or larger.


Generated on Tue Nov 18 12:59:31 2008 for AudioScience HPI by  doxygen 1.4.6-NO