13
Appendix A – Programming the PC-FM6-32 3
TunerID
Index of the station to be read, beginning at zero for the first
station.
pLocalTime
Pointer to a SYSTEMTIME structure into which the broadcast date
and time are written using the local timezone offset.
Return value
The return value TRUE if the function succeeds, otherwise it is FALSE.
To obtain extended error information, call GetLastError ().
Comments
This function will fail with error code ERROR_NOT_FOUND if no date
time information has been received, or ERROR_DEVICE_NOT_READY if
no RDS signal is being received.
BOOL __stdcall RadcapRDSGetUtcDateTime
(
enum RadcapTunerType Mode,
int
TunerID,
SYSTEMTIME *pLocalTime );
Parameters
Mode
Specifies AM or FM tuner.
TunerID
Index of the station to be read, beginning at zero for the first
station.
pLocalTime
Pointer to a SYSTEMTIME structure into which the broadcast date
and time are written in UTC timezone.
Return value
The return value TRUE if the function succeeds, otherwise it is FALSE.
To obtain extended error information, call GetLastError ().
Comments
This function will fail with error code ERROR_NOT_FOUND if no date
time information has been received, or ERROR_DEVICE_NOT_READY if
no RDS signal is being received.
For other RDS applications not covered by the preceding functions, the raw
data groups can be streamed directly to an application using the following
functions.
RDSStreamingHandle __stdcall RadcapRDSOpenRawStreaming
(
enum RadcapTunerType Mode,
int
TunerID,
RDSRawStreamingCallback
*pCallback,
unsigned short Mask );
Parameters
Mode
Specifies AM or FM tuner.
TunerID
Index of the station to be read, beginning at zero for the first
station.
pCallback
A pointer to a caller-supplied callback function of the form
void __stdcall MyCallbackFunction (RDSRawData const *pData
)
Mask
A 16-bit value to select which of the 16 RDS group types to stream.
Setting a mask bit to 1 enables the corresponding group type,
where the least-significant-bit corresponds to Group Type 0 and
the most significant-bit corresponds to Group Type 15. Set Mask to
0xffff to receive all groups.
Return value
If the function succeeds, the return value is a handle for use in
subsequently calling RadcapRDSCloseRawStreaming (), otherwise it is
NULL. To obtain extended error information, call GetLastError ().
Содержание PC-FM6-32
Страница 23: ...Notes ...
Страница 24: ...www sonifex co uk t 44 0 1933 650 700 f 44 0 1933 650 726 sales sonifex co uk ...