source: svn/branches/kctv/newcon3bcm2_21bu/BSEAV/lib/si/stt/si_stt.h

Last change on this file was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 1.8 KB
Line 
1/***************************************************************
2**
3** Broadcom Corp. Confidential
4** Copyright 2003-2008 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_stt.h
12** Description: defines for the STT table parse function.
13**
14** Created: 03/08/2001
15**
16** REVISION:
17**
18** $Log: $
19**
20**
21****************************************************************/
22#ifndef SI_STT_H
23#define SI_STT_H
24
25/* For the following, refer to table 5.23 of ANSI/SCTE65 2002 (DVS234) */
26#define STT_TABLE_ID_BYTE_INDX    0
27#define STT_TABLE_ID_BYTE_NUM    1
28#define STT_TABLE_ID_SHIFT    0
29#define STT_TABLE_ID_MASK    0xff
30
31#define STT_SECTION_LENGTH_BYTE_INDX    1
32#define STT_SECTION_LENGTH_BYTE_NUM    2
33#define STT_SECTION_LENGTH_SHIFT    0
34#define STT_SECTION_LENGTH_MASK    0x0fff
35
36#define STT_PROTOCOL_VERSION_BYTE_INDX    3
37#define STT_PROTOCOL_VERSION_BYTE_NUM    1
38#define STT_PROTOCOL_VERSION_SHIFT    0
39#define STT_PROTOCOL_VERSION_MASK    0x1f
40
41#define STT_SYSTEM_TIME_BYTE_INDX    5
42#define STT_SYSTEM_TIME_BYTE_NUM    4
43#define STT_SYSTEM_TIME_SHIFT    0
44#define STT_SYSTEM_TIME_MASK    0xffffffff
45
46#define STT_GPS_UTC_OFFSET_BYTE_INDX    9
47#define STT_GPS_UTC_OFFSET_BYTE_NUM    1
48#define STT_GPS_UTC_OFFSET_SHIFT    0
49#define STT_GPS_UTC_OFFSET_MASK    0xff
50
51
52
53#ifdef __cplusplus
54extern "C" {
55#endif
56
57void SI_STT_Init (void);
58SI_RET_CODE SI_STT_parse (unsigned char * stt_table);
59unsigned long SI_STT_Get_Sys_Time (void);
60unsigned long SI_STT_Get_GPS_UTC_Offset (void);
61unsigned long SI_STT_Conv_To_UTC_Time (unsigned long time);
62
63#ifdef __cplusplus
64}
65#endif
66
67
68
69#endif
Note: See TracBrowser for help on using the repository browser.