📄 adi_audioezextender.h
字号:
/*********************************************************************************
Copyright(c) 2005 Analog Devices, Inc. All Rights Reserved.
This software is proprietary and confidential. By using this software you agree
to the terms of the associated Analog Devices License Agreement.
*********************************************************************************/
#ifndef __ADI_AUDIOEZEXTENDER_H__
#define __ADI_AUDIOEZEXTENDER_H__
/*********************************************************************
Include files
*********************************************************************/
// currently ADAV801 driver is not available
#define ADAV801_SUPPORT 0
/*********************************************************************
Symbolic constants
*********************************************************************/
// sets target device driver, with which adi_dev_Read/adi_dev_Write functions work
typedef enum { ADI_AD1938, ADI_ADAV801 } AUDIOEZEXTENDER_CODEC_SELECTION;
/*********************************************************************
Extensible enumerations for command IDs
*********************************************************************/
enum {
// starts at larger value than dependent driver commands to avoid conflict
ADI_AUDIOEZEXTENDER_CMD_START=(ADI_DEV_CMD_PDD_START + 0x1000),
ADI_AUDIOEZEXTENDER_CMD_SET_OPERATION_MODE,
ADI_AUDIOEZEXTENDER_CMD_SET_ANALOG_OPERATION_MODE,
ADI_AUDIOEZEXTENDER_CMD_SET_DIGITAL_OPERATION_MODE,
ADI_AUDIOEZEXTENDER_CMD_DEVICE_SELECT,
};
/*********************************************************************
Extensible enumerations for return code
*********************************************************************/
enum {
ADI_AUDIOEZEXTENDER_RESULT_START=ADI_DEV_RESULT_PDD_START, // insure this order remains
ADI_AUDIOEZEXTENDER_RESULT_OPERATION_MODE_NOT_SET,
ADI_AUDIOEZEXTENDER_RESULT_OPERATION_MODE_NOT_SUPPORTED,
ADI_AUDIOEZEXTENDER_RESULT_BAD_DEVICE_NUMBER, //not valid device number(expect 0-1)
ADI_AUDIOEZEXTENDER_RESULT_BAD_VALUE, //bad value passed in
};
/*********************************************************************
Data Structures
*********************************************************************/
// entry point
extern ADI_DEV_PDD_ENTRY_POINT ADIAudioEZExtenderEntryPoint;
#endif //__ADI_AUDIOEZEXTENDER_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -