#ifndef __ADS_1115_H__
#define __ADS_1115_H__
#include "msystem.h"

typedef struct ads_1115
{
    const char* name;
    FILE* fp_ADC0;
    FILE* fp_SCALE0;

    FILE* fp_ADC1;
    FILE* fp_SCALE1;

    FILE* fp_ADC2;
    FILE* fp_SCALE2;

    FILE* fp_ADC3;
    FILE* fp_SCALE3;
}ads_1115_t;

int bsp_ads1115_init(ads_1115_t* dev, const char* name);
void bsp_ads1115_exit(ads_1115_t* dev);
float bsp_ads1115_getVoltage0(ads_1115_t* dev);
float bsp_ads1115_getVoltage1(ads_1115_t* dev);
float bsp_ads1115_getVoltage2(ads_1115_t* dev);
float bsp_ads1115_getVoltage3(ads_1115_t* dev);
#endif//__ADS_1115_H__
