![]() |
DVBCore
20.3.0
DVBCore Documentation
|
Application level CI control functions. More...
#include "techtype.h"
Go to the source code of this file.
Typedefs | |
typedef void(* | F_NotifyStartTuning) (U32BIT module, U16BIT onet_id, U16BIT trans_id, U16BIT serv_id, E_CIP_TUNE_FLAGS flags) |
Notify that DVB is about to tune to service or transport stream. This function would be called as a result of STB_CITuneBroadcastRequest(), STB_CITuneLCNRequest(), STB_CITuneTripletRequest(), or STB_CITuneIPRequest() but before tuning occurs. More... | |
Functions | |
U8BIT | ACI_GetCamUpgradeMode (void) |
Return CAM upgrade option (Yes/No/Ask) More... | |
void | ACI_SetCamUpgradeMode (U8BIT upgrade_mode) |
Sets the CAM upgrade option (Yes/No/Ask) More... | |
E_CIP_START_OPERATOR_SEARCH | ACI_GetOperatorSearchMode (void) |
Return the option for starting an operator profile search (yes/no/ask) More... | |
void | ACI_SetOperatorSearchMode (E_CIP_START_OPERATOR_SEARCH search_mode) |
Sets the operator profile search mode (Yes/No/Ask). This should be used by the app to control whether a search can be started, or the user should be asked first, or can't run. More... | |
void | ACI_OperatorSearchRequired (U32BIT module, BOOLEAN required) |
Sets whether an operator profile search needs to be run. More... | |
void | ACI_ScheduleOperatorSearch (U32BIT cicam_id, U16BIT date, U8BIT hour, U8BIT min) |
Sets the date/time that an operator search should be started for the given module. More... | |
BOOLEAN | ACI_IsOperatorSearchRequired (void) |
Returns whether an operator profile search has been requested. More... | |
U32BIT | ACI_GetOperatorSearchModule (void) |
Returns the module performing or requiring and operator search. More... | |
BOOLEAN | ACI_GetFirstOperatorSearchModule (U32BIT *module) |
Checks all the CI+ profiles to see if any have requested an update search. More... | |
BOOLEAN | ACI_GetFirstScheduledOperatorSearch (U32BIT *module, U16BIT *date, U8BIT *hours, U8BIT *mins) |
Checks all the CI+ profiles to find the one with the earliest scheduled search. All returned values are only valid if the function returns TRUE. More... | |
BOOLEAN | ACI_StartOperatorSearchForModule (U32BIT module) |
Called by the app to start an operator profile search for the given module. More... | |
BOOLEAN | ACI_AcquireCISlot (U8BIT path, void *s_ptr) |
Acquires a CI slot for the given path on the given service after releasing any slot already being used by the path. More... | |
BOOLEAN | ACI_AcquireCISlotForRecording (U8BIT path, void *s_ptr) |
Acquires a CI slot for the recording path. This function may need to "steal" the CI slot from the live path (if they are not the same path). More... | |
U8BIT | ACI_FindCISlotForService (void *serv_ptr) |
Looks for a CAM that's able to descramble the given service and returns its slot id. More... | |
S32BIT | ACI_ReadPinForSlot (U8BIT slot_id) |
Checks if a pin has been saved for the CAM in the given slot and returns it. More... | |
BOOLEAN | ACI_WritePinForSlot (U8BIT slot_id, S32BIT pin) |
Saves the given pin associated with the CAM in the given slot. If the pin for this CAM has previously been saved then the saved value will be updated. If all entries are used then the oldest will be overwritten. More... | |
BOOLEAN | ACI_SendPinToCam (U8BIT slot_id, U32BIT pin) |
Converts the pin value to ASCII and sends it to the CAM An STB_EVENT_CI_PIN_STATUS event will be sent to notify the validity, or otherwise, of the pin. More... | |
void | ACI_RegisterStartTuneNotifyCallback (F_NotifyStartTuning cb_func) |
Register callback function to notify start of tuning process due to CI tune request. More... | |
typedef void(* F_NotifyStartTuning) (U32BIT module, U16BIT onet_id, U16BIT trans_id, U16BIT serv_id, E_CIP_TUNE_FLAGS flags) |
Notify that DVB is about to tune to service or transport stream. This function would be called as a result of STB_CITuneBroadcastRequest(), STB_CITuneLCNRequest(), STB_CITuneTripletRequest(), or STB_CITuneIPRequest() but before tuning occurs.
onet_id | original network id |
trans_id | transport id |
serv_id | service id |
tune | flags Presentation engine tuning flags (Quiet tune / Keep app running) |
BOOLEAN ACI_AcquireCISlot | ( | U8BIT | path, |
void * | s_ptr | ||
) |
BOOLEAN ACI_AcquireCISlotForRecording | ( | U8BIT | path, |
void * | s_ptr | ||
) |
Acquires a CI slot for the recording path. This function may need to "steal" the CI slot from the live path (if they are not the same path).
path | decode path for recording |
s_ptr | service to be used on the path |
path | decode path for recording |
s_ptr | service to be used on the path |
U8BIT ACI_FindCISlotForService | ( | void * | serv_ptr | ) |
U8BIT ACI_GetCamUpgradeMode | ( | void | ) |
BOOLEAN ACI_GetFirstOperatorSearchModule | ( | U32BIT * | module | ) |
BOOLEAN ACI_GetFirstScheduledOperatorSearch | ( | U32BIT * | module, |
U16BIT * | date, | ||
U8BIT * | hours, | ||
U8BIT * | mins | ||
) |
Checks all the CI+ profiles to find the one with the earliest scheduled search. All returned values are only valid if the function returns TRUE.
module | pointer to return the handle of the first module requiring an update |
date | pointer to return the date code of the search |
hours | pointer to return the hour of the search |
mins | pointer to return the minute of the search |
E_CIP_START_OPERATOR_SEARCH ACI_GetOperatorSearchMode | ( | void | ) |
U32BIT ACI_GetOperatorSearchModule | ( | void | ) |
BOOLEAN ACI_IsOperatorSearchRequired | ( | void | ) |
void ACI_OperatorSearchRequired | ( | U32BIT | module, |
BOOLEAN | required | ||
) |
S32BIT ACI_ReadPinForSlot | ( | U8BIT | slot_id | ) |
void ACI_RegisterStartTuneNotifyCallback | ( | F_NotifyStartTuning | cb_func | ) |
void ACI_ScheduleOperatorSearch | ( | U32BIT | cicam_id, |
U16BIT | date, | ||
U8BIT | hour, | ||
U8BIT | min | ||
) |
BOOLEAN ACI_SendPinToCam | ( | U8BIT | slot_id, |
U32BIT | pin | ||
) |
void ACI_SetCamUpgradeMode | ( | U8BIT | upgrade_mode | ) |
void ACI_SetOperatorSearchMode | ( | E_CIP_START_OPERATOR_SEARCH | search_mode | ) |
BOOLEAN ACI_StartOperatorSearchForModule | ( | U32BIT | module | ) |
BOOLEAN ACI_WritePinForSlot | ( | U8BIT | slot_id, |
S32BIT | pin | ||
) |
Saves the given pin associated with the CAM in the given slot. If the pin for this CAM has previously been saved then the saved value will be updated. If all entries are used then the oldest will be overwritten.
slot_id | CI slot |
pin | pin value to be saved |