Implementation of 3G USB Modem Huawei E372
Diff: PyrnUSBModem.h
- Revision:
- 0:67daedd6f74f
- Child:
- 1:fbf17fb09581
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PyrnUSBModem.h Fri Feb 20 16:48:12 2015 +0000 @@ -0,0 +1,24 @@ + +#ifndef PYRN_USB_MODEM_H +#define PYRN_USB_MODEM_H + +#include "mbed.h" +#include "USBHost/USBHost3GModule/WANDongle.h" +#include "USBSerialStream.h" +#include "ATCommandsInterface.h" + +class PyrnUSBModem { +private: + WANDongle dongle; + USBSerialStream atStream; + ATCommandsInterface at; + bool atOpen; +public: + PyrnUSBModem(USBHost *h); + bool init(); + bool isConnected(void); + void testAT(void); + WANDongleSerialPort *getAtInterface(int i); +}; + +#endif \ No newline at end of file