DVBCore  17.9.0
Open Source DVB Engine
 All Data Structures Files Functions Typedefs Macros Pages
Data Structures | Typedefs | Enumerations | Functions
ap_ci_int.h File Reference

Application level CI - internal functions. More...

#include "techtype.h"
#include "stbsitab.h"

Go to the source code of this file.

Data Structures

struct  S_CIP_RELEASE_REPLY
 
struct  ci_tune_del_sys_desc
 

Typedefs

typedef enum e_cip_tuner_status E_CIP_TUNER_STATUS
 
typedef struct adb_event_descpADB_EVENT_DESC
 
typedef struct ci_tune_del_sys_desc S_CIP_TUNE_DEL_SYS_DESC
 

Enumerations

enum  e_cip_tuner_status {
  CIP_TUNER_LOCKED, CIP_TUNER_UNSUPPORTED_SYSTEM, CIP_TUNER_NOTLOCKED, CIP_TUNER_BUSY,
  CIP_TUNER_BAD_PARAMETER, CIP_TUNER_SERVICE_NOT_FOUND, CIP_TUNER_UNDEFINED_ERROR
}
 

Functions

void ACI_Initialise (void)
 Initialise CI Host Control support.
 
BOOLEAN ACI_HandlePrivateTimer (U32BIT timer_handle)
 Checks whether the given timer is associated with any of the CI+ profiles and starts the operator search if possible. More...
 
BOOLEAN ACI_SetSecureRouting (U8BIT path)
 Ensures the TS is routed securely for CI+, either by setting the TS to pass through if a CI slot contains a CI+ CAM or bypass it if it doesn't.
 
void ACI_UsageRulesStatusChanged (U8BIT path)
 Re-evaluate current state follwing a change related to usage rules. More...
 
void ACI_ProgramMapTableChanged (U8BIT *pmt)
 Handle PMT change. More...
 
BOOLEAN ACI_IsTrustedPath (U8BIT path)
 The given decode path is only trusted if it doesn't include a CI slot or the CI slot contains a CI+ CAM. More...
 
void ACI_UseCiModuleOnPath (U8BIT path, U32BIT module)
 Use the CI module with the given path. More...
 
BOOLEAN ACI_PathOwnedByModule (U8BIT path, U32BIT module)
 Checks whether path is owned by CI module. More...
 
void ACI_TuneToTransport (U32BIT module, void *t_ptr)
 Schedule a tune to a transport. More...
 
void ACI_TuneToService (U32BIT module, void *s_ptr)
 Schedule a tune to a service. More...
 
void ACI_TuneToDelSysDesc (U32BIT module, S_CIP_TUNE_DEL_SYS_DESC *tune)
 Tune to a service/transport defined by a delivery system descriptor, possibly with PMT data, if it's a service. More...
 
BOOLEAN ACI_AskRelease (U32BIT module)
 Ask the host control module to restore replaced PIDs and to close the session with the host control resource. More...
 
void ACI_TuneReply (U8BIT path, U32BIT module, E_CIP_TUNER_STATUS status)
 This function is called by the host to send the status of the tune operation to the module. More...
 

Detailed Description

Application level CI - internal functions.

Date
December 2016
Author
Adam Sturtridge

Function Documentation

BOOLEAN ACI_AskRelease ( U32BIT  module)

Ask the host control module to restore replaced PIDs and to close the session with the host control resource.

Parameters
modulespecifies module required
Returns
TRUE if operation successful, FALSE otherwise
BOOLEAN ACI_HandlePrivateTimer ( U32BIT  timer_handle)

Checks whether the given timer is associated with any of the CI+ profiles and starts the operator search if possible.

Parameters
timer_handletimer handle
Returns
TRUE if the timer is associated with a profile, FALSE otherwise
BOOLEAN ACI_IsTrustedPath ( U8BIT  path)

The given decode path is only trusted if it doesn't include a CI slot or the CI slot contains a CI+ CAM.

Parameters
pathdecode path
Returns
TRUE if the decode path is trusted, FALSE otherwise
BOOLEAN ACI_PathOwnedByModule ( U8BIT  path,
U32BIT  module 
)

Checks whether path is owned by CI module.

Parameters
modulespecifies module (host control or operator)
Returns
TRUE if path owned by module, FALSE otherwise
void ACI_ProgramMapTableChanged ( U8BIT *  pmt)

Handle PMT change.

Parameters
pmtthe new PMT
void ACI_TuneReply ( U8BIT  path,
U32BIT  module,
E_CIP_TUNER_STATUS  status 
)

This function is called by the host to send the status of the tune operation to the module.

Parameters
pathdecode path used for tuning
modulehost control module
statustune operation status
path- decode path used for tuning
module- host control module
status- tune operation status
void ACI_TuneToDelSysDesc ( U32BIT  module,
S_CIP_TUNE_DEL_SYS_DESC tune 
)

Tune to a service/transport defined by a delivery system descriptor, possibly with PMT data, if it's a service.

Parameters
module- module id
tune- tuning parameters
void ACI_TuneToService ( U32BIT  module,
void *  s_ptr 
)

Schedule a tune to a service.

Parameters
modulemodule id
s_ptrtarget service pointer
void ACI_TuneToTransport ( U32BIT  module,
void *  t_ptr 
)

Schedule a tune to a transport.

Parameters
modulemodule id
t_ptrtarget transport pointer
void ACI_UsageRulesStatusChanged ( U8BIT  path)

Re-evaluate current state follwing a change related to usage rules.

Parameters
pathdecode path
void ACI_UseCiModuleOnPath ( U8BIT  path,
U32BIT  module 
)

Use the CI module with the given path.

Parameters
path- decode path
module- CI module