Dependencies:   ChaNFSSD mbed BMP085 SHT2x

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers AD7994.h Source File

AD7994.h

00001 /*
00002  * Copyright (c) 2011 Toshihisa T
00003  * Released under the MIT License: http://mbed.org/license/mit
00004  */
00005 
00006 #ifndef __AD7994_H  /* } */
00007 
00008 #include "mbed.h"
00009 
00010 class AD7994 : public Base {
00011 
00012 public:
00013     AD7994(PinName p_sda, PinName p_scl);
00014     void Start();
00015     unsigned short getVal();
00016     void update();
00017     unsigned short readChn(int chnNo);
00018 
00019 protected:
00020     I2C i2c;
00021     unsigned short ch_val[4];
00022 };
00023 
00024 #endif  /* } */