#ifndef drvAdcPi_h
#define drvAdcPi_h
#include <epicsTypes.h>
#include <devLib.h>
#define ADC_PI_MAX_CHANNEL 8
#define MAX_CODE_12BIT 8191
/** @brief Initialize the card
*
* Initialize the card(called from startup script)
*/
int adcPiConfigure (int cardnumber, unsigned int i2cAddress);
/** @brief card handle
*
* Define a type for the card handle
*/
typedef struct adcPiCard adcPiCard;
/** @brief open card
*
* Get card handle for card number
*/
adcPiCard* adcPiOpen (int cardnumber);
/** @brief get values
*
* Read values from channels
*/
int adcPiGet (adcPiCard* card, int signal, epicsUInt16* pvalue);
#endif