AudioScience HPI Version_4.24.1
|
The PAD control supports the reading of "Program Associated Data" from a tuner node. More...
Defines | |
#define | HPI_PAD_CHANNEL_NAME_LEN 16 |
The text string containing the station/channel combination. | |
#define | HPI_PAD_ARTIST_LEN 64 |
The text string containing the artist. | |
#define | HPI_PAD_TITLE_LEN 64 |
The text string containing the title. | |
#define | HPI_PAD_COMMENT_LEN 256 |
The text string containing the comment. | |
#define | HPI_PAD_PROGRAM_TYPE_INVALID 0xffff |
The PTY when the tuner has not received any PTY. | |
Functions | |
hpi_err_t | HPI_PAD_GetChannelName (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, char *pszString, const uint32_t dwDataLength) |
Get an tuners's HD-Radio station name. | |
hpi_err_t | HPI_PAD_GetArtist (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, char *pszString, const uint32_t dwDataLength) |
Get tuner's PAD artist information. | |
hpi_err_t | HPI_PAD_GetTitle (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, char *pszString, const uint32_t dwDataLength) |
Get tuner's PAD title information. | |
hpi_err_t | HPI_PAD_GetComment (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, char *pszString, const uint32_t dwDataLength) |
Get tuner's PAD comment information. | |
hpi_err_t | HPI_PAD_GetProgramType (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, uint32_t *pdwPTY) |
Get tuner's PAD program type (PTY). | |
hpi_err_t | HPI_PAD_GetRdsPI (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, uint32_t *pdwPI) |
Get tuner's PAD RDS program identification (PI). | |
hpi_err_t | HPI_PAD_GetProgramTypeString (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, const uint32_t dwDataType, const uint32_t nPTY, char *pszData, const uint32_t dwDataLength) |
Translate tuner's PTY into a string. |
The PAD control supports the reading of "Program Associated Data" from a tuner node.
It supports Radio Data System (RDS) in FM analog mode and Program Services Data (PSD) in HD-Radio mode.
For DAB PAD data support, see the HPI_Tuner_DAB functions
#define HPI_PAD_CHANNEL_NAME_LEN 16 |
The text string containing the station/channel combination.
#define HPI_PAD_ARTIST_LEN 64 |
The text string containing the artist.
#define HPI_PAD_TITLE_LEN 64 |
The text string containing the title.
#define HPI_PAD_COMMENT_LEN 256 |
The text string containing the comment.
#define HPI_PAD_PROGRAM_TYPE_INVALID 0xffff |
The PTY when the tuner has not received any PTY.
Referenced by HPI_PAD_GetProgramTypeString().
hpi_err_t HPI_PAD_GetChannelName | ( | const hpi_hsubsys_t * | phSubSys, |
hpi_handle_t | hControl, | ||
char * | pszString, | ||
const uint32_t | dwDataLength | ||
) |
Get an tuners's HD-Radio station name.
This function returns:
phSubSys | Vestigial subsys handle (unused), may be set to NULL |
hControl | Handle to PAD control. |
pszString | Pointer to channel/station name string buffer. |
dwDataLength | The length of the passed in pszString in bytes. Minimum length is HPI_PAD_CHANNEL_NAME_LEN. |
hpi_err_t HPI_PAD_GetArtist | ( | const hpi_hsubsys_t * | phSubSys, |
hpi_handle_t | hControl, | ||
char * | pszString, | ||
const uint32_t | dwDataLength | ||
) |
Get tuner's PAD artist information.
This function returns:
phSubSys | Vestigial subsys handle (unused), may be set to NULL |
hControl | Handle to PAD control. |
pszString | Pointer to artist string buffer. |
dwDataLength | The length of the passed in pszString in bytes. Minimum length is HPI_PAD_ARTIST_LEN. |
hpi_err_t HPI_PAD_GetTitle | ( | const hpi_hsubsys_t * | phSubSys, |
hpi_handle_t | hControl, | ||
char * | pszString, | ||
const uint32_t | dwDataLength | ||
) |
Get tuner's PAD title information.
This function returns:
phSubSys | Vestigial subsys handle (unused), may be set to NULL |
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_t HPI_PAD_GetComment | ( | const hpi_hsubsys_t * | phSubSys, |
hpi_handle_t | hControl, | ||
char * | pszString, | ||
const uint32_t | dwDataLength | ||
) |
Get tuner's PAD comment information.
phSubSys | Vestigial subsys handle (unused), may be set to NULL |
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_t HPI_PAD_GetProgramType | ( | const hpi_hsubsys_t * | phSubSys, |
hpi_handle_t | hControl, | ||
uint32_t * | pdwPTY | ||
) |
Get tuner's PAD program type (PTY).
This function returns:
If the PTY field has not been set by the tuner, HPI_PAD_PROGRAM_TYPE_INVALID (0xffff) is returned.
phSubSys | Vestigial subsys handle (unused), may be set to NULL |
hControl | Handle to PAD control. |
pdwPTY | Pointer to returned Program Type. |
hpi_err_t HPI_PAD_GetRdsPI | ( | const hpi_hsubsys_t * | phSubSys, |
hpi_handle_t | hControl, | ||
uint32_t * | pdwPI | ||
) |
Get tuner's PAD RDS program identification (PI).
This function returns:
phSubSys | Vestigial subsys handle (unused), may be set to NULL |
hControl | Handle to PAD control. |
pdwPI | Pointer to returned Program Identification. |
hpi_err_t HPI_PAD_GetProgramTypeString | ( | const hpi_hsubsys_t * | phSubSys, |
hpi_handle_t | hControl, | ||
const uint32_t | dwDataType, | ||
const uint32_t | nPTY, | ||
char * | pszData, | ||
const uint32_t | dwDataLength | ||
) |
Translate tuner's PTY into a string.
phSubSys | Vestigial subsys handle (unused), may be set to NULL |
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. |
References HPI_ERROR_INVALID_OPERATION, HPI_PAD_PROGRAM_TYPE_INVALID, and HPI_RDS_Get_PTY_Translate().