DVBCore  20.3.0
DVBCore Documentation
stbdpc.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2004 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
25 // pre-processor mechanism so multiple inclusions don't cause compilation error
26 
27 #ifndef _STBDPC_H
28 
29 #define _STBDPC_H
30 
31 #include "techtype.h"
32 #include "stbhwtun.h"
33 
34 
35 //---Constant and macro definitions for public use-----------------------------
36 
37 // Maximum DISEQC_1_2 dish position & invalid position index.
38 // Invalid dish pos is zero, to help reissue the pos command when coming out of
39 // standby or leave the positioning screen without saving.
40 // NB. issuing the command move to index zero will center the dish (due south).
41 // and the function in stbdpc.c should stop the valid command being sent
42 // by move command.
43 #define MAX_DISEQC_1_2_POSITION 60
44 #define INVALID_POSITION_INDEX 0x00
45 
46 #define MAX_UNICABLE_BANKS 8
47 
48 #ifndef INVALID_RES_ID
49 #define INVALID_RES_ID ((U8BIT)0xFF) /* ID used to represent an invalid resource */
50 #endif
51 
52 #define INVALID_CA_DESCRAMBLER_HANDLE ((U32BIT)0x0000)
53 
54 //---Enumerations for public use-----------------------------------------------
55 
56 typedef enum e_stb_dp_tune_status
57 {
58  TUNE_WAITING = 0,
59  TUNE_NO_LOCK = 1,
60  TUNE_LOCKED = 2,
61  TUNE_STOPPED = 3
62 }
63 E_STB_DP_TUNE_STATUS;
64 
65 typedef enum e_stb_dp_decode_status
66 {
67  DECODE_STOPPING = 0,
68  DECODE_STARTING = 1,
69  DECODE_STOPPED = 2,
70  DECODE_RUNNING = 3,
71  DECODE_LOCKED = 4
72 }
73 E_STB_DP_DECODE_STATUS;
74 
75 typedef enum e_stb_dp_demux_source
76 {
77  DEMUX_SOURCE_TUNER = 0,
78  DEMUX_SOURCE_FILE = 1,
79  DEMUX_SOURCE_LINEIN = 2
80 }
81 E_STB_DP_DEMUX_SOURCE;
82 
83 typedef enum e_stb_dp_decode_source
84 {
85  DECODE_SOURCE_DEMUX = 0,
86  DECODE_SOURCE_FILE = 1,
87  DECODE_SOURCE_LINEIN = 2
88 }
89 E_STB_DP_DECODE_SOURCE;
90 
91 typedef enum e_stb_dp_signal_type
92 {
93  SIGNAL_NONE = 0,
94  SIGNAL_QPSK = 1, // digital satellite
95  SIGNAL_COFDM = 2, // digital terrestrial
96  SIGNAL_QAM = 4, // digital cable
97  SIGNAL_ANALOG = 8
98 }
99 E_STB_DP_SIGNAL_TYPE;
100 
101 typedef enum e_stb_dp_lnb_power
102 {
103  LNB_POWER_OFF = 0,
104  LNB_POWER_ON = 1,
105  LNB_POWER_AUTO = 2
106 }
107 E_STB_DP_LNB_POWER;
108 
109 typedef enum e_stb_dp_lnb_type
110 {
111  LNB_TYPE_SINGLE = 0,
112  LNB_TYPE_UNIVERSAL = 1,
113  LNB_TYPE_UNICABLE = 2,
114  LNB_TYPE_USER_DEFINED = 3,
115  LNB_TYPE_MAX
116 }
117 E_STB_DP_LNB_TYPE;
118 
119 typedef enum e_stb_dp_diseqc_cswitch
120 {
121  DISEQC_CSWITCH_OFF = 0,
122  DISEQC_CSWITCH_A = 1,
123  DISEQC_CSWITCH_B = 2,
124  DISEQC_CSWITCH_C = 3,
125  DISEQC_CSWITCH_D = 4
126 }
127 E_STB_DP_DISEQC_CSWITCH;
128 
129 typedef enum e_stb_dp_diseqc_tone
130 {
131  DISEQC_TONE_OFF = 0,
132  DISEQC_TONE_A = 1,
133  DISEQC_TONE_B = 2
134 }
135 E_STB_DP_DISEQC_TONE;
136 
137 typedef enum e_stb_dp_polarity
138 {
139  POLARITY_HORIZONTAL = 0,
140  POLARITY_VERTICAL = 1,
141  POLARITY_LEFT = 2,
142  POLARITY_RIGHT = 3
143 }
144 E_STB_DP_POLARITY;
145 
146 typedef enum e_stb_dp_fec
147 {
148  FEC_AUTOMATIC = 0,
149  FEC_1_2 = 1,
150  FEC_2_3 = 2,
151  FEC_3_4 = 3,
152  FEC_5_6 = 4,
153  FEC_7_8 = 5,
154  // Extra FEC modes for DVB-S2
155  FEC_1_4 = 6,
156  FEC_1_3 = 7,
157  FEC_2_5 = 8,
158  FEC_8_9 = 9,
159  FEC_9_10 = 10,
160  FEC_3_5 = 11,
161  FEC_4_5 = 12
162 }
163 E_STB_DP_FEC;
164 
165 typedef enum e_stb_dp_fec_type
166 {
167  FEC_TYPE_AUTO,
168  FEC_TYPE_DVBS1,
169  FEC_TYPE_DVBS2
170 }
171 E_STB_DP_FEC_TYPE;
172 
173 typedef enum e_stb_dp_modulation
174 {
175  MOD_AUTO,
176  MOD_QPSK, /* quartenary phase shift key */
177  MOD_8PSK, /* octenary phase shift key */
178  MOD_16QAM /* Not valid for DVB-S2 */
179 }
180 E_STB_DP_MODULATION;
181 
182 typedef enum e_stb_dp_tmode
183 {
184  MODE_COFDM_2K,
185  MODE_COFDM_8K,
186  MODE_COFDM_4K,
187  MODE_COFDM_1K,
188  MODE_COFDM_16K,
189  MODE_COFDM_32K,
190  MODE_COFDM_UNDEFINED
191 }
192 E_STB_DP_TMODE;
193 
194 typedef enum e_stb_dp_tbwidth
195 {
196  TBWIDTH_8MHZ,
197  TBWIDTH_7MHZ,
198  TBWIDTH_6MHZ,
199  TBWIDTH_5MHZ,
200  TBWIDTH_10MHZ,
201  TBWIDTH_UNDEFINED
202 }
203 E_STB_DP_TBWIDTH;
204 
205 typedef enum e_stb_dp_cmode
206 {
207  MODE_QAM_AUTO,
208  MODE_QAM_4,
209  MODE_QAM_8,
210  MODE_QAM_16,
211  MODE_QAM_32,
212  MODE_QAM_64,
213  MODE_QAM_128,
214  MODE_QAM_256
215 }
216 E_STB_DP_CMODE;
217 
218 typedef enum e_stb_dp_tune_terr_type
219 {
220  TERR_TYPE_UNKNOWN,
221  TERR_TYPE_DVBT,
222  TERR_TYPE_DVBT2,
223 } E_STB_DP_TTYPE;
224 
225 typedef enum e_stb_dp_audio_mode
226 {
227  AUDIO_STEREO = 0,
228  AUDIO_LEFT = 1,
229  AUDIO_RIGHT = 2,
230  AUDIO_MONO = 3,
231  AUDIO_MULTICHANNEL = 4,
232  AUDIO_UNDEF = 5
233 }
234 E_STB_DP_AUDIO_MODE;
235 
236 typedef enum e_stb_ota_sw_upgrade_search_mode
237 {
238  OTA_SEARCH_OFF = 0,
239  OTA_SEARCH_AUTO = 1,
240  OTA_SEARCH_MANUAL = 2
241 } E_STB_OTA_SW_UPGRADE_SEARCH_MODE;
242 
243 typedef enum e_stb_dp_analogue_video_type
244 {
245  ANLG_VIDEO_PAL_I = 0,
246  ANLG_VIDEO_PAL_B = 1,
247  ANLG_VIDEO_PAL_G = 2,
248  ANLG_VIDEO_PAL_D = 3,
249  ANLG_VIDEO_PAL_K = 4,
250  ANLG_VIDEO_PAL_L = 5,
251  ANLG_VIDEO_PAL_LDASH = 6
252 } E_STB_DP_ANALOG_VIDEO_TYPE;
253 
254 typedef enum e_stb_dp_video_codec
255 {
256  VIDEO_CODEC_AUTO = 0,
257  VIDEO_CODEC_MPEG1 = 1,
258  VIDEO_CODEC_MPEG2 = 2,
259  VIDEO_CODEC_H264 = 3,
260  VIDEO_CODEC_H265 = 4
261 } E_STB_DP_VIDEO_CODEC;
262 
263 typedef enum e_stb_dp_audio_codec
264 {
265  AUDIO_CODEC_AUTO = 0,
266  AUDIO_CODEC_MP2 = 1,
267  AUDIO_CODEC_MP3 = 2,
268  AUDIO_CODEC_AC3 = 3,
269  AUDIO_CODEC_EAC3 = 4,
270  AUDIO_CODEC_AAC = 5,
271  AUDIO_CODEC_HEAAC = 6,
272  AUDIO_CODEC_AAC_ADTS = 7
273 } E_STB_DP_AUDIO_CODEC;
274 
275 typedef enum e_stb_dp_ad_audio
276 {
277  AD_AUDIO_OFF = 0,
278  AD_AUDIO_ON = 1,
279  AD_AUDIO_PAUSED = 2,
280  AD_AUDIO_PLAYING = 3,
281  AD_AUDIO_WAITING = 4
282 } E_STB_DP_AD_AUDIO;
283 
284 
285 typedef enum
286 {
287  RES_OWNER_NONE,
288  RES_OWNER_DVB,
289  RES_OWNER_CIPLUS
290 } E_STB_DP_RES_OWNER;
291 
292 typedef enum
293 {
294  DP_PRIORITY_LOW,
295  DP_PRIORITY_HIGH
296 } E_STB_DP_PRIORITY;
297 
298 typedef struct
299 {
300  E_STB_DP_POLARITY polarity;
301  U16BIT min_freq;
302  U16BIT max_freq;
303  U16BIT local_oscillator_frequency;
304  E_STB_TUNE_LNB_VOLTAGE lnb_voltage;
305  BOOLEAN tone_22k;
307 
308 
309 //---Global type defs for public use-------------------------------------------
310 
311 //---Global Function prototypes for public use---------------------------------
312 
313 void STB_DPInitialise(void);
314 
315 U8BIT STB_DPGetNumPaths(void);
316 
317 U8BIT STB_DPAcquireTunerPath(E_STB_DP_SIGNAL_TYPE tuner_type, void *service, void *transport,
318  E_STB_DP_RES_OWNER owner, E_STB_DP_PRIORITY priority, BOOLEAN with_decoders, BOOLEAN for_recording);
319 
320 U8BIT STB_DPAcquirePlaybackPath(void *service);
321 
322 void STB_DPReleaseDecoders(U8BIT path);
323 
324 BOOLEAN STB_DPReleasePath(U8BIT path, E_STB_DP_RES_OWNER owner);
325 void STB_DPReleaseAllPaths(void);
326 
327 U8BIT STB_DPAcquireCISlotForPath(U8BIT path, U8BIT *pmt_data, U8BIT *ci_protection_desc);
328 BOOLEAN STB_DPUseCISlotWithPath(U8BIT path, U8BIT slot_id);
329 void STB_DPReleaseCISlotFromPath(U8BIT path);
330 U8BIT STB_DPGetPathCISlot(U8BIT path);
331 U8BIT STB_DPIsCISlotInUse(U8BIT start_path, U8BIT slot_id, U8BIT ignore_path);
332 
333 BOOLEAN STB_DPAcquireCADescramblerForPath(U8BIT path, U8BIT *pmt_data, U32BIT *ca_handle);
334 void STB_DPReleaseCADescramblerFromPath(U8BIT path);
335 BOOLEAN STB_DPGetPathCADescrambler(U8BIT path, U32BIT *handle);
336 
337 U8BIT STB_DPGetLivePath(void);
338 BOOLEAN STB_DPIsLivePath(U8BIT path);
339 BOOLEAN STB_DPIsRecordingPath(U8BIT path);
340 BOOLEAN STB_DPIsDecodingPath(U8BIT path);
341 U8BIT STB_DPGetPlaybackPath(void);
342 
343 U8BIT STB_DPPathForTuner(U8BIT start_path, U8BIT tuner_num);
344 U8BIT STB_DPPathForAudioDecoder(U8BIT decoder_num);
345 U8BIT STB_DPPathForADDecoder(U8BIT decoder_num);
346 U8BIT STB_DPPathForVideoDecoder(U8BIT decoder_num);
347 
348 void STB_DPSetTunedTransport(U8BIT path, void *transport);
349 void* STB_DPGetTunedTransport(U8BIT path);
350 void STB_DPSetTunedService(U8BIT path, void *service);
351 void* STB_DPGetTunedService(U8BIT path);
352 
353 U8BIT STB_DPGetPathForService(void *service);
354 
361 BOOLEAN STB_DPCanTuneTo(E_STB_DP_SIGNAL_TYPE tuner_type, void *service, void *transport);
362 
363 U8BIT STB_DPGetPathTuner(U8BIT path);
364 E_STB_DP_SIGNAL_TYPE STB_DPGetPathTunerType(U8BIT path);
365 
370 void STB_DPEnableAllTuners(void);
371 
377 void STB_DPSetTunerDisabled(U8BIT path, BOOLEAN disabled);
378 
383 U8BIT STB_DPGetNumEnabledTuners(void);
384 
390 BOOLEAN STB_DPIsTunerEnabled(U8BIT tuner_num);
391 
392 U8BIT STB_DPGetPathDemux(U8BIT path);
393 U8BIT STB_DPGetPathAudioDecoder(U8BIT path);
394 U8BIT STB_DPGetPathVideoDecoder(U8BIT path);
395 
396 U8BIT STB_DPGetMHEGPath(void);
397 
398 void STB_DPSetOwner(U8BIT path, E_STB_DP_RES_OWNER owner);
399 BOOLEAN STB_DPSetOwnerData(U8BIT path, void *data, U32BIT data_size);
400 BOOLEAN STB_DPIsOwnedBy(U8BIT path, E_STB_DP_RES_OWNER owner);
401 void* STB_DPGetOwnerData(U8BIT path, U32BIT *data_size);
402 
403 void STB_DPSetDecodeSource(U8BIT path, E_STB_DP_DECODE_SOURCE source, U32BIT param);
404 void STB_DPGetDecodeSource(U8BIT path, E_STB_DP_DECODE_SOURCE *source, U32BIT *param);
405 
406 BOOLEAN STB_DPStartRecording(U8BIT path, U32BIT param);
407 void STB_DPStopRecording(U8BIT path);
408 BOOLEAN STB_DPIsRecording(U8BIT path, U32BIT *handle);
409 
410 void STB_DPStartTune(U8BIT path);
411 void STB_DPStartScan(U8BIT path);
412 void STB_DPStopTune(U8BIT path);
413 void STB_DPTuneOff(U8BIT path);
414 
415 void STB_DPStartVideoDecoding(U8BIT path);
416 void STB_DPStartADDecoding(U8BIT path);
417 void STB_DPStartAudioDecoding(U8BIT path);
418 void STB_DPStartDecoding(U8BIT path);
419 void STB_DPStopVideoDecoding(U8BIT path);
420 void STB_DPStopADDecoding(U8BIT path);
421 void STB_DPStopAudioDecoding(U8BIT path);
422 void STB_DPStopDecoding(U8BIT path);
423 
424 void STB_DPStartSI(U8BIT path);
425 void STB_DPStopSI(U8BIT path);
426 
427 void STB_DPRequestSIExtendedEvent(U8BIT path, U32BIT start_date, U32BIT start_hour, U32BIT start_min);
428 U32BIT STB_DPGetSIRequestParam1(U8BIT path);
429 U32BIT STB_DPGetSIRequestParam2(U8BIT path);
430 U32BIT STB_DPGetSIRequestParam3(U8BIT path);
431 
432 void STB_DPSetTuneStatus(U8BIT path, E_STB_DP_TUNE_STATUS state);
433 E_STB_DP_TUNE_STATUS STB_DPGetTuneStatus(U8BIT path);
434 void STB_DPSetADEnabled(U8BIT path, BOOLEAN state);
435 void STB_DPSetADAudio(U8BIT path, E_STB_DP_AD_AUDIO state);
436 E_STB_DP_AD_AUDIO STB_DPGetADAudio(U8BIT path);
437 void STB_DPSetADStatus(U8BIT path, E_STB_DP_DECODE_STATUS state);
438 E_STB_DP_DECODE_STATUS STB_DPGetADStatus(U8BIT path);
439 
440 void STB_DPSetAudioStatus(U8BIT path, E_STB_DP_DECODE_STATUS state);
441 E_STB_DP_DECODE_STATUS STB_DPGetAudioStatus(U8BIT path);
442 
443 void STB_DPSetVideoStatus(U8BIT path, E_STB_DP_DECODE_STATUS decoder);
444 E_STB_DP_DECODE_STATUS STB_DPGetVideoStatus(U8BIT path);
445 
446 void STB_DPSetSignalType(U8BIT path, E_STB_DP_SIGNAL_TYPE sigtype);
447 E_STB_DP_SIGNAL_TYPE STB_DPGetSignalType(U8BIT path);
448 
449 void STB_DPSetTuneRelock(U8BIT path, BOOLEAN state);
450 BOOLEAN STB_DPGetTuneRelock(U8BIT path);
451 
452 void STB_DPSetLockEnable(U8BIT path, BOOLEAN state);
453 BOOLEAN STB_DPGetLockEnable(U8BIT path);
454 
455 void STB_DPSetSearchMode(U8BIT path, BOOLEAN state);
456 BOOLEAN STB_DPGetSearchMode(U8BIT path);
457 
458 void STB_DPSetTVSearch(U8BIT path, BOOLEAN state);
459 BOOLEAN STB_DPGetTVSearch(U8BIT path);
460 
461 void STB_DPSetRadioSearch(U8BIT path, BOOLEAN state);
462 BOOLEAN STB_DPGetRadioSearch(U8BIT path);
463 
464 void STB_DPSetFTASearch(U8BIT path, BOOLEAN state);
465 BOOLEAN STB_DPGetFTASearch(U8BIT path);
466 
467 void STB_DPSetScramSearch(U8BIT path, BOOLEAN state);
468 BOOLEAN STB_DPGetScramSearch(U8BIT path);
469 
470 void STB_DPSetNetworkSearch(U8BIT path, BOOLEAN state);
471 BOOLEAN STB_DPGetNetworkSearch(U8BIT path);
472 
473 void STB_DPSetLNBPower(U8BIT path, E_STB_DP_LNB_POWER state);
474 E_STB_DP_LNB_POWER STB_DPGetLNBPower(U8BIT path);
475 
476 void STB_DPSetLNBType(U8BIT path, E_STB_DP_LNB_TYPE type);
477 E_STB_DP_LNB_TYPE STB_DPGetLNBType(U8BIT path);
478 
488 void STB_DPSetUserDefinedLNBBands(U8BIT path, U8BIT number_of_bands,
489  S_STB_DP_LNB_BAND *band_definitions);
490 
491 void STB_DPSetLNB22k(U8BIT path, BOOLEAN state);
492 BOOLEAN STB_DPGetLNB22k(U8BIT path);
493 
494 void STB_DPSetLNB12v(U8BIT path, BOOLEAN state);
495 BOOLEAN STB_DPGetLNB12v(U8BIT path);
496 
497 void STB_DPSetPulsePosition(U8BIT path, BOOLEAN state);
498 BOOLEAN STB_DPGetPulsePosition(U8BIT path);
499 
500 void STB_DPSetDISEQCPosition(U8BIT path, BOOLEAN state);
501 BOOLEAN STB_DPGetDISEQCPosition(U8BIT path);
502 
503 void STB_DPSetDISEQCCSwitch(U8BIT path, E_STB_DP_DISEQC_CSWITCH state);
504 E_STB_DP_DISEQC_CSWITCH STB_DPGetDISEQCCSwitch(U8BIT path);
505 
506 void STB_DPSetDISEQCUSwitch(U8BIT path, U8BIT state);
507 U8BIT STB_DPGetDISEQCUSwitch(U8BIT path);
508 
509 void STB_DPSetDISEQCTone(U8BIT path, E_STB_DP_DISEQC_TONE state);
510 E_STB_DP_DISEQC_TONE STB_DPGetDISEQCTone(U8BIT path);
511 
512 void STB_DPSetDISEQCSMATV(U8BIT path, BOOLEAN state);
513 BOOLEAN STB_DPGetDISEQCSMATV(U8BIT path);
514 
515 void STB_DPSetDISEQCRepeats(U8BIT path, U8BIT count);
516 U8BIT STB_DPGetDISEQCRepeats(U8BIT path);
517 
518 U8BIT STB_DPGetUnicableParams(U8BIT path, U32BIT unicable_if[MAX_UNICABLE_BANKS], U32BIT * lnb_lo_freq, U32BIT * lnb_hi_freq);
519 void STB_DPSetUnicablePositionB(U8BIT path, BOOLEAN position_b);
520 BOOLEAN STB_DPGetUnicablePositionB(U8BIT path);
521 void STB_DPSetUnicableChannel(U8BIT path, U8BIT chan);
522 U8BIT STB_DPGetUnicableChannel(U8BIT path);
523 void STB_DPSetUnicableFrequency(U8BIT path, U32BIT freq);
524 U32BIT STB_DPGetUnicableFrequency(U8BIT path);
525 
526 void STB_DPSetDishLimitE(U8BIT path);
527 void STB_DPSetDishLimitW(U8BIT path);
528 void STB_DPEnableDishLimits(U8BIT path, U16BIT ecount, U16BIT wcount);
529 void STB_DPDisableDishLimits(U8BIT path);
530 
531 void STB_DPStartDishMoveE(U8BIT path, U16BIT count);
532 void STB_DPStartDishMoveW(U8BIT path, U16BIT count);
533 void STB_DPStopDishMove(U8BIT path);
534 void STB_DPCentreDishMove(U8BIT path);
535 void STB_DPStoreDishPosition(U8BIT path, U16BIT count);
536 
537 void STB_DPSetDishPosition(U8BIT path, U16BIT count);
538 U16BIT STB_DPGetDishPosition(U8BIT path);
539 U16BIT STB_DPGetDishRequest(U8BIT path);
540 
541 void STB_DPSetSkewPosition(U8BIT path, U16BIT count);
542 U16BIT STB_DPGetSkewPosition(U8BIT path);
543 
544 void STB_DPSetFrequency(U8BIT path, U32BIT freq);
545 U32BIT STB_DPGetFrequency(U8BIT path);
546 
547 void STB_DPSetPolarity(U8BIT path, E_STB_DP_POLARITY pol);
548 E_STB_DP_POLARITY STB_DPGetPolarity(U8BIT path);
549 
550 void STB_DPSetSymbolRate(U8BIT path, U16BIT sym);
551 U16BIT STB_DPGetSymbolRate(U8BIT path);
552 
553 void STB_DPSetFEC(U8BIT path, E_STB_DP_FEC fec);
554 E_STB_DP_FEC STB_DPGetFEC(U8BIT path);
555 
556 void STB_DPSetDVBS2(U8BIT path, BOOLEAN dvb_s2);
557 BOOLEAN STB_DPGetDVBS2(U8BIT path);
558 
559 void STB_DPSetModulation(U8BIT path, E_STB_DP_MODULATION modulation);
560 E_STB_DP_MODULATION STB_DPGetModulation(U8BIT path);
561 
562 void STB_DPSetTerrMode(U8BIT path, E_STB_DP_TMODE mode);
563 E_STB_DP_TMODE STB_DPGetTerrMode(U8BIT path);
564 
565 void STB_DPSetTerrBandwidth(U8BIT path, E_STB_DP_TBWIDTH bwidth);
566 E_STB_DP_TBWIDTH STB_DPGetTerrBandwidth(U8BIT path);
567 
568 void STB_DPSetTerrFreqOff(U8BIT path, S8BIT offset);
569 S8BIT STB_DPGetTerrFreqOff(U8BIT path);
570 
571 void STB_DPSetTerrType(U8BIT path, E_STB_DP_TTYPE type);
572 E_STB_DP_TTYPE STB_DPGetTerrType(U8BIT path);
573 
574 void STB_DPSetTerrPLP(U8BIT path, U8BIT plp_id);
575 U8BIT STB_DPGetTerrPLP(U8BIT path);
576 
577 void STB_DPSetCableMode(U8BIT path, E_STB_DP_CMODE mode);
578 E_STB_DP_CMODE STB_DPGetCableMode(U8BIT path);
579 
580 void STB_DPSetAnalogVideoType(U8BIT path, E_STB_DP_ANALOG_VIDEO_TYPE vtype);
581 E_STB_DP_ANALOG_VIDEO_TYPE STB_DPGetAnalogVideoType(U8BIT path);
582 
583 void STB_DPSetAnalogFreqOff(U8BIT path, S8BIT offset);
584 S8BIT STB_DPGetAnalogFreqOff(U8BIT path);
585 
593 void STB_DPSetAdditionalFrequencies(U8BIT path, U8BIT num_freqs, U32BIT *frequencies);
594 
601 BOOLEAN STB_DPTryAdditionalFrequency(U8BIT path);
602 
603 void STB_DPSetPCRPID(U8BIT path, U16BIT pid);
604 U16BIT STB_DPGetPCRPID(U8BIT path);
605 
606 void STB_DPSetVideoPID(U8BIT path, U16BIT pid);
607 U16BIT STB_DPGetVideoPID(U8BIT path);
608 
609 void STB_DPSetAudioPID(U8BIT path, U16BIT pid);
610 U16BIT STB_DPGetAudioPID(U8BIT path);
611 
612 void STB_DPSetADPID(U8BIT path, U16BIT pid);
613 U16BIT STB_DPGetADPID(U8BIT path);
614 void STB_DPSetTextPID(U8BIT path, U16BIT pid);
615 U16BIT STB_DPGetTextPID(U8BIT path);
616 
617 void STB_DPSetDataPID(U8BIT path, U16BIT pid);
618 U16BIT STB_DPGetDataPID(U8BIT path);
619 
620 void STB_DPSetDecodePIDs(U8BIT path, U16BIT pcr_pid, U16BIT video_pid, U16BIT audio_pid,
621  U16BIT text_pid, U16BIT data_pid
622  , U16BIT AD_pid
623  );
624 
625 void STB_DPSetADMode(U8BIT path, E_STB_DP_AUDIO_MODE mode);
626 E_STB_DP_AUDIO_MODE STB_DPGetADMode(U8BIT path);
627 
628 void STB_DPSetAudioMode(U8BIT path, E_STB_DP_AUDIO_MODE mode);
629 E_STB_DP_AUDIO_MODE STB_DPGetAudioMode(U8BIT path);
630 
631 void STB_DPSetLockMode(U8BIT path, BOOLEAN mode);
632 BOOLEAN STB_DPGetLockMode(U8BIT path);
633 
634 void STB_DPSetOTASearchMode(U8BIT path, E_STB_OTA_SW_UPGRADE_SEARCH_MODE mode);
635 E_STB_OTA_SW_UPGRADE_SEARCH_MODE STB_DPGetOTASearchMode(U8BIT path);
636 BOOLEAN STB_DPOTASearchEnabled(U8BIT path);
637 
638 BOOLEAN STB_DPSetVideoCodec(U8BIT path, E_STB_DP_VIDEO_CODEC codec);
639 E_STB_DP_VIDEO_CODEC STB_DPGetVideoCodec(U8BIT path);
640 BOOLEAN STB_DPSetAudioCodec(U8BIT path, E_STB_DP_AUDIO_CODEC codec);
641 E_STB_DP_AUDIO_CODEC STB_DPGetAudioCodec(U8BIT path);
642 BOOLEAN STB_DPSetADCodec(U8BIT path, E_STB_DP_AUDIO_CODEC codec);
643 E_STB_DP_AUDIO_CODEC STB_DPGetADCodec(U8BIT path);
644 
645 U8BIT STB_DPGetPathSecondaryVideoDecoder(U8BIT path);
646 
647 #endif // _STBDPC_H
648 
649 //*****************************************************************************
650 // End of file
651 //*****************************************************************************
652 
E_STB_DP_TBWIDTH STB_DPGetTerrBandwidth(U8BIT path)
Reads the terrestrial frequency offset value from decode path store.
Definition: stbdpc.c:6511
void STB_DPSetDISEQCSMATV(U8BIT path, BOOLEAN state)
Enables/disables DiSEqC SMATV and writes status into decode path store.
Definition: stbdpc.c:5046
void STB_DPStopDishMove(U8BIT path)
Stops sat dish moving.
Definition: stbdpc.c:5748
BOOLEAN STB_DPGetFTASearch(U8BIT path)
Reads the SI FTA chan search flag state from decode path store.
Definition: stbdpc.c:4182
void STB_DPStartDecoding(U8BIT path)
Requests start of channel decoding process.
Definition: stbdpc.c:2686
BOOLEAN STB_DPOTASearchEnabled(U8BIT path)
Returns TRUE if the current 'Over The Air' Software Upgrade Search Mode is manual or automatic...
Definition: stbdpc.c:4401
BOOLEAN STB_DPSetVideoCodec(U8BIT path, E_STB_DP_VIDEO_CODEC codec)
Sets the type of CODEC to be used for Video decoding.
Definition: stbdpc.c:7638
U8BIT STB_DPGetPathForService(void *service)
Checks whether any of the paths are tuned to the given service.
Definition: stbdpc.c:1804
void STB_DPSetTunedTransport(U8BIT path, void *transport)
Saves the given transport with the specified decode path.
Definition: stbdpc.c:1518
U8BIT STB_DPPathForADDecoder(U8BIT decoder_num)
Returns the decode path that is using the given AD decoder.
Definition: stbdpc.c:1463
void STB_DPSetADPID(U8BIT path, U16BIT pid)
Writes AD PID value into decode path store.
Definition: stbdpc.c:7211
BOOLEAN STB_DPIsRecording(U8BIT path, U32BIT *handle)
Returns status of recording on specified path.
Definition: stbdpc.c:2189
U8BIT STB_DPGetMHEGPath(void)
Returns the path for Cabot MHEG software to use.
Definition: stbdpc.c:1873
U8BIT STB_DPAcquirePlaybackPath(void *service)
Acquires a decode path and all the required resources (demux, audio and video decoders) for playing b...
Definition: stbdpc.c:679
void STB_DPSetADAudio(U8BIT path, E_STB_DP_AD_AUDIO state)
Reads the AD audio status from decode path store.
Definition: stbdpc.c:3452
BOOLEAN STB_DPGetDISEQCPosition(U8BIT path)
Reads the status of DiSEqC positioning from decode path store.
Definition: stbdpc.c:4819
U16BIT STB_DPGetPCRPID(U8BIT path)
Reads the PCR PID value from decode path store.
Definition: stbdpc.c:7047
U8BIT STB_DPGetPathCISlot(U8BIT path)
Returns the CI slot id associated with the given path.
Definition: stbdpc.c:1082
void * STB_DPGetTunedService(U8BIT path)
Returns the service saved with the given decode path.
Definition: stbdpc.c:1582
void STB_DPSetRadioSearch(U8BIT path, BOOLEAN state)
Writes SI radio chan search flag into decode path store.
Definition: stbdpc.c:4092
void STB_DPSetLNB12v(U8BIT path, BOOLEAN state)
Sets LNB 12v on or off and writes status into decode path store.
Definition: stbdpc.c:4664
void STB_DPSetLNB22k(U8BIT path, BOOLEAN state)
Sets LNB 22kHz on or off and writes status into decode path store.
Definition: stbdpc.c:4590
void STB_DPSetDecodeSource(U8BIT path, E_STB_DP_DECODE_SOURCE source, U32BIT param)
Sets source for specified decoder.
Definition: stbdpc.c:2021
E_STB_DP_DECODE_STATUS STB_DPGetADStatus(U8BIT path)
Reads the AD status from decode path store.
Definition: stbdpc.c:3581
U8BIT STB_DPAcquireCISlotForPath(U8BIT path, U8BIT *pmt_data, U8BIT *ci_protection_desc)
Acquire a CI slot and assign it to the given path.
Definition: stbdpc.c:956
BOOLEAN STB_DPIsLivePath(U8BIT path)
Is the given decode path being used for live viewing.
Definition: stbdpc.c:1297
BOOLEAN STB_DPAcquireCADescramblerForPath(U8BIT path, U8BIT *pmt_data, U32BIT *ca_handle)
Acquire a CA descrambler and assign it to the given path.
Definition: stbdpc.c:1147
void STB_DPSetTerrFreqOff(U8BIT path, S8BIT offset)
Writes terrestrial frequency offset value into decode path store.
Definition: stbdpc.c:6543
void STB_DPSetAudioStatus(U8BIT path, E_STB_DP_DECODE_STATUS state)
Writes the audio status into decode path store.
Definition: stbdpc.c:3617
void STB_DPDisableDishLimits(U8BIT path)
Disables sat dish limits.
Definition: stbdpc.c:5571
void STB_DPSetVideoPID(U8BIT path, U16BIT pid)
Writes video PID value into decode path store.
Definition: stbdpc.c:7079
E_STB_DP_TUNE_STATUS STB_DPGetTuneStatus(U8BIT path)
Reads the tuning status from decode path store.
Definition: stbdpc.c:3332
void STB_DPReleaseDecoders(U8BIT path)
Releases all decoders from the given path.
Definition: stbdpc.c:891
BOOLEAN STB_DPGetDISEQCSMATV(U8BIT path)
Reads the status of DiSEqC SMATV from decode path store.
Definition: stbdpc.c:5079
U8BIT STB_DPPathForTuner(U8BIT start_path, U8BIT tuner_num)
Returns the decode path that is using the given tuner ID.
Definition: stbdpc.c:1400
void STB_DPSetDISEQCRepeats(U8BIT path, U8BIT count)
Sets DiSEqC repeats and writes value into decode path store.
Definition: stbdpc.c:5111
BOOLEAN STB_DPGetLNB12v(U8BIT path)
Reads the status of LNB 12v from decode path store.
Definition: stbdpc.c:4697
E_STB_DP_AUDIO_CODEC STB_DPGetAudioCodec(U8BIT path)
Returns the type of CODEC to be used for Audio decoding.
Definition: stbdpc.c:7925
void STB_DPRequestSIExtendedEvent(U8BIT path, U32BIT start_date, U32BIT start_hour, U32BIT start_min)
Requests SI engine to get extended event data for specified event.
Definition: stbdpc.c:3169
U8BIT STB_DPIsCISlotInUse(U8BIT start_path, U8BIT slot_id, U8BIT ignore_path)
Checks whether a given CI slot is in use.
Definition: stbdpc.c:1109
void STB_DPStartAudioDecoding(U8BIT path)
Requests start of channel decoding process.
Definition: stbdpc.c:2585
void STB_DPStartSI(U8BIT path)
Requests start of SI engine, mode is determined by flags in general control.
Definition: stbdpc.c:2934
S8BIT STB_DPGetAnalogFreqOff(U8BIT path)
Reads the analogue frequency offset value from decode path store.
Definition: stbdpc.c:6906
void STB_DPStopRecording(U8BIT path)
Requests stop of recording on specified path.
Definition: stbdpc.c:2164
BOOLEAN STB_DPSetOwnerData(U8BIT path, void *data, U32BIT data_size)
Saves a copy of the given data with the path. If data is passed as NULL and owner data already exists...
Definition: stbdpc.c:1911
E_STB_DP_AUDIO_MODE STB_DPGetADMode(U8BIT path)
Reads the AD mode value from decode path store.
Definition: stbdpc.c:7487
U16BIT STB_DPGetDataPID(U8BIT path)
Reads the data PID value from decode path store.
Definition: stbdpc.c:7389
U8BIT STB_DPGetPathVideoDecoder(U8BIT path)
Returns the video decoder ID acquired by the given decode path.
Definition: stbdpc.c:1757
void STB_DPSetDISEQCPosition(U8BIT path, BOOLEAN state)
Enables/disables DiSEqC positioning and writes status into decode path store.
Definition: stbdpc.c:4790
void STB_DPSetSearchMode(U8BIT path, BOOLEAN state)
Writes SI search mode flag into decode path store.
Definition: stbdpc.c:3981
U32BIT STB_DPGetUnicableFrequency(U8BIT path)
Gets the currently set Unicable (IF) frequency.
Definition: stbdpc.c:5406
BOOLEAN STB_DPSetADCodec(U8BIT path, E_STB_DP_AUDIO_CODEC codec)
Sets the type of CODEC to be used for AD decoding.
Definition: stbdpc.c:7745
void STB_DPSetDISEQCUSwitch(U8BIT path, U8BIT state)
Sets DiSEqC uncommitted switch and writes status into decode path store.
Definition: stbdpc.c:4916
void STB_DPSetTerrType(U8BIT path, E_STB_DP_TTYPE type)
Sets terrestrial tuning type into decode path store.
Definition: stbdpc.c:6608
void STB_DPCentreDishMove(U8BIT path)
Moves dish to centre.
Definition: stbdpc.c:5792
U8BIT STB_DPGetTerrPLP(U8BIT path)
Reads the terrestrial T2 PLP id from decode path store.
Definition: stbdpc.c:6709
BOOLEAN STB_DPGetPulsePosition(U8BIT path)
Reads the status of pulse positioning from decode path store.
Definition: stbdpc.c:4758
U32BIT STB_DPGetSIRequestParam1(U8BIT path)
Returns parameters for previous SI request.
Definition: stbdpc.c:3229
void STB_DPSetADStatus(U8BIT path, E_STB_DP_DECODE_STATUS state)
Writes the AD status into decode path store.
Definition: stbdpc.c:3524
BOOLEAN STB_DPGetNetworkSearch(U8BIT path)
Reads the SI network search flag state from decode path store.
Definition: stbdpc.c:4304
E_STB_DP_POLARITY STB_DPGetPolarity(U8BIT path)
Reads the polarity value from decode path store.
Definition: stbdpc.c:6157
void STB_DPEnableAllTuners(void)
Sets the 'disabled' state of all tuners to FALSE so they can all be used by the resource manager...
Definition: stbdpc.c:1652
BOOLEAN STB_DPGetUnicablePositionB(U8BIT path)
Gets whether Satellite Position B is currently set.
Definition: stbdpc.c:5286
void STB_DPSetADMode(U8BIT path, E_STB_DP_AUDIO_MODE mode)
Writes AD mode value into decode path store.
Definition: stbdpc.c:7454
BOOLEAN STB_DPReleasePath(U8BIT path, E_STB_DP_RES_OWNER owner)
Releases the decode path and all resources no longer needed. The path won't be released if the path i...
Definition: stbdpc.c:785
E_STB_DP_CMODE STB_DPGetCableMode(U8BIT path)
Reads the cable tuning mode value from decode path store.
Definition: stbdpc.c:6776
void STB_DPSetTVSearch(U8BIT path, BOOLEAN state)
Writes SI TV chan search flag into decode path store.
Definition: stbdpc.c:4031
void STB_DPSetUnicableFrequency(U8BIT path, U32BIT freq)
Sets the Unicable (IF) frequency.
Definition: stbdpc.c:5378
E_STB_DP_SIGNAL_TYPE STB_DPGetSignalType(U8BIT path)
Reads the signal type value from decode path store.
Definition: stbdpc.c:3836
void STB_DPSetAdditionalFrequencies(U8BIT path, U8BIT num_freqs, U32BIT *frequencies)
Sets an array of frequencies that can be tried when tuning to a transport if the tuner fails to lock ...
Definition: stbdpc.c:6933
BOOLEAN STB_DPUseCISlotWithPath(U8BIT path, U8BIT slot_id)
Use the given CI slot with the given path.
Definition: stbdpc.c:1011
void STB_DPSetTunerDisabled(U8BIT path, BOOLEAN disabled)
Disables/enables the tuner associated with this decode path.
Definition: stbdpc.c:1671
void STB_DPStopVideoDecoding(U8BIT path)
Requests stop of channel decoding (blanks screen).
Definition: stbdpc.c:2719
U16BIT STB_DPGetADPID(U8BIT path)
Reads the audio PID value from decode path store.
Definition: stbdpc.c:7256
U16BIT STB_DPGetSkewPosition(U8BIT path)
Reads the sat skew position value from decode path store.
Definition: stbdpc.c:6027
void STB_DPSetAudioMode(U8BIT path, E_STB_DP_AUDIO_MODE mode)
Writes audio mode value into decode path store.
Definition: stbdpc.c:7519
U8BIT STB_DPGetNumPaths(void)
Returns the maximum number of decode paths.
Definition: stbdpc.c:532
void STB_DPSetVideoStatus(U8BIT path, E_STB_DP_DECODE_STATUS decoder)
Writes the video status into decode path store.
Definition: stbdpc.c:3710
U8BIT STB_DPGetPlaybackPath(void)
Returns the ID of the decode path being used for playback.
Definition: stbdpc.c:1373
U16BIT STB_DPGetDishRequest(U8BIT path)
Reads the sat dish position value from decode path store.
Definition: stbdpc.c:5962
void STB_DPSetTerrBandwidth(U8BIT path, E_STB_DP_TBWIDTH bwidth)
Writes terrestrial bandwidth value into decode path store.
Definition: stbdpc.c:6478
E_STB_DP_ANALOG_VIDEO_TYPE STB_DPGetAnalogVideoType(U8BIT path)
Reads the analogue video type value from decode path store.
Definition: stbdpc.c:6841
BOOLEAN STB_DPGetLNB22k(U8BIT path)
Reads the status of LNB 22kHz from decode path store.
Definition: stbdpc.c:4632
U8BIT STB_DPGetLivePath(void)
Returns the ID of the decode path being used for live viewing.
Definition: stbdpc.c:1271
void STB_DPSetFTASearch(U8BIT path, BOOLEAN state)
Writes SI FTA chan search flag into decode path store.
Definition: stbdpc.c:4153
E_STB_DP_VIDEO_CODEC STB_DPGetVideoCodec(U8BIT path)
Returns the type of CODEC to be used for Video decoding.
Definition: stbdpc.c:7705
BOOLEAN STB_DPIsDecodingPath(U8BIT path)
Is the given decode path being used for decoding.
Definition: stbdpc.c:1346
void STB_DPSetAudioPID(U8BIT path, U16BIT pid)
Writes audio PID value into decode path store.
Definition: stbdpc.c:7145
BOOLEAN STB_DPGetLockMode(U8BIT path)
Reads the lock mode value from decode path store.
Definition: stbdpc.c:7611
E_STB_DP_TTYPE STB_DPGetTerrType(U8BIT path)
Reads the terrestrial tuner type from decode path store.
Definition: stbdpc.c:6643
S8BIT STB_DPGetTerrFreqOff(U8BIT path)
Reads the terrestrial frequency offset value from decode path store.
Definition: stbdpc.c:6576
void STB_DPSetLockMode(U8BIT path, BOOLEAN mode)
Writes lock mode value into decode path store.
Definition: stbdpc.c:7584
void STB_DPTuneOff(U8BIT path)
Requests stop of tuning and powers down tuner.
Definition: stbdpc.c:2331
void STB_DPSetTerrMode(U8BIT path, E_STB_DP_TMODE mode)
Writes terrestrial tuning mode value into decode path store.
Definition: stbdpc.c:6413
BOOLEAN STB_DPIsOwnedBy(U8BIT path, E_STB_DP_RES_OWNER owner)
Checks whether the path is owned by the given owner.
Definition: stbdpc.c:1966
U8BIT STB_DPGetUnicableParams(U8BIT path, U32BIT unicable_if[MAX_UNICABLE_BANKS], U32BIT *lnb_lo_freq, U32BIT *lnb_hi_freq)
Interrogates Unicable LNB for its user and local oscillator frequencies.
Definition: stbdpc.c:5180
void STB_DPSetFrequency(U8BIT path, U32BIT freq)
Writes frequency value into decode path store.
Definition: stbdpc.c:6059
E_STB_DP_DISEQC_CSWITCH STB_DPGetDISEQCCSwitch(U8BIT path)
Reads the status of DiSEqC committed switch from decode path store.
Definition: stbdpc.c:4884
U16BIT STB_DPGetAudioPID(U8BIT path)
Reads the audio PID value from decode path store.
Definition: stbdpc.c:7179
void STB_DPSetAnalogFreqOff(U8BIT path, S8BIT offset)
Writes analogue frequency offset value into decode path store.
Definition: stbdpc.c:6873
U32BIT STB_DPGetFrequency(U8BIT path)
Reads the frequency value from decode path store.
Definition: stbdpc.c:6092
void STB_DPStartTune(U8BIT path)
Requests start of tuning process.
Definition: stbdpc.c:2206
BOOLEAN STB_DPTryAdditionalFrequency(U8BIT path)
Checks to see if there's an additional frequency available on the given decode path that hasn't yet b...
Definition: stbdpc.c:6973
E_STB_DP_SIGNAL_TYPE STB_DPGetPathTunerType(U8BIT path)
Returns the tuner type for the given path.
Definition: stbdpc.c:1628
void STB_DPSetDecodePIDs(U8BIT path, U16BIT pcr_pid, U16BIT video_pid, U16BIT audio_pid, U16BIT text_pid, U16BIT data_pid, U16BIT AD_pid)
Definition: stbdpc.c:7414
BOOLEAN STB_DPCanTuneTo(E_STB_DP_SIGNAL_TYPE tuner_type, void *service, void *transport)
Checks whether there's a tuner available to tune to the given service or transport.
Definition: stbdpc.c:1830
U8BIT STB_DPGetDISEQCRepeats(U8BIT path)
Reads the value of DiSEqC repeats from decode path store.
Definition: stbdpc.c:5146
void STB_DPSetPulsePosition(U8BIT path, BOOLEAN state)
Enables/disables pulse positioning and writes status into decode path store.
Definition: stbdpc.c:4729
void STB_DPSetSymbolRate(U8BIT path, U16BIT sym)
Writes symbol rate value into decode path store.
Definition: stbdpc.c:6189
U8BIT STB_DPGetPathTuner(U8BIT path)
Returns the tuner ID acquired by the given decode path.
Definition: stbdpc.c:1605
E_STB_DP_TMODE STB_DPGetTerrMode(U8BIT path)
Reads the terrestrial tuning mode value from decode path store.
Definition: stbdpc.c:6446
E_STB_DP_MODULATION STB_DPGetModulation(U8BIT path)
Returns the satellite modulation type for the give decode path.
Definition: stbdpc.c:6385
void STB_DPSetTunedService(U8BIT path, void *service)
Saves the given service with the specified decode path.
Definition: stbdpc.c:1563
U8BIT STB_DPGetPathAudioDecoder(U8BIT path)
Returns the audio decoder ID acquired by the given decode path.
Definition: stbdpc.c:1734
void STB_DPSetPCRPID(U8BIT path, U16BIT pid)
Writes PCR PID value into decode path store.
Definition: stbdpc.c:7013
void STB_DPSetAnalogVideoType(U8BIT path, E_STB_DP_ANALOG_VIDEO_TYPE vtype)
Writes analogue video type into decode path store.
Definition: stbdpc.c:6808
void STB_DPSetDISEQCCSwitch(U8BIT path, E_STB_DP_DISEQC_CSWITCH state)
Sets DiSEqC committed switch and writes status into decode path store.
Definition: stbdpc.c:4851
void STB_DPGetDecodeSource(U8BIT path, E_STB_DP_DECODE_SOURCE *source, U32BIT *param)
Gets source for specified decoder.
Definition: stbdpc.c:2087
E_STB_DP_FEC STB_DPGetFEC(U8BIT path)
Reads the FEC value from decode path store.
Definition: stbdpc.c:6287
E_STB_DP_DECODE_STATUS STB_DPGetVideoStatus(U8BIT path)
Reads the video status from decode path store.
Definition: stbdpc.c:3767
void STB_DPSetTuneRelock(U8BIT path, BOOLEAN state)
Writes tuner auto relock flag into decode path store.
Definition: stbdpc.c:3868
void * STB_DPGetTunedTransport(U8BIT path)
Returns the transport saved with the given decode path.
Definition: stbdpc.c:1537
void STB_DPSetPolarity(U8BIT path, E_STB_DP_POLARITY pol)
Writes polarity value into decode path store.
Definition: stbdpc.c:6124
void STB_DPSetSignalType(U8BIT path, E_STB_DP_SIGNAL_TYPE sigtype)
Writes signal type value into decode path store.
Definition: stbdpc.c:3803
U8BIT STB_DPGetNumEnabledTuners(void)
Returns the number of enabled tuners (i.e. that haven't been disabled)
Definition: stbdpc.c:1687
E_STB_DP_DECODE_STATUS STB_DPGetAudioStatus(U8BIT path)
Reads the audio status from decode path store.
Definition: stbdpc.c:3674
E_STB_DP_AD_AUDIO STB_DPGetADAudio(U8BIT path)
Reads the AD audio status from decode path store.
Definition: stbdpc.c:3487
E_STB_DP_AUDIO_CODEC STB_DPGetADCodec(U8BIT path)
Returns the type of CODEC to be used for AD decoding.
Definition: stbdpc.c:7816
void STB_DPSetDVBS2(U8BIT path, BOOLEAN dvb_s2)
Set whether the satellite should be tuned to DVB-S/S2 for the tuner in the given decode path...
Definition: stbdpc.c:6312
void STB_DPStopDecoding(U8BIT path)
Requests stop of channel decoding (blanks screen).
Definition: stbdpc.c:2910
BOOLEAN STB_DPIsTunerEnabled(U8BIT tuner_num)
Returns the 'enabled' status for the given tuner number.
Definition: stbdpc.c:1699
System Wide Global Technical Data Type Definitions.
void STB_DPStopSI(U8BIT path)
Requests stop of SI engine.
Definition: stbdpc.c:3076
void STB_DPReleaseCADescramblerFromPath(U8BIT path)
Release the CA descrambler associated with the given path.
Definition: stbdpc.c:1220
U32BIT STB_DPGetSIRequestParam2(U8BIT path)
Returns parameters for previous SI request.
Definition: stbdpc.c:3254
U16BIT STB_DPGetSymbolRate(U8BIT path)
Reads the symbol rate value from decode path store.
Definition: stbdpc.c:6222
void STB_DPSetLNBPower(U8BIT path, E_STB_DP_LNB_POWER state)
Sets LNB power on or off and writes status into decode path store.
Definition: stbdpc.c:4433
U16BIT STB_DPGetVideoPID(U8BIT path)
Reads the video PID value from decode path store.
Definition: stbdpc.c:7113
U8BIT STB_DPAcquireTunerPath(E_STB_DP_SIGNAL_TYPE tuner_type, void *service, void *transport, E_STB_DP_RES_OWNER owner, E_STB_DP_PRIORITY priority, BOOLEAN with_decoders, BOOLEAN for_recording)
Acquires a decode path and all the required resources (tuner, demux, audio and video decoders)...
Definition: stbdpc.c:558
E_STB_DP_DISEQC_TONE STB_DPGetDISEQCTone(U8BIT path)
Reads the status of DiSEqC tone from decode path store.
Definition: stbdpc.c:5014
BOOLEAN STB_DPIsRecordingPath(U8BIT path)
Is the given decode path being used for recording.
Definition: stbdpc.c:1320
void STB_DPSetUserDefinedLNBBands(U8BIT path, U8BIT number_of_bands, S_STB_DP_LNB_BAND *band_definitions)
Stores the pointer to the array of band definitions for the user defined LNB.
Definition: stbdpc.c:4560
U32BIT STB_DPGetSIRequestParam3(U8BIT path)
Returns parameters for previous SI request.
Definition: stbdpc.c:3279
void STB_DPStartVideoDecoding(U8BIT path)
Requests start of channel decoding process.
Definition: stbdpc.c:2390
void STB_DPStartADDecoding(U8BIT path)
Requests start of channel decoding process.
Definition: stbdpc.c:2479
void STB_DPSetModulation(U8BIT path, E_STB_DP_MODULATION modulation)
Set the satellite modulation for the tuner in the given decode path.
Definition: stbdpc.c:6359
BOOLEAN STB_DPGetDVBS2(U8BIT path)
Returns whether the sat tuner is tuned to DVB-S or DVB-S2.
Definition: stbdpc.c:6338
BOOLEAN STB_DPGetPathCADescrambler(U8BIT path, U32BIT *handle)
Get the handle of the CA descrambler associated with the given path.
Definition: stbdpc.c:1244
void STB_DPSetScramSearch(U8BIT path, BOOLEAN state)
Writes SI scram chan search flag into decode path store.
Definition: stbdpc.c:4214
E_STB_DP_LNB_TYPE STB_DPGetLNBType(U8BIT path)
Reads the LNB type value from decode path store.
Definition: stbdpc.c:4531
void STB_DPSetLNBType(U8BIT path, E_STB_DP_LNB_TYPE type)
Writes LNB type value into decode path store.
Definition: stbdpc.c:4498
void STB_DPSetLockEnable(U8BIT path, BOOLEAN state)
Writes lock enable flag into decode path store.
Definition: stbdpc.c:3931
void STB_DPEnableDishLimits(U8BIT path, U16BIT ecount, U16BIT wcount)
Enables sat dish limits.
Definition: stbdpc.c:5527
void STB_DPSetDataPID(U8BIT path, U16BIT pid)
Writes data PID value into decode path store.
Definition: stbdpc.c:7355
void STB_DPSetUnicablePositionB(U8BIT path, BOOLEAN position_b)
Sets whether to use the alternate satellite position (Position B)
Definition: stbdpc.c:5258
void * STB_DPGetOwnerData(U8BIT path, U32BIT *data_size)
Returns the owner data saved with the path. This data should not be freed.
Definition: stbdpc.c:1993
void STB_DPStopTune(U8BIT path)
Stops of tuning signal scan and unlocks.
Definition: stbdpc.c:2285
void STB_DPSetTextPID(U8BIT path, U16BIT pid)
Writes teletext PID value into decode path store.
Definition: stbdpc.c:7288
void STB_DPSetADEnabled(U8BIT path, BOOLEAN state)
Writes the AD Audio into decode path store. To be set to ON or OFF. The exact ON state is depends if ...
Definition: stbdpc.c:3371
void STB_DPSetDISEQCTone(U8BIT path, E_STB_DP_DISEQC_TONE state)
Sets DiSEqC tone and writes status into decode path store.
Definition: stbdpc.c:4981
BOOLEAN STB_DPStartRecording(U8BIT path, U32BIT param)
Requests start of recording on specified path.
Definition: stbdpc.c:2112
BOOLEAN STB_DPGetRadioSearch(U8BIT path)
Reads the SI radio chan search flag state from decode path store.
Definition: stbdpc.c:4121
BOOLEAN STB_DPGetTuneRelock(U8BIT path)
Reads the tuner auto relock flag state from decode path store.
Definition: stbdpc.c:3899
BOOLEAN STB_DPGetLockEnable(U8BIT path)
Reads the lock enable flag state from decode path store.
Definition: stbdpc.c:3954
void STB_DPInitialise(void)
Initialises decode path control and sets up the structures for restricting access to resources...
Definition: stbdpc.c:331
void STB_DPSetDishLimitW(U8BIT path)
Sets current sat dish position as West limit.
Definition: stbdpc.c:5481
void STB_DPStartScan(U8BIT path)
Requests start of tuning signal scan process.
Definition: stbdpc.c:2270
void STB_DPSetOTASearchMode(U8BIT path, E_STB_OTA_SW_UPGRADE_SEARCH_MODE mode)
Sets the 'Over The Air' Software Upgrade Search Mode for a given path.
Definition: stbdpc.c:4338
E_STB_OTA_SW_UPGRADE_SEARCH_MODE STB_DPGetOTASearchMode(U8BIT path)
Returns the current 'Over The Air' Software Upgrade Search Mode for the given path.
Definition: stbdpc.c:4369
BOOLEAN STB_DPGetSearchMode(U8BIT path)
Reads the SI search mode flag state from decode path store.
Definition: stbdpc.c:4004
U8BIT STB_DPPathForAudioDecoder(U8BIT decoder_num)
Returns the decode path that is using the given audio decoder.
Definition: stbdpc.c:1436
void STB_DPSetNetworkSearch(U8BIT path, BOOLEAN state)
Writes SI network search flag into decode path store.
Definition: stbdpc.c:4275
U8BIT STB_DPGetPathSecondaryVideoDecoder(U8BIT path)
Returns the secondary video decoder ID acquired by the given decode path.
Definition: stbdpc.c:1781
void STB_DPSetCableMode(U8BIT path, E_STB_DP_CMODE mode)
Writes cable tuning mode value into decode path store.
Definition: stbdpc.c:6743
void STB_DPSetFEC(U8BIT path, E_STB_DP_FEC fec)
Writes FEC value into decode path store.
Definition: stbdpc.c:6254
void STB_DPStopADDecoding(U8BIT path)
Requests stop of channel decoding.
Definition: stbdpc.c:2781
BOOLEAN STB_DPSetAudioCodec(U8BIT path, E_STB_DP_AUDIO_CODEC codec)
Sets the type of CODEC to be used for Audio decoding.
Definition: stbdpc.c:7846
U8BIT STB_DPGetDISEQCUSwitch(U8BIT path)
Reads the status of DiSEqC uncommitted switch from decode path store.
Definition: stbdpc.c:4949
void STB_DPStoreDishPosition(U8BIT path, U16BIT count)
Stores sat dish position as given DiSEqC index number, or pulse count.
Definition: stbdpc.c:5833
void STB_DPSetTuneStatus(U8BIT path, E_STB_DP_TUNE_STATUS state)
Writes the tuning status into decode path store.
Definition: stbdpc.c:3304
U8BIT STB_DPGetPathDemux(U8BIT path)
Returns the demux path ID acquired by the given decode path.
Definition: stbdpc.c:1711
void STB_DPReleaseCISlotFromPath(U8BIT path)
Release the CI slot associated with the given path.
Definition: stbdpc.c:1051
BOOLEAN STB_DPGetTVSearch(U8BIT path)
Reads the SI TV chan search flag state from decode path store.
Definition: stbdpc.c:4060
void STB_DPStopAudioDecoding(U8BIT path)
Requests stop of channel decoding.
Definition: stbdpc.c:2846
U8BIT STB_DPGetUnicableChannel(U8BIT path)
Gets the currently set Unicable Channel (User Band).
Definition: stbdpc.c:5346
U16BIT STB_DPGetTextPID(U8BIT path)
Reads the teletext PID value from decode path store.
Definition: stbdpc.c:7323
U8BIT STB_DPPathForVideoDecoder(U8BIT decoder_num)
Returns the decode path that is using the given video decoder.
Definition: stbdpc.c:1490
void STB_DPSetDishPosition(U8BIT path, U16BIT count)
Writes sat dish position value into decode path store.
Definition: stbdpc.c:5886
U16BIT STB_DPGetDishPosition(U8BIT path)
Reads the actual sat dish position value.
Definition: stbdpc.c:5925
void STB_DPSetSkewPosition(U8BIT path, U16BIT count)
Writes sat skew position value into decode path store.
Definition: stbdpc.c:5994
void STB_DPSetUnicableChannel(U8BIT path, U8BIT chan)
Sets the current Unicable Channel (User Band).
Definition: stbdpc.c:5318
void STB_DPStartDishMoveE(U8BIT path, U16BIT count)
Starts sat dish moving east.
Definition: stbdpc.c:5615
E_STB_DP_AUDIO_MODE STB_DPGetAudioMode(U8BIT path)
Reads the audio mode value from decode path store.
Definition: stbdpc.c:7552
void STB_DPReleaseAllPaths(void)
Releases all decode paths and all the resources they are using.
Definition: stbdpc.c:933
BOOLEAN STB_DPGetScramSearch(U8BIT path)
Reads the SI scram chan search flag state from decode path store.
Definition: stbdpc.c:4243
E_STB_DP_LNB_POWER STB_DPGetLNBPower(U8BIT path)
Reads the LNB power status from decode path store.
Definition: stbdpc.c:4466
void STB_DPStartDishMoveW(U8BIT path, U16BIT count)
Starts sat dish moving west.
Definition: stbdpc.c:5683
Header file - Function prototypes for tuner control.
void STB_DPSetOwner(U8BIT path, E_STB_DP_RES_OWNER owner)
Sets the owner of the given path.
Definition: stbdpc.c:1885
void STB_DPSetTerrPLP(U8BIT path, U8BIT plp_id)
Sets terrestrial T2 PLP id into decode path store.
Definition: stbdpc.c:6675
void STB_DPSetDishLimitE(U8BIT path)
Sets current sat dish position as East limit.
Definition: stbdpc.c:5437