Vodafone K3770/K3772-Z modems driver & networking library
Dependencies: Socket USBHostWANDongle lwip-sys lwip
Dependents: VodafoneUSBModemHTTPClientTest VodafoneUSBModemNTPClientTest VodafoneUSBModemSMSTest VodafoneUSBModemUSSDTest ... more
Fork of VodafoneUSBModem_bleedingedge by
This is the driver for the Vodafone K3700 & K3772-Z Dongles:
More details and instructions can be found here.
Diff: VodafoneK3770.h
- Revision:
- 12:66dc2c8eba2d
- Parent:
- 8:04b6a042595f
--- a/VodafoneK3770.h Wed Jul 11 12:47:53 2012 +0000 +++ b/VodafoneK3770.h Wed Jul 11 21:25:03 2012 +0000 @@ -32,6 +32,7 @@ #include "ip/PPPIPInterface.h" #include "sms/SMSInterface.h" #include "ussd/USSDInterface.h" +#include "link/LinkMonitor.h" /** Vodafone K3770 dongle */ @@ -85,6 +86,14 @@ @return 0 on success, error code on failure */ int sendUSSD(const char* command, char* result, size_t maxLength); + + /** Get link state + @param pRssi pointer to store the current RSSI in dBm, between -51 dBm and -113 dBm if known; -51 dBm means -51 dBm or more; -113 dBm means -113 dBm or less; 0 if unknown + @param pRegistrationState pointer to store the current registration state + @param pBearer pointer to store the current bearer + @return 0 on success, error code on failure + */ + int getLinkState(int* pRssi, LinkMonitor::REGISTRATION_STATE* pRegistrationState, LinkMonitor::BEARER* pBearer); /** Get the ATCommandsInterface instance @return Pointer to the ATCommandsInterface instance @@ -104,6 +113,7 @@ SMSInterface m_sms; USSDInterface m_ussd; + LinkMonitor m_linkMonitor; PPPIPInterface m_ppp; @@ -111,6 +121,7 @@ bool m_ipInit; bool m_smsInit; bool m_ussdInit; + bool m_linkMonitorInit; bool m_atOpen; };