phantom_prototypes.h

来自「QPSK Tuner details, for conexant chipset」· C头文件 代码 · 共 153 行

H
153
字号
#ifndef PHANTOM_PROTOTYPES_H_DEFINED
#define PHANTOM_PROTOTYPES_H_DEFINED

/* phantom_prototypes.h */
/*+++ *******************************************************************\
*
*  Abstract:
*
*       Contains non-API prototypes.
*
*  Created: 3/30/2004
*
*  Author: Amarnath Puttur
*
*  Copyright and Disclaimer: 
*  
*     --------------------------------------------------------------- 
*     This software is provided "AS IS" without warranty of any kind, 
*     either expressed or implied, including but not limited to the 
*     implied warranties of noninfringement, merchantability and/or 
*     fitness for a particular purpose.
*     --------------------------------------------------------------- 
*   
*     Copyright (c) 2004 Conexant Systems, Inc. 
*     All rights reserved. 
*
\******************************************************************* ---*/

/*******************************************************************************************************/
/* Include Phantom internal                                                                            */
/*******************************************************************************************************/
#include "phantom_cmd.h"                /* Phantom register header file */

#ifdef __cplusplus
extern "C" {
#endif  /* __cplusplus */

/*******************************************************************************************************
 * Command Interface prototypes
 *******************************************************************************************************/
/* Register Functions */
BOOL PHANTOM_RegisterWrite(PHANTOM_NIM* p_nim, unsigned short reg_field_index, unsigned long value, PHANTOM_SB_USE_HANDLE use_handle);
BOOL PHANTOM_RegisterRead(PHANTOM_NIM* p_nim, unsigned short reg_field_index, unsigned long* p_value, PHANTOM_SB_USE_HANDLE use_handle);

/* Low-level DPR Functions */
BOOL PHANTOM_ExecuteLLF(PHANTOM_NIM* p_nim, PHANTOM_LLF* p_llf);

/* Essential Setting Functions */
BOOL 
PHANTOM_LLF_ChangeChannel(PHANTOM_NIM*   p_nim,
                          unsigned long  tuner_frequency,
                          unsigned short nominal_symbol_rate,
	  	                  unsigned char  select_bin_mode, 
                          unsigned char  spectral_inversion,
                          unsigned char  modcode,
                          unsigned char  pilot,
                          unsigned short frequency_search_range,
				          unsigned short nominal_central_frequency,
                          unsigned char  roll_off_factor,
                          unsigned char  viterbi_code_rate,
                          unsigned char  vco_divider,
                          unsigned long  vco_clk_by_main_div);

BOOL
PHANTOM_LLF_MPEGConfig(PHANTOM_NIM*  p_nim,
                       unsigned char basic_settings,
                       unsigned char mpeg_control_signal,
                       unsigned char data_output,
                       unsigned char clock_configuration,
                       unsigned char tstate_config);

BOOL 
PHANTOM_LLF_SetMN(PHANTOM_NIM*   p_nim, 
                  unsigned char  extra_clocks, 
                  unsigned long  pll_m, 
                  unsigned long  pll_n, 
                  unsigned short pll_mn_ratio);

BOOL 
PHANTOM_LLF_GetMN(PHANTOM_NIM* p_nim, unsigned long* p_m, unsigned long* p_n);

BOOL PHANTOM_LLF_SetVCOFrequency(PHANTOM_NIM*   p_nim, 
                                 unsigned long  vco_frequency,
						         unsigned short inverse_vco_frequency,
                                 unsigned short crystal_freq);

BOOL PHANTOM_LLF_TunerInit(PHANTOM_NIM*  p_nim, 
                           unsigned char tuner_selection, 
                           unsigned char tuner_ref_clkout_div);

BOOL PHANTOM_LLF_TunerBandwidthAdjust(PHANTOM_NIM* p_nim, PHANTOM_TUNERBW_CONTROL command);

/*  LNB Functions */
BOOL
PHANTOM_LLF_LNBConfig(PHANTOM_NIM*  p_nim,
                      unsigned char reply_expiration_window,
                      unsigned char lnb_tone_amplitude,
                      unsigned char lnb_tone_frequency,
			          unsigned char lnb_tone_detection_thresh,
			          unsigned char lnb_tone_burst_enable,
                      unsigned char lnb_mode); 

BOOL 
PHANTOM_LLF_LNBPCBConfig(PHANTOM_NIM*          p_nim, 
                 unsigned char dc_polarity,
                 unsigned char open_drain,
                 unsigned char tone);

#if PHANTOM_INCLUDE_DISEQC2
BOOL 
PHANTOM_LLF_LNBSend(PHANTOM_NIM*  p_nim,
                    unsigned char burst_tone,
                    unsigned char reply_mode,
                    unsigned char not_the_last_message,
			        unsigned char long_message,
                    unsigned char message_length,
                    unsigned char lnb_message1,
                    unsigned char lnb_message2,
                    unsigned char lnb_message3,
                    unsigned char lnb_message4,
                    unsigned char lnb_message5,
                    unsigned char lnb_message6);

BOOL 
PHANTOM_LLF_LNBSendToneBurst(PHANTOM_NIM* p_nim, unsigned char burst_mode);

#endif /* PHANTOM_INCLUDE_DISEQC2 */

BOOL PHANTOM_LLF_LNBDCLevel(PHANTOM_NIM* p_nim, unsigned char dc_level);

/* Interrupts */
BOOL PHANTOM_LLF_InterruptControl(PHANTOM_NIM* p_nim, unsigned char enable_clear, unsigned char interropts);

/*  Utility functions */
BOOL PHANTOM_SetSleepMode(PHANTOM_NIM* p_nim, BOOL sleep_mode);

BOOL PHANTOM_LLF_UpdateFirmwareVersion(PHANTOM_NIM* p_nim, unsigned char version_type);

BOOL PHANTOM_LLF_SetGPIODirection(PHANTOM_NIM* p_nim, unsigned char gpio_direction, unsigned char gpio_direction_mask);
BOOL PHANTOM_LLF_SetGPIOOut(PHANTOM_NIM* p_nim, unsigned char GPOs, unsigned char GPO_mask);
BOOL PHANTOM_LLF_GPIOEnable (PHANTOM_NIM* p_nim, unsigned char GPIO_enable, unsigned char GPIO_mask);

/*  High level LLF access functions - Internal parameters */
BOOL PHANTOM_LLF_DisableCorrection(PHANTOM_NIM* p_nim, unsigned char rs_or_bch_err_corr);

BOOL PHANTOM_LLF_GetFSMSequence(PHANTOM_NIM* p_nim, PHANTOM_LLF* p_llf, unsigned char command1, unsigned char command2);

#ifdef __cplusplus
}
#endif

#endif  /* #ifndef PHANTOM_PROTOTYPES_H_DEFINED */

⌨️ 快捷键说明

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