Dependencies:   ChaNFSSD mbed BMP085 SHT2x

AD7994.h

Committer:
tosihisa
Date:
2012-02-27
Revision:
9:9ca3db7ed7cb
Parent:
1:83960ee4d9a2

File content as of revision 9:9ca3db7ed7cb:

/*
 * 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  /* } */