HbbTv  17.9.0
Open source HBBTV engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
ait.c File Reference

AIT functionality. More...

#include <stdio.h>
#include <string.h>
#include "dbgfuncs.h"
#include "techtype.h"
#include "hbbtv_sif_os.h"
#include "debug.h"
#include "queue.h"
#include "ait.h"
#include "hbbtv_string.h"
#include "oipf_app_mgr.h"
#include "hbbtv_control.h"
#include "hbbtv.h"

Macros

#define DTAG_APP_DESC   0x00
 
#define DTAG_APP_NAME   0x01
 
#define DTAG_TRANSPORT_PROTOCOL   0x02
 
#define DTAG_EXT_AUTH   0x05
 
#define DTAG_APPLICATION_ICON   0x0b
 
#define DTAG_SIMPLE_APP_LOCATION   0x15
 
#define DTAG_APP_USAGE   0x16
 
#define DTAG_SIMPLE_APP_BOUNDARY   0x17
 
#define NUM_RECEIVED_SECTION_MASK_BYTES   (256 / 8)
 
#define GET_SECTION_MASK_INDEX(section_number)   (section_number / 8)
 
#define GET_SECTION_MASK_SHIFT(section_number)   (section_number % 8)
 

Functions

E_HBBTV_ERR HBBTV_ProcessAitSection (U16BIT service_id, U8BIT *data, U32BIT nbytes)
 Requests the HBBTV engine to process the specified AIT. More...
 
void AIT_ClearTable (S_AIT_TABLE *ait_table)
 
S_AIT_APP_DESCAIT_AutoStartApp (S_AIT_TABLE *ait_table)
 
S_AIT_APP_DESCAIT_TeletextApp (S_AIT_TABLE *ait_table)
 
S_AIT_APP_DESCAIT_FindApp (S_AIT_TABLE *ait_table, U32BIT org_id, U16BIT app_id)
 

Detailed Description

AIT functionality.

Date
September 2011
Author
Adam Sturtridge

Function Documentation

S_AIT_APP_DESC* AIT_AutoStartApp ( S_AIT_TABLE ait_table)

Parameters
@return
void AIT_ClearTable ( S_AIT_TABLE ait_table)

Parameters
@return
S_AIT_APP_DESC* AIT_FindApp ( S_AIT_TABLE ait_table,
U32BIT  org_id,
U16BIT  app_id 
)

Parameters
@return
S_AIT_APP_DESC* AIT_TeletextApp ( S_AIT_TABLE ait_table)

Parameters
@return
E_HBBTV_ERR HBBTV_ProcessAitSection ( U16BIT  service_id,
U8BIT *  data,
U32BIT  nbytes 
)

Requests the HBBTV engine to process the specified AIT.

Requests the HbbTV engine to process the specified AIT. The HbbTV engine expects the relevant AITs only (the first one after HBBTV_Start and when the version changes). If more than one stream is signalled in the PMT for a service with an application_signalling_descriptor, then the application_signalling_descriptor for the stream containing the AIT for the HbbTV application shall include the HbbTV application_type (0x0010).

Parameters
service_idService ID he AIT refers to
datapointer to the buffer containing the AIT row data
nbytesnumber of bytes contained in data
Returns
HBBTV_OK is the AIT has been parsed correctly, HBBTV_IGNORED_REQUEST if the service ID is not the current one. Other possible error codes are: HBBTV_ERR_COMP_NOT_OPEN, HBBTV_ERR_COMP_NOT_STARTED, HBBTV_ERR_SYSTEM_RESOURCE, HBBTV_ERR_BAD_PARAMETER