?? upsd_adc.h
字號:
/*--------------------------------------------------------------------------
uPSD_ADC.H
Header file for uPSD 3200 ADC Device Driver
06/2002 Ver 0.1 - Initial Version
Copyright (c) 2002 ST Microelectronics
This example demo code is provided as is and has no warranty,
implied or otherwise. You are free to use/modify any of the provided
code at your own risk in your applications with the expressed limitation
of liability (see below) so long as your product using the code contains
at least one uPSD products (device).
LIMITATION OF LIABILITY: NEITHER STMicroelectronics NOR ITS VENDORS OR
AGENTS SHALL BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF USE, LOSS OF DATA,
INTERRUPTION OF BUSINESS, NOR FOR INDIRECT, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES OF ANY KIND WHETHER UNDER THIS AGREEMENT OR
OTHERWISE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
--------------------------------------------------------------------------*/
#ifndef _UPSD_ADC_H_
#define _UPSD_ADC_H_
// uPSD_ADC_Init(Channel) - Initialize uPSD ADC IP block and enable channel
// Channel is a value from 0 to 3 for the ADC channel to enable
// Must be called for each ADC Channel to enable
void uPSD_ADC_Init(unsigned char channel);
// uPSD_ADC_Read(Channel) - Reads the specified channel and returns value
// Channel is a value from 0 to 3
// ADC conversion time is approx 10us
// Note: uPSD_ADC_Init must be called first
unsigned char uPSD_ADC_Read(unsigned char channel);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -