Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of CNManager by
CNLib.h
00001 #pragma once 00002 00003 #include "MDM.h" 00004 00005 class CNLib : public MDMSerial { 00006 00007 public: 00008 CNLib() : MDMSerial() {}; 00009 00010 /** Power on the modem 00011 */ 00012 int powerOnModem(); 00013 00014 /** Inti the modem 00015 */ 00016 int initModem(); 00017 00018 /** init the sim card 00019 \simpin pin of the sim, NULL if no sim pin is used 00020 */ 00021 int simInit(const char* simpin); 00022 00023 /** Get Sim Status 00024 */ 00025 int getSimInfo(); 00026 00027 /** Get Network status info 00028 */ 00029 int getNetworkInfo(); 00030 00031 /** Set module to auto registration 00032 */ 00033 int setNetAutoReg(); 00034 00035 /** get Internal data context status 00036 */ 00037 int getInternalStatusContext(); 00038 00039 /** Disable internal data Context 00040 */ 00041 int disableInternalContext(); 00042 00043 /** 00044 \return NetStatus 00045 */ 00046 NetStatus* getNet(){return &_net;} 00047 00048 /** 00049 \return DevStatus 00050 */ 00051 DevStatus* getDev(){return &_dev;} 00052 00053 00054 protected: 00055 static int _mcbCPIN(int type, const char* buf, int len, Sim* sim); 00056 };
Generated on Fri Jul 15 2022 21:42:35 by
1.7.2
