Dependencies:   ChaNFSSD mbed BMP085 SHT2x

AD7994.h

Committer:
tosihisa
Date:
2012-01-13
Revision:
1:83960ee4d9a2
Parent:
0:6089ae824f06

File content as of revision 1:83960ee4d9a2:

/*
 * Copyright (c) 2011 Toshihisa T
 * Released under the MIT License: http://mbed.org/license/mit
 */

#ifndef __AD7994_H  /* } */

#include "mbed.h"

class AD7994 : public Base {

public:
    AD7994(PinName p_sda, PinName p_scl);
    void Start();
    unsigned short getVal();
    void update();
    unsigned short readChn(int chnNo);

protected:
    I2C i2c;
    unsigned short ch_val[4];
};

#endif  /* } */