DVBCore  17.9.0
Open Source DVB Engine
 All Data Structures Files Functions Typedefs Macros Pages
Macros | Functions
ci_plus_glue.c File Reference

CI+ Glue. More...

#include "techtype.h"
#include "dbgfuncs.h"
#include "stbhwos.h"
#include "stbgc.h"
#include "stberc.h"
#include "stbcicc.h"
#include "ap_cfg.h"
#include "ap_ci.h"
#include "ap_ci_support.h"
#include "stbci.h"

Macros

#define DBG(x)
 

Functions

void STB_CINotifyAppInfo (U32BIT module, U8BIT app_type, U16BIT app_manf, U16BIT manf_code, U8BIT *menu_string)
 Notify application information. More...
 
void STB_CINotifyModuleInsert (U8BIT slot_id)
 Notify module insertion. More...
 
void STB_CINotifyModuleRemove (U8BIT slot_id)
 Notify module removal. More...
 
void STB_CINotifyScreenEvent (U32BIT module, U8BIT event)
 Notify UI screen event. More...
 
void STB_CITune (U32BIT module, U16BIT nid, U16BIT onid, U16BIT tsid, U16BIT sid)
 Handle Tune request from the CAM. More...
 
void STB_CIReplace (U32BIT module, U8BIT ref, U16BIT replaced_pid, U16BIT replacement_pid)
 Handle Replace message from the CAM. More...
 
void STB_CIClearReplace (U32BIT module, U8BIT ref)
 Clear PID replacement. More...
 
void STB_CINotifyHostControlSession (U32BIT module)
 
void STB_CINotifyHostControlSessionClosed (U32BIT module)
 
void STB_CIAskReleaseReply (U32BIT module, U8BIT release_reply)
 
void STB_CITuneBroadcastRequest (U32BIT module, U16BIT service_id, U16BIT desc_loop_len, U8BIT *desc_loop, U8BIT *pmt)
 
void STB_CIGetDateTime (U16BIT *mjd, U8BIT *hour, U8BIT *minute, U8BIT *second, S16BIT *offset)
 Return current date and time. More...
 
void STB_CIGetHostCountryCode (U32BIT module, U8BIT *code)
 Return country code. More...
 
void STB_CIGetHostLanguageCode (U32BIT module, U8BIT *code)
 Return language code. More...
 
U8BIT STB_CINotifyFirmwareUpgrade (U8BIT slot_id, U8BIT type, U16BIT download_time)
 Handle firmware upgrade notification. More...
 
void STB_CINotifyFirmwareUpgradeProgress (U8BIT slot_id, U8BIT status)
 Handle firmware upgrade progress notification. More...
 
void STB_CINotifyFirmwareUpgradeComplete (U8BIT slot_id)
 Handle firmware upgrade complete notification. More...
 
void STB_CINotifyFirmwareUpgradeFailure (U8BIT slot_id)
 Handle firmware upgrade failure notification. More...
 
void STB_CINotifyOperatorStatus (U32BIT module, S_STB_CI_OPERATOR_STATUS *status)
 
void STB_CINotifyOperatorInfo (U32BIT module, U8BIT info_version, S_STB_CI_OPERATOR_INFO *info)
 
void STB_CINotifyOperatorTune (U32BIT module, U16BIT desc_loop_len, U8BIT *desc_loop)
 
void STB_CINotifyOperatorSearchStatus (U32BIT module, S_STB_CI_OPERATOR_STATUS *status)
 
void STB_CINotifyOperatorNit (U32BIT module, U16BIT nit_loop_length, U8BIT *nit_sections)
 

Detailed Description

CI+ Glue.

Date
19 February 2009
Author
Omri Barel

Function Documentation

void STB_CIClearReplace ( U32BIT  module,
U8BIT  ref 
)

Clear PID replacement.


Parameters
module- module ID
ref- replacement reference (provided by STB_CIReplace)
void STB_CIGetDateTime ( U16BIT *  mjd,
U8BIT *  hour,
U8BIT *  minute,
U8BIT *  second,
S16BIT *  offset 
)

Return current date and time.


Parameters
mjd- modified Julian date (date part only)
hour- hours
min- minutes
secs- seconds
offset- offset from UTC in minutes
void STB_CIGetHostCountryCode ( U32BIT  module,
U8BIT *  code 
)

Return country code.


Parameters
module- module ID
code- three letter country code
void STB_CIGetHostLanguageCode ( U32BIT  module,
U8BIT *  code 
)

Return language code.


Parameters
module- module ID
code- three letter language code
void STB_CINotifyAppInfo ( U32BIT  module,
U8BIT  app_type,
U16BIT  app_manf,
U16BIT  manf_code,
U8BIT *  menu_string 
)

Notify application information.


Parameters
module- module ID
app_type- application type
app_manf- application manufacturer
manf_code- manufacturer code
menu_string- top level menu string
U8BIT STB_CINotifyFirmwareUpgrade ( U8BIT  slot_id,
U8BIT  type,
U16BIT  download_time 
)

Handle firmware upgrade notification.


Parameters
slot_id- slot ID
type- type of firmware upgrade (immediate/delayed)
download_time- estimated download time in seconds (0 = unknown)
Returns
CAM upgrade reply
void STB_CINotifyFirmwareUpgradeComplete ( U8BIT  slot_id)

Handle firmware upgrade complete notification.


Parameters
module- module ID
void STB_CINotifyFirmwareUpgradeFailure ( U8BIT  slot_id)

Handle firmware upgrade failure notification.


Parameters
module- module ID
void STB_CINotifyFirmwareUpgradeProgress ( U8BIT  slot_id,
U8BIT  status 
)

Handle firmware upgrade progress notification.


Parameters
slot_id- slot ID
status- status of progress (percentage in 10% steps)
void STB_CINotifyModuleInsert ( U8BIT  slot_id)

Notify module insertion.


Parameters
slot_id- slot ID for module
void STB_CINotifyModuleRemove ( U8BIT  slot_id)

Notify module removal.


Parameters
slot_id- slot ID for module
void STB_CINotifyScreenEvent ( U32BIT  module,
U8BIT  event 
)

Notify UI screen event.


Parameters
module- module ID
event- screen event
void STB_CIReplace ( U32BIT  module,
U8BIT  ref,
U16BIT  replaced_pid,
U16BIT  replacement_pid 
)

Handle Replace message from the CAM.


Parameters
module- module ID
ref- reference for replacement operation
replaced_pid- PID to be replaced
replacement_pid- replacement PID
void STB_CITune ( U32BIT  module,
U16BIT  nid,
U16BIT  onid,
U16BIT  tsid,
U16BIT  sid 
)

Handle Tune request from the CAM.


Parameters
module- module ID
nid- network ID
onid- original network ID
tsid- transport stream ID
sid- service ID