📄 drvsar.h
字号:
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2006-2007 MStar Semiconductor, Inc.
// All rights reserved.
//
// Unless otherwise stipulated in writing, any and all information contained
// herein regardless in any format shall remain the sole proprietary of
// MStar Semiconductor Inc. and be kept in strict confidence
// (¨MStar Confidential Information〃) by the recipient.
// Any unauthorized act including without limitation unauthorized disclosure,
// copying, use, reproduction, sale, distribution, modification, disassembling,
// reverse engineering and compiling of the contents of MStar Confidential
// Information is unlawful and strictly prohibited. MStar hereby reserves the
// rights to any and all damages, losses, costs and expenses resulting therefrom.
//
///////////////////////////////////////////////////////////////////////////////
#ifndef _SAR_H_
#define _SAR_H_
#ifdef DRVSAR_C
#define INTERFACE
#else
#define INTERFACE extern
#endif
enum SAR_ADC_CHANNEL
{
SAR_ADC_CHANNEL_1 = 0,
SAR_ADC_CHANNEL_2,
SAR_ADC_CHANNEL_3,
SAR_ADC_CHANNEL_4,
SAR_ADC_CHANNEL_5,
};
#define RESOLUTION_IT_8BIT 0
#define RESOLUTION_IT_10BIT 1
#define SAR_REOLUTION_SEL RESOLUTION_IT_10BIT
INTERFACE void drvInitialSAR(void);
INTERFACE BOOLEAN drvSAR_Get_ADC_Channel(BYTE Channel, WORD *pvalue);
#undef INTERFACE
#endif // _CPU_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -