/*************************************************************** ** ** Broadcom Corp. Confidential ** Copyright 2003-2008 Broadcom Corp. All Rights Reserved. ** ** THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED ** SOFTWARE LICENSE AGREEMENT BETWEEN THE USER AND BROADCOM. ** YOU HAVE NO RIGHT TO USE OR EXPLOIT THIS MATERIAL EXCEPT ** SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. ** ** File: si_ntt.h ** Description: defines and headers for function that parses the ** NTT table sections. ** ** Created: 03/08/2001 ** ** REVISION: ** ** $Log: $ ** ** ****************************************************************/ #ifndef SI_NTT_H #define SI_NTT_H #include "si_ntt_sns.h" #define NTT_SNS_SUBTYPE 0x6 /* For the following, refer to table 5.10 of ANSI/SCTE65 2002 (DVS234) */ #define NTT_TABLE_ID_BYTE_INDX 0 #define NTT_TABLE_ID_BYTE_NUM 1 #define NTT_TABLE_ID_SHIFT 0 #define NTT_TABLE_ID_MASK 0xff #define NTT_SECTION_LENGTH_BYTE_INDX 1 #define NTT_SECTION_LENGTH_BYTE_NUM 2 #define NTT_SECTION_LENGTH_SHIFT 0 #define NTT_SECTION_LENGTH_MASK 0x0fff #define NTT_PROTOCOL_VERSION_BYTE_INDX 3 #define NTT_PROTOCOL_VERSION_BYTE_NUM 1 #define NTT_PROTOCOL_VERSION_SHIFT 0 #define NTT_PROTOCOL_VERSION_MASK 0x1f #define NTT_ISO_639_CODE_BYTE_INDX 4 #define NTT_ISO_639_CODE_BYTE_NUM 3 #define NTT_ISO_639_CODE_SHIFT 0 #define NTT_ISO_639_CODE_MASK 0xffffff #define NTT_TABLE_SUBTYPE_BYTE_INDX 7 #define NTT_TABLE_SUBTYPE_BYTE_NUM 1 #define NTT_TABLE_SUBTYPE_SHIFT 0 #define NTT_TABLE_SUBTYPE_MASK 0xf #ifdef __cplusplus extern "C" { #endif void SI_NTT_Init(SI_NTT_SNS_Callback_t *cb, unsigned char NTT_SNS_version_number); SI_RET_CODE SI_NTT_parse (unsigned char * table); bool SI_NTT_SNS_Complete(void); #ifdef __cplusplus } #endif #endif