seeedstudio ARCH GPRS Demo. post data to yeelink.

Dependencies:   mbed

Committer:
loovee
Date:
Fri Aug 23 02:31:06 2013 +0000
Revision:
0:6d297fe482af
seeedstudio Arch Gprs Demo. ; ; post data to yeelink.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
loovee 0:6d297fe482af 1 /*
loovee 0:6d297fe482af 2 IOT_hw.h
loovee 0:6d297fe482af 3 2013 Copyright (c) Seeed Technology Inc. All right reserved.
loovee 0:6d297fe482af 4
loovee 0:6d297fe482af 5 Author:Loovee
loovee 0:6d297fe482af 6 2013-7-21
loovee 0:6d297fe482af 7
loovee 0:6d297fe482af 8 This library is free software; you can redistribute it and/or
loovee 0:6d297fe482af 9 modify it under the terms of the GNU Lesser General Public
loovee 0:6d297fe482af 10 License as published by the Free Software Foundation; either
loovee 0:6d297fe482af 11 version 2.1 of the License, or (at your option) any later version.
loovee 0:6d297fe482af 12
loovee 0:6d297fe482af 13 This library is distributed in the hope that it will be useful,
loovee 0:6d297fe482af 14 but WITHOUT ANY WARRANTY; without even the implied warranty of
loovee 0:6d297fe482af 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
loovee 0:6d297fe482af 16 Lesser General Public License for more details.
loovee 0:6d297fe482af 17
loovee 0:6d297fe482af 18 You should have received a copy of the GNU Lesser General Public
loovee 0:6d297fe482af 19 License along with this library; if not, write to the Free Software
loovee 0:6d297fe482af 20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
loovee 0:6d297fe482af 21 */
loovee 0:6d297fe482af 22
loovee 0:6d297fe482af 23 #ifndef __ARCH_GPRS_HW_H__
loovee 0:6d297fe482af 24 #define __ARCH_GPRS_HW_H__
loovee 0:6d297fe482af 25
loovee 0:6d297fe482af 26 #include "ARCH_GPRS_HW_DFS.h"
loovee 0:6d297fe482af 27
loovee 0:6d297fe482af 28 class IOT_HW{
loovee 0:6d297fe482af 29
loovee 0:6d297fe482af 30 private:
loovee 0:6d297fe482af 31
loovee 0:6d297fe482af 32 public:
loovee 0:6d297fe482af 33 int init(); // init all
loovee 0:6d297fe482af 34 void init_io(); // init io
loovee 0:6d297fe482af 35 void EG10_PWRON(); // power on eg10
loovee 0:6d297fe482af 36 void EG10_PWROFF(); // power off eg10, cut the power
loovee 0:6d297fe482af 37 void EG10_ON(); // turn on eg10
loovee 0:6d297fe482af 38 void EG10_OFF(); // turn off eg10
loovee 0:6d297fe482af 39 int getEG10_State(); // get state of eg10
loovee 0:6d297fe482af 40 void EG10StateLed(unsigned char state); // control led
loovee 0:6d297fe482af 41
loovee 0:6d297fe482af 42 int readChrgState();
loovee 0:6d297fe482af 43 float readBatVol();
loovee 0:6d297fe482af 44 void userLed(unsigned char led, unsigned char state);
loovee 0:6d297fe482af 45 void grovePwrOn();
loovee 0:6d297fe482af 46 void grovePwrOff();
loovee 0:6d297fe482af 47 };
loovee 0:6d297fe482af 48
loovee 0:6d297fe482af 49 extern IOT_HW iot_hw;
loovee 0:6d297fe482af 50
loovee 0:6d297fe482af 51 #endif
loovee 0:6d297fe482af 52
loovee 0:6d297fe482af 53 /*********************************************************************************************************
loovee 0:6d297fe482af 54 END FILE
loovee 0:6d297fe482af 55 *********************************************************************************************************/