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

📄 tua6034.h

📁 mstar 776 开发的车载dvd
💻 H
字号:
/*
*******************************************************************************
**
** \file      tua6034.h
** \version   v1.0
** \date      02-12-2004
**
** (C) Copyright 2004 by Philips RF Solutions, Singapore
** All rights reserved.
**
**
** The code in this module may not be distributed or
** disclosed to third parties without written permission
** of the owner.
**
**		ver			date			by		Desc
**		==========================================================================
**		1							LD		Created
*******************************************************************************
*/

#ifndef TUA6034_H
#define TUA6034_H

#ifdef TUA6034_C
#define TUNER_API
#else
#define TUNER_API extern
#endif


/*
**
** EXPORTED DATA + FUNCTIONS FIRST
**
**
**
*/

// Tuner standards
typedef enum {
	OFF_AIR_STD,
	CABLE_STD,
	CABLE_IRC,
	CABLE_HRC
	// add new standards here
} TUN_Standard_t;


// IOCTL Function Codes
enum {
	TUN_GET_TUV1236D_FAT_AGC_DATA = 1,
	TUN_SET_IF_OUTPUT,		
	TUN_SET_CHARGE_PUMP,	
	TUN_SELECT_INPUT,
	TUN_GET_IIC_AD,
	TUN_SET_STANDARD,
	TUN_MAP_FREQ_TO_CHAN,
	TUN_GET_FREQ,
	TUN_SET_MODE,

	TUN_NOT_SUPPORTED //= 255

	// add new function codes here
};

// frequency range, MHz
#define FREQ_MIN 50.0
#define FREQ_MAX 860.0

// channel ranges
#if 1
#define CHAN_MIN_OFF_AIR	2
#define CHAN_MAX_OFF_AIR 	69
#define CHAN_MIN_CABLE		1
#define CHAN_MAX_CABLE 		125
#else
#define CHAN_MIN			2
#define CHAN_MAX_CABLE 		158
#define CHAN_MAX_OFF_AIR 	83
#endif


// Tuner API Error Codes
typedef enum {
	TUN_OK = 0,
	TUN_NOT_FOUND = 1,
	TUN_STANDARD_RANGE_ERROR,
	TUN_CHANNEL_RANGE_ERROR,
	TUN_FREQUENCY_RANGE_ERROR,
	TUN_MEMORY_PB,
	TUN_OTHER_ERROR //= 255
} TUN_Error_t;

/*/ Functions*/

TUNER_API int	TUN_Init(void* Instance, Data8 addrGuess, TUN_Standard_t std );
TUNER_API int	TUN_IOCTL(void* Instance, int functionCode, void *pInputs, void *pOutputs );
TUNER_API int	TUN_GetBytes(void* Instance, Data8* pDataBytes);
TUNER_API int	TUN_SetBytes(void* Instance, Data8* pDataBytes, Data8 DataLength);
TUNER_API int	TUN_ReadStatus(void* Instance, Data8* pstatus_byte);
TUNER_API int	TUN_GetLocked(void* Instance, Bool* Locked);
TUNER_API int	TUN_SetFreq(void* Instance, double dFMHz );
TUNER_API void	TUN_FreeInstances(void);

#undef TUNER_API


#endif // ifndef TUA6034_H

⌨️ 快捷键说明

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