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

📄 ak4642api.h

📁 三星2440上的SIM300协议解析
💻 H
字号:
/***************************************************************************
 * @Filename				-		filename.h
 * 
 * Copyright Company Year. All rights reserved.
 * 
 * @Brief:
 * Demonstrates the board's part interface on the CPU-NAME BOARDS-NAME.
 * 
 * 
 * @Revision: 1.1.1.1 $
 * @Date: 2000/05/11 11:50:35 $
 * @Author: edwin $
 * @Project: 
 *
 *
 * @Revision History:
 * @Log: $
 * 
***************************************************************************/
/***************************************************************************
 * Copyright Company Limited 1999 - 2000.  All rights reserved.
 ***************************************************************************/
#ifndef _AAK4642API_H_
#define _AAK4642API_H_

#if defined (__cplusplus)
extern "C" {
#endif

/***********************************************************************
 * Library header files (#include)
 **********************************************************************/
#ifdef MIDWARE_EXPORTS
#include "commresource.h"
#endif
/***********************************************************************
 * User header files (#include)
 **********************************************************************/

/***********************************************************************
 * Constant definitions (#define)
 **********************************************************************/

/***********************************************************************
 * Macro definitions (#define)
 **********************************************************************/

typedef unsigned long DWORD; 
typedef unsigned int UINT;
/***********************************************************************
 * Enumerated type definitions using the enum keyword.  
 **********************************************************************/

/***********************************************************************
 * Structure definitions and typedef's which will be used as members of
 * subsequent definitions.  
 **********************************************************************/

/***********************************************************************
 * Structure definitions with concurrent type definitions.
 **********************************************************************/
#define SPEAKER (2)
#define HEADPHONE (1)

#define BKLITE_FREQ    (1*1000)
//#define LEVEL1_VAL   0x40
//#define LEVEL2_VAL	 0x37
//#define LEVEL3_VAL	 0x2f
//#define LEVEL4_VAL   0x1c
//#define LEVEL5_VAL   0x01
#define LEVEL1_VAL   0x40//0x40
#define LEVEL2_VAL	 0x15//0x37
#define LEVEL3_VAL	 0x0C//0x1c
#define LEVEL4_VAL   0x06//0x1c
#define LEVEL5_VAL   0x02//0x10

#define VOL0  0x02
#define VOL1  0x81
#define VOL2  0x8c
#define VOL3  0x91
#define VOL4  0xa5
#define VOL5  0xb9

/***********************************************************************
 * Type definitions (typedef)
 **********************************************************************/
#ifdef _WIN32_WCE
#define usleep(n) Sleep(n)
#else
#define usleep(n) \
		{ \
			int i; \
			for(i=0;i<n*20000;i++) ;; \
		}
#endif
/***********************************************************************
 * Global data references (extern)
 **********************************************************************/
#ifdef MIDWARE_EXPORTS
#define MIDWARE_API __declspec(dllexport)
#else
#define MIDWARE_API //__declspec(dllimport)
#endif

/***********************************************************************
 * Global function prototypes.  
 **********************************************************************/
MIDWARE_API void ak4642_init(int nchannel);
MIDWARE_API void ak4642_softmute(int bmute);
MIDWARE_API void ak4642_deinit(int nchannel);
MIDWARE_API int ak4642_vol(int nvol);
MIDWARE_API int crypt_getstr(char* pcryptstr);
MIDWARE_API void ak4642_switch(int nchannel);

MIDWARE_API int bklite_ctrl(DWORD device,DWORD nlight);

#define POWERUP (1)
#define POWEROFF (0)

////////////////////////////////////////////////////////////////////////////////////////
// 
//  Function:		ns73_power(int npwr)
//  Parameter: 	npwr--POWERON or POWEROFF
//  Return value: 	1:fail,0:success
//  Brief:		ns73 power on or off 
unsigned char ns73_power(int npwr);

////////////////////////////////////////////////////////////////////////////////////////
// 
//  Function:		ns73_init ()
//  Parameter: 	
//  Return value: 
//  Brief:		ns73 initialization and set default frequency 88.5M 
void ns73_init ();

////////////////////////////////////////////////////////////////////////////////////////
// 
//  Function:		FreqSet ()
//  Parameter: 	frequency--set frequency,if you want set to 88.5M,frequency = 88500
//  Return value: 
//  Brief:		ns73 frequency set
void FreqSet(UINT frequency);


/***********************************************************************
 * Inline function declarations.  
 **********************************************************************/

void ak4642_linein_enable();
void ak4642_linein2_enable();
void ak4642_linein_disable();

UINT ioc_bt_reset();

#if defined (__cplusplus)
}
#endif

#endif /* _AAK4642API_H_ */ 

⌨️ 快捷键说明

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