Arch GPRS V2 HW Library Created from the Arch GPRS HW DEMO

Dependents:   roam_v2 finalV1 finalV1 finalv2 ... more

Committer:
labishrestha
Date:
Tue Dec 02 07:28:27 2014 +0000
Revision:
0:d3d48514a2aa
Arch GPRS V2 HW library created from Arch GPRS HW Demo

Who changed what in which revision?

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