⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 0229.h

📁 Zoran V966 DVD 解码 Soc芯片的源程序
💻 H
字号:
/* **************************************************************************************
 *  Copyright (c) 2004 ZORAN Corporation, All Rights Reserved
 *  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
 *
 *  File: $Workfile: .c $             
 *
 * Description:
 * ============
 * 
 * 
 * Log:
 * ====
 * $Revision: $
 * Last Modified by $Author:  $ at $Modtime: $ 
 **************************************************************************************** */
#include "Config.h"		// Global Configuration - do not remove!

#ifndef _0299_H
#define _0299_H

/////////////////////////////////////////////////////////////////////////////////////////////////
// Include files

#include "devices\demodulator\0299\def.h"
#include "devices\demodulator\0299\Reg0299.h"
#include "devices\demodulator\0299\Driv0299.h"

/////////////////////////////////////////////////////////////////////////////////////////////////
// Defines

#define DISEQC_OPT_SENDONLY         0x00 // Only send data
#define DISEQC_OPT_RXONLY           0x10 // Read reply only, no tx required
#define DISEQC_OPT_TXONLY           0x20 // return after sending tx message 
#define DISEQC_OPT_RESTORE          0x40 // Restore 22kHz tone condition (after receive only completed)
#define DISEQC_OPT_MASK             0xF0

// diseqc version
#define DISEQC_VERSION1_0           0x00
#define DISEQC_VERSION1_1           0x01
#define DISEQC_VERSION1_2           0x02
#define DISEQC_VERSION_MASK         0x0F

/////////////////////////////////////////////////////////////////////////////////////////////////
// Enumerations & Structures

typedef struct
{
    // higher 4 bits are for send options, lower 4 bits are for DisEqC version
	UINT8 options;		// options requested by caller and DisEqc version
	UINT8 status;		// in DisEqC1.0: 0 - LnbOff, 1 - Lnb1, 2 - Lnb2, 3 - Lnb3, 4 - Lnb4
    UINT8 toneburst;	// Tone Burst: 0-SatA, 1-SatB
    UINT8 repeats;		// repeat times for cascaded mode:0 , 1, 2, 3.
	UINT8 parity;		// Rx parity.0 = no errors, b0 set = byte 0 parity error etc
	UINT8 count;		// number of bytes to send or receive
	UINT8 data[6];		// message data
} SDiSEqCMessage;

typedef struct
{
	REGISTER RegMap[NBREG];		// HAMAD - Allocate on the FLASH!
	FIELD FieldMap[NBFIELD];	// HAMAD - Allocate on the FLASH!
	long RegExtClk; 
	FLAG_ RegTrigger;
	long EndScanFrequency;
	long StartScanFrequency;
	DEMOD_LNB_FREQ sLnb;
	SEARCHPARAMS Params;
	SEARCHRESULT Result;
	long ScanCurrentFrequency;
	POLARIZATION ScanPolarization;
} DEMOD_SAT_DATA;

/////////////////////////////////////////////////////////////////////////////////////////////////
// Public Services

void D299_Init(DEMOD_HANDLE handle);
void D299_Standby(long lDemodulator_id, INT32 iStandby);
BOOL D299_Connect(DEMOD_HANDLE handle, DEMOD_DELIVERY_INFO *tuning_info);
INT32 D299_GetSignalData(DEMOD_HANDLE handle, DEMOD_SIGNAL_ATTRIBUTES *pSignal, DEMOD_DELIVERY_INFO* tuning_info);
void D299_Set22kOnOff(DEMOD_HANDLE handle, BOOL bOn);
BOOL D299_Get22kOnOff(DEMOD_HANDLE handle);
void D299_SetIdle(BOOL bIdle);
BOOL D299_ScanRequest(DEMOD_HANDLE handle, DEMOD_SCAN_REQUEST *pRequest);
void D299_AbortScan(void);
int D299_GetScanProgress(DEMOD_HANDLE handle);

#endif // _0299_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -