dcf_tuner.c

来自「机顶盒解调芯片DCF8722驱动」· C语言 代码 · 共 55 行

C
55
字号
/****************************************************************************/
/*                   CONEXANT PROPRIETARY AND CONFIDENTIAL                  */
/*                   Conexant Systems Inc. (c) 2007 - 2012                  */
/*                             Shanghai, CHINA                              */
/*                           All Rights Reserved                            */
/****************************************************************************/
/*
 * Filename:      DCF_TUNER.C
 *
 * Description:   The file defines communication approach to DEMOD
 *
 * Author:        Gavin Zhang
 *
 ****************************************************************************/
/* $Header: dcf_tuner.c, 1, 2007-10-8 13:36:53, Yong Huang$
 * $Id: dcf_tuner.c,v 1.0, 2007-10-08 05:36:53Z, Yong Huang$
 ****************************************************************************/
#include "dcf.h"

/*****************************************************************************/
/*  FUNCTION:    DCF_TUNER_install_TUA6020                                   */
/*                                                                           */
/*  PARAMETERS:  pNim - pointer to DCF_NIM struct.                           */
/*                                                                           */
/*  DESCRIPTION: install tua6020 tuner                                       */
/*                                                                           */
/*  RETURNS:     True if successful, False if unsuccessful.                  */
/*                                                                           */
/*  CONTEXT:                                                                 */
/*                                                                           */
/*****************************************************************************/
bool  DCF_TUNER_install_TUA6020(DCF_NIM *pNim)
{
  if (pNim == NULL)  
  {
	return(False);
  }

  /* initialize the various TUNER functions */
  DCF_TUNER_Initialize         = &TUA_TUNER_DRIVER_Initialize;
  DCF_TUNER_SetFrequency       = &TUA_TUNER_DRIVER_SetFrequency;
  DCF_TUNER_SetGainSettings    = 0;
  DCF_TUNER_GetPLLFrequency    = 0;
  DCF_TUNER_GetPLLLockStatus   = &TUA_TUNER_DRIVER_Get_Lock_Status;

  /* set the TUNER type */
  pNim->tuner_type = DCF_TUA6020;
  
  return(True);
}

/*******************************************************************************************************/
/*******************************************************************************************************/
/*******************************************************************************************************/

⌨️ 快捷键说明

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