41 #define CA_DBG(X) STB_SPDebugWrite X 65 CA_DBG((
"%s", __FUNCTION__));
92 CA_DBG((
"%s(demux=%u, serv_id=%u, ca_ids=%p, num_ca_ids=%u)", __FUNCTION__, demux, serv_id,
95 USE_UNWANTED_PARAM(demux);
96 USE_UNWANTED_PARAM(serv_id);
97 USE_UNWANTED_PARAM(ca_ids);
98 USE_UNWANTED_PARAM(num_ca_ids);
99 USE_UNWANTED_PARAM(handle);
115 CA_DBG((
"%s(0x%lx)", __FUNCTION__, handle));
117 USE_UNWANTED_PARAM(handle);
133 CA_DBG((
"%s(0x%lx)", __FUNCTION__, handle));
135 USE_UNWANTED_PARAM(handle);
148 CA_DBG((
"%s(0x%lx)", __FUNCTION__, handle));
150 USE_UNWANTED_PARAM(handle);
166 CA_DBG((
"%s(handle=0x%lx, pmt_data=%p, data_len=%u)", __FUNCTION__, handle, pmt_data, data_len));
168 USE_UNWANTED_PARAM(handle);
169 USE_UNWANTED_PARAM(pmt_data);
170 USE_UNWANTED_PARAM(data_len);
187 CA_DBG((
"%s(handle=0x%lx, cat_data=%p, data_len=%u)", __FUNCTION__, handle, cat_data, data_len));
189 USE_UNWANTED_PARAM(handle);
190 USE_UNWANTED_PARAM(cat_data);
191 USE_UNWANTED_PARAM(data_len);
208 CA_DBG((
"%s(handle=0x%lx, bat_data=%p, data_len=%u)", __FUNCTION__, handle, bat_data, data_len));
210 USE_UNWANTED_PARAM(handle);
211 USE_UNWANTED_PARAM(bat_data);
212 USE_UNWANTED_PARAM(data_len);
229 CA_DBG((
"%s(handle=0x%lx, nit_data=%p, data_len=%u)", __FUNCTION__, handle, nit_data, data_len));
231 USE_UNWANTED_PARAM(handle);
232 USE_UNWANTED_PARAM(nit_data);
233 USE_UNWANTED_PARAM(data_len);
247 CA_DBG((
"%s(handle=0x%lx, status=%u)", __FUNCTION__, handle, decode_status));
249 USE_UNWANTED_PARAM(handle);
250 USE_UNWANTED_PARAM(decode_status);
264 CA_DBG((
"%s(handle=0x%lx, status=%u)", __FUNCTION__, handle, decode_status));
266 USE_UNWANTED_PARAM(handle);
267 USE_UNWANTED_PARAM(decode_status);
281 CA_DBG((
"%s(handle=0x%lx, status=%u)", __FUNCTION__, handle, decode_status));
283 USE_UNWANTED_PARAM(handle);
284 USE_UNWANTED_PARAM(decode_status);
300 CA_DBG((
"%s(handle=0x%lx, status=%u)", __FUNCTION__, handle, status));
302 USE_UNWANTED_PARAM(handle);
303 USE_UNWANTED_PARAM(status);
319 CA_DBG((
"%s(ca_ids=%p, num_ca_ids=%u)", __FUNCTION__, ca_ids, num_ca_ids));
321 USE_UNWANTED_PARAM(ca_ids);
322 USE_UNWANTED_PARAM(num_ca_ids);
340 CA_DBG((
"%s(ca_ids=%p, num_ca_ids=%u)", __FUNCTION__, ca_ids, num_ca_ids));
342 USE_UNWANTED_PARAM(ca_ids);
343 USE_UNWANTED_PARAM(num_ca_ids);
367 USE_UNWANTED_PARAM(pmt_data);
368 USE_UNWANTED_PARAM(pid_array);
370 CA_DBG((
"%s(pmt_data=%p, pid_array=%u): %u", __FUNCTION__, pmt_data, pid_array, num_pids));
386 CA_DBG((
"%s(pid_array=%p, num_pids=%u)", __FUNCTION__, pid_array, num_pids));
388 USE_UNWANTED_PARAM(pid_array);
389 USE_UNWANTED_PARAM(num_pids);
403 CA_DBG((
"%s(handle=0x%lx, status=%u)", __FUNCTION__, handle, status));
405 USE_UNWANTED_PARAM(handle);
406 USE_UNWANTED_PARAM(status);
void STB_CAReportCAT(U32BIT handle, U8BIT *cat_data, U16BIT data_len)
When there's an update to the CAT for a service, the updated CAT will be reported to the CA system us...
void STB_CAReportNIT(U32BIT handle, U8BIT *nit_data, U16BIT data_len)
When there's an update to the NIT, the updated NIT will be reported to the CA system using this funct...
BOOLEAN STB_CAInitialise(void)
Called once on system startup to allow initialisation of the CA systems.
Function prototypes for HW control.
void STB_CADecodeAudioStatus(U32BIT handle, E_CA_DECODE_STATUS decode_status)
Notifies the CA system of a change in the audio decoding state.
void STB_CADescrambleServiceStop(U32BIT handle)
This function will be called when decoding of a service is stopped.
BOOLEAN STB_CAAcquireDescrambler(U8BIT demux, U16BIT serv_id, U16BIT *ca_ids, U16BIT num_ca_ids, U32BIT *handle)
This function is used by the resource manager to acquire a CA descrambler that's able to descramble a...
U16BIT STB_CAGetRecordingPids(U8BIT *pmt_data, U16BIT **pid_array)
This function is called to get an array of PIDs that need to be recorded for the CA system required f...
void STB_CANotifyRunningStatus(U32BIT handle, U8BIT status)
This function will be called when there's a change to the running status of a service being descrambl...
BOOLEAN STB_CADescramblerRequiredForPlayback(U16BIT *ca_ids, U16BIT num_ca_ids)
This function specifies whether a CA descrambler is required to playback a recording with one of the ...
void STB_CAReportBAT(U32BIT handle, U8BIT *bat_data, U16BIT data_len)
When there's an update to the BAT, the updated BAT will be reported to the CA system using this funct...
void STB_CADecodeADStatus(U32BIT handle, E_CA_DECODE_STATUS decode_status)
Notifies the CA system of a change in the AD decoding state.
Debug functions header file.
void STB_CAReportPMT(U32BIT handle, U8BIT *pmt_data, U16BIT data_len)
When there's an update to the PMT for a service, the updated PMT will be reported to the CA system us...
Glue layer between DVB and conditional access systems.
BOOLEAN STB_CADescramblerRequiredForRecording(U16BIT *ca_ids, U16BIT num_ca_ids)
This function specifies whether a CA descrambler is required to record a service with one of the give...
System Wide Global Technical Data Type Definitions.
void STB_CADecodeVideoStatus(U32BIT handle, E_CA_DECODE_STATUS decode_status)
Notifies the CA system of a change in the video decoding state.
void STB_CANotifyRecordingStatus(U32BIT handle, BOOLEAN status)
This function is called when a recording starts and when it stops.
BOOLEAN STB_CAReleaseDescrambler(U32BIT handle)
Will be called when a CA descrambler is no longer required.
void STB_CAReleaseRecordingPids(U16BIT *pid_array, U16BIT num_pids)
Called to free the array of PIDs allocated by STB_CAGetRecordingPids.
void STB_CADescrambleServiceStart(U32BIT handle)
This function will be called when decoding of a service is about to start and there's an associated d...