DVBCore
1.0
Open source DVB engine
|
00001 /******************************************************************************* 00002 * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org) 00003 * Copyright © 2004 Ocean Blue Software Ltd 00004 * 00005 * This file is part of a DTVKit Software Component 00006 * You are permitted to copy, modify or distribute this file subject to the terms 00007 * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org 00008 * 00009 * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 00010 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES 00011 * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. 00012 * 00013 * If you or your organisation is not a member of DTVKit then you have access 00014 * to this source code outside of the terms of the licence agreement 00015 * and you are expected to delete this and any associated files immediately. 00016 * Further information on DTVKit, membership and terms can be found at www.dtvkit.org 00017 *******************************************************************************/ 00024 // pre-processor mechanism so multiple inclusions don't cause compilation error 00025 00026 #ifndef _STBHWC_H 00027 #define _STBHWC_H 00028 00029 //---Constant and macro definitions for public use----------------------------- 00030 00031 //---Enumerations for public use----------------------------------------------- 00032 00033 typedef enum 00034 { 00035 HANDSHAKING_NONE, 00036 HANDSHAKING_XONXOFF, 00037 HANDSHAKING_RTSCTS 00038 } E_STB_SP_HANDSHAKING; 00039 00040 typedef enum e_hw_status 00041 { 00042 HW_OK = 0, 00043 HW_GEN_ERROR, 00044 HW_BAD_PARAM, 00045 HW_NO_MEMORY 00046 } E_HW_STATUS; 00047 00048 //---Global type defs for public use------------------------------------------- 00049 00050 //---Global Function prototypes for public use--------------------------------- 00051 00052 // Serial port functions 00053 00054 void STB_SPWrite(U8BIT *data, U32BIT len, U32BIT timeout, U32BIT *written); 00055 void STB_SPRead(U8BIT *data, U32BIT len, U32BIT timeout, U32BIT *read); 00056 00062 void STB_SPDebugWrite(const char *format, ... ); 00063 00068 void STB_SPDebugNoCnWrite(const char *format, ... ); 00069 00076 void STB_SPDebugAssertFail(const char *file, int line, const char *eval_str); 00077 00082 U8BIT STB_HWGetTunerPaths(void); 00083 00088 U8BIT STB_HWGetNumRecorders(void); 00089 00094 U8BIT STB_HWGetAudioDecodePaths(void); 00095 00100 U8BIT STB_HWGetVideoDecodePaths(void); 00101 00106 U8BIT STB_HWGetDemuxPaths(void); 00107 00112 U8BIT STB_HWGetNumCISlots(void); 00113 00118 U8BIT STB_HWGetNumSCSlots(void); 00119 00124 U8BIT* STB_HWGetOUI(void); 00125 00130 U16BIT STB_HWGetHwId(void); 00131 00136 U16BIT STB_HWGetCustomerId(void); 00137 00142 U32BIT STB_HWGetBoxSerialNumber(void); 00143 00150 BOOLEAN STB_GetSqlFileName(U8BIT *pathname, U16BIT max_pathname_len); 00151 00152 // VBI interface 00153 void STB_HWInitialiseVBI(void); 00154 void STB_HWVBIInsert(U8BIT *pes_data_field, U32BIT num_bytes); 00155 00156 #endif // _STBHWC_H 00157 00158