Arch GPRS V2 HW Library Created from the Arch GPRS HW DEMO
Dependents: roam_v2 finalV1 finalV1 finalv2 ... more
ARCH_GPRS_V2_HW.h
- Committer:
- labishrestha
- Date:
- 2014-12-02
- Revision:
- 0:d3d48514a2aa
File content as of revision 0:d3d48514a2aa:
/* IOT_hw.h 2013 Copyright (c) Seeed Technology Inc. All right reserved. Author:Loovee 2013-7-21 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef __ARCH_GPRS_V2_HW_H__ #define __ARCH_GPRS_V2_HW_H__ #include "ARCH_GPRS_V2_HW_DFS.h" class IOT_HW{ private: public: int init(); // init all void init_io(); // init io void SIM900_PWRON(); // power on sim900 void SIM900_PWROFF(); // power off sim900, cut the power void SIM900_ON(); // turn on sim900 void SIM900_OFF(); // turn off sim900 void SIM900StateLed(unsigned char state); // control led void sendCommand(char * number); void hangup(); int readChrgState(); float readBatVol(); void userLed(unsigned char led, unsigned char state); void grovePwrOn(); void grovePwrOff(); }; extern IOT_HW iot_hw; #endif /********************************************************************************************************* END FILE *********************************************************************************************************/