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 tuner's PAD channel 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.
|
Detailed Description
The PAD control supports the reading of "Program Associated Data" from a tuner node.
Define Documentation
| #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 |
Function Documentation
| hpi_err_t HPI_PAD_GetChannelName |
( |
const hpi_hsubsys_t * |
phSubSys, |
|
|
hpi_handle_t |
hControl, |
|
|
char * |
pszString, |
|
|
const uint32_t |
dwDataLength |
|
) |
| |
Get tuner's PAD channel name.
- Returns:
- 0 on success, or one of the HPI_ERROR_CODES.
- Parameters:
-
| phSubSys | Vestigial subsys handle (unused), may be set to NULL |
| 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_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.
- Returns:
- 0 on success, or one of the HPI_ERROR_CODES.
- Parameters:
-
| 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 pszData 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.
- Returns:
- 0 on success, or one of the HPI_ERROR_CODES.
- Parameters:
-
| 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.
- Returns:
- 0 on success, or one of the HPI_ERROR_CODES.
- Parameters:
-
| 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).
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 | Vestigial subsys handle (unused), may be set to NULL |
| hControl | Handle to PAD control. |
| pdwPTY | Pointer to returned Program Type. |
Get tuner's PAD RDS program identification (PI).
- Returns:
- 0 on success, or one of the HPI_ERROR_CODES.
- Parameters:
-
| 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 |
|
) |
| |