1*cf3c1e67SAndrew Jeffery /**************************************************************** 2*cf3c1e67SAndrew Jeffery 3*cf3c1e67SAndrew Jeffery ** ** 4*cf3c1e67SAndrew Jeffery 5*cf3c1e67SAndrew Jeffery ** (C)Copyright 2006-2009, American Megatrends Inc. ** 6*cf3c1e67SAndrew Jeffery 7*cf3c1e67SAndrew Jeffery ** ** 8*cf3c1e67SAndrew Jeffery 9*cf3c1e67SAndrew Jeffery ** All Rights Reserved. ** 10*cf3c1e67SAndrew Jeffery 11*cf3c1e67SAndrew Jeffery ** ** 12*cf3c1e67SAndrew Jeffery 13*cf3c1e67SAndrew Jeffery ** 5555 Oakbrook Pkwy Suite 200, Norcross, ** 14*cf3c1e67SAndrew Jeffery 15*cf3c1e67SAndrew Jeffery ** ** 16*cf3c1e67SAndrew Jeffery 17*cf3c1e67SAndrew Jeffery ** Georgia - 30093, USA. Phone-(770)-246-8600. ** 18*cf3c1e67SAndrew Jeffery 19*cf3c1e67SAndrew Jeffery ** ** 20*cf3c1e67SAndrew Jeffery 21*cf3c1e67SAndrew Jeffery ****************************************************************/ 22*cf3c1e67SAndrew Jeffery /*****************************-*- ********-*-********************************/ 23*cf3c1e67SAndrew Jeffery /* Filename: adcifc.h */ 24*cf3c1e67SAndrew Jeffery /* Description: Library interface to adc access */ 25*cf3c1e67SAndrew Jeffery /*****************************************************************************/ 26*cf3c1e67SAndrew Jeffery 27*cf3c1e67SAndrew Jeffery #ifndef ADCIFC_H 28*cf3c1e67SAndrew Jeffery #define ADCIFC_H 29*cf3c1e67SAndrew Jeffery 30*cf3c1e67SAndrew Jeffery #ifdef __cplusplus 31*cf3c1e67SAndrew Jeffery extern "C" { 32*cf3c1e67SAndrew Jeffery #endif 33*cf3c1e67SAndrew Jeffery 34*cf3c1e67SAndrew Jeffery #include "adc.h" 35*cf3c1e67SAndrew Jeffery 36*cf3c1e67SAndrew Jeffery /** \file adcifc.h 37*cf3c1e67SAndrew Jeffery * \brief Public headers for the adc interface library 38*cf3c1e67SAndrew Jeffery * 39*cf3c1e67SAndrew Jeffery * This library contains friendly function call interfaces for getting 40*cf3c1e67SAndrew Jeffery * adc channel data. It hides all the details of playing with 41*cf3c1e67SAndrew Jeffery * adc through the adc manager (opening the device file, calling ioctl, 42*cf3c1e67SAndrew Jeffery * etc.) 43*cf3c1e67SAndrew Jeffery */ 44*cf3c1e67SAndrew Jeffery 45*cf3c1e67SAndrew Jeffery extern int get_adc_val( int channel , unsigned short *data); 46*cf3c1e67SAndrew Jeffery 47*cf3c1e67SAndrew Jeffery #ifdef __cplusplus 48*cf3c1e67SAndrew Jeffery } 49*cf3c1e67SAndrew Jeffery #endif 50*cf3c1e67SAndrew Jeffery 51*cf3c1e67SAndrew Jeffery #endif //ADCIFC_H 52