📄 tadc.h.svn-base
字号:
/**
* This code and information is part of Trident DPTV API (TDAPI)
*
* Copyright (C) Trident Multimedia Technologies (Shanghai) Co., Ltd.
* 2001 All rights reserved.
*
* This file contains definitions and macros related to M16C/60 ADC.
*
* Revision:
* 06/3/2004 Created by Ivan.
*
*/
#ifndef _TADC_H
#define _TADC_H
#ifdef __cplusplus
extern "C" {
#endif
#if defined(_WIN32)
extern Byte ADCON;
extern Byte ADCDATA;
extern Byte ADC_FINISH_BIT;
extern Byte ADC_START_BIT;
extern Byte ChannelMask[4];
#define ADC_CHANNEL0 0x00
#define ADC_CHANNEL1 0x01
#define ADC_CHANNEL2 0x02
#define ADC_CHANNEL3 0x03
#elif defined(_CPU_4504_)
#define ADC_START_BIT _BIT0_
#define ADC_FINISH_BIT _BIT3_
#define ADC_CHANNEL0 0x00
#define ADC_CHANNEL1 0x10
#define ADC_CHANNEL2 0x20
#define ADC_CHANNEL3 0x30
#define ADCDATA ADDATA
#elif defined(_CPU_552_)
#define ADC_START_BIT _BIT3_
#define ADC_FINISH_BIT _BIT4_
#define ADC_CHANNEL0 0x00
#define ADC_CHANNEL1 0x01
#define ADC_CHANNEL2 0x02
#define ADC_CHANNEL3 0x03
#endif
Byte tdGetADCValue(Byte ucChannel);
#ifdef __cplusplus
};
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -