source: svn/newcon3bcm2_21bu/BSEAV/lib/si/a56/nim/si_nim.h

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 2.4 KB
Line 
1/***************************************************************
2**
3** Broadcom Corp. Confidential
4** Copyright 2003-2012 Broadcom Corp. All Rights Reserved.
5**
6** THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED
7** SOFTWARE LICENSE AGREEMENT BETWEEN THE USER AND BROADCOM.
8** YOU HAVE NO RIGHT TO USE OR EXPLOIT THIS MATERIAL EXCEPT
9** SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
10**
11** File:                si_nim.h
12** Description: defines for the NIM table section.
13**
14** Created: 03/08/2001
15**                      1/31/2012, modified for A56 support
16**
17** REVISION:
18**
19** $Log: $
20**
21**
22****************************************************************/
23#ifndef SI_NIM_H
24#define SI_NIM_H
25
26#include "si_nim_cdt.h"
27#include "si_nim_mmt.h"
28#include "si_transmission_medium.h"
29
30/* For the following, refer to table 5.1 of ANSI/A/56 03 Jan 96 */
31#define NIM_TABLE_ID_BYTE_INDX                  0
32#define NIM_TABLE_ID_BYTE_NUM                   1
33#define NIM_TABLE_ID_SHIFT                              0
34#define NIM_TABLE_ID_MASK                               0xff
35
36#define NIM_SECTION_LENGTH_BYTE_INDX    1
37#define NIM_SECTION_LENGTH_BYTE_NUM             2
38#define NIM_SECTION_LENGTH_SHIFT                0
39#define NIM_SECTION_LENGTH_MASK                 0x0fff
40
41#define NIM_PROTOCOL_VERSION_BYTE_INDX  3
42#define NIM_PROTOCOL_VERSION_BYTE_NUM   1
43#define NIM_PROTOCOL_VERSION_SHIFT              0
44#define NIM_PROTOCOL_VERSION_MASK               0x1f
45
46#define NIM_FIRST_INDEX_BYTE_INDX               4
47#define NIM_FIRST_INDEX_BYTE_NUM                1
48#define NIM_FIRST_INDEX_SHIFT                   0
49#define NIM_FIRST_INDEX_MASK                    0xff
50
51#define NIM_NUMBER_OF_RECORDS_BYTE_INDX 5
52#define NIM_NUMBER_OF_RECORDS_BYTE_NUM  1
53#define NIM_NUMBER_OF_RECORDS_SHIFT             0
54#define NIM_NUMBER_OF_RECORDS_MASK              0xff
55
56#define NIM_TRANSMISSION_MEDIUM_BYTE_INDX       6
57#define NIM_TRANSMISSION_MEDIUM_BYTE_NUM        1
58#define NIM_TRANSMISSION_MEDIUM_SHIFT   4
59#define NIM_TRANSMISSION_MEDIUM_MASK    0x0f
60
61#define NIM_TABLE_TYPE_BYTE_INDX                6
62#define NIM_TABLE_TYPE_BYTE_NUM                 1
63#define NIM_TABLE_TYPE_SHIFT                    0
64#define NIM_TABLE_TYPE_MASK                             0x0f
65
66/* For the following, refer to table 5.2 of ANSI/A56 1996 */
67typedef enum {
68        NIM_TT_INVALID,
69        NIM_TT_CDT,             
70        NIM_TT_MMT,
71        NIM_TT_SIT,
72        NIM_TT_TDT
73} NIM_TABLE_TYPE;
74
75#ifdef __cplusplus
76extern "C" {
77#endif
78
79void SI_NIM_Init (SI_NIM_CDT_Callback_t *p_cdt_cb,
80        SI_NIM_MMT_Callback_t *p_mmt_cb,
81        unsigned char NIM_CDT_Version_Number,
82        unsigned char NIM_MMT_Version_Number);
83
84SI_RET_CODE SI_NIM_parse (unsigned char * nit_table);
85bool SI_NIM_CDT_Complete(void);
86bool SI_NIM_MMT_Complete(void);
87
88#ifdef __cplusplus
89}
90#endif
91
92#endif
93
Note: See TracBrowser for help on using the repository browser.