endpoint C207 radio support

Dependents:   mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular

Committer:
ansond
Date:
Mon Jun 30 22:17:48 2014 +0000
Revision:
16:19f597d8048f
Parent:
9:c5db2b63ed05
Child:
20:9572d860cb54
updates for ublox cellular modem enablement

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ansond 1:76d2da9e2b84 1 /* Copyright C2013 Doug Anson, MIT License
ansond 1:76d2da9e2b84 2 *
ansond 1:76d2da9e2b84 3 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
ansond 1:76d2da9e2b84 4 * and associated documentation files the "Software", to deal in the Software without restriction,
ansond 1:76d2da9e2b84 5 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
ansond 1:76d2da9e2b84 6 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
ansond 1:76d2da9e2b84 7 * furnished to do so, subject to the following conditions:
ansond 1:76d2da9e2b84 8 *
ansond 1:76d2da9e2b84 9 * The above copyright notice and this permission notice shall be included in all copies or
ansond 1:76d2da9e2b84 10 * substantial portions of the Software.
ansond 1:76d2da9e2b84 11 *
ansond 1:76d2da9e2b84 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
ansond 1:76d2da9e2b84 13 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
ansond 1:76d2da9e2b84 14 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
ansond 1:76d2da9e2b84 15 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
ansond 1:76d2da9e2b84 16 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ansond 1:76d2da9e2b84 17 */
ansond 1:76d2da9e2b84 18
ansond 3:6acc6c8143b7 19 #ifndef _MBED_UBLOX_CELL_RADIO_H_
ansond 3:6acc6c8143b7 20 #define _MBED_UBLOX_CELL_RADIO_H_
ansond 4:0cc421d46a2b 21
ansond 2:a28f19f39f2b 22 #include "mbed.h"
ansond 16:19f597d8048f 23 #include "MDM.h"
ansond 16:19f597d8048f 24
ansond 16:19f597d8048f 25 // SIM settings
ansond 16:19f597d8048f 26 #define SIMPIN NULL
ansond 16:19f597d8048f 27 #define APN "phone"
ansond 16:19f597d8048f 28 #define USERNAME NULL
ansond 16:19f597d8048f 29 #define PASSWORD NULL
ansond 16:19f597d8048f 30
ansond 5:a8fd1fa0f0d0 31 // BaseClass support
ansond 5:a8fd1fa0f0d0 32 #include "BaseClass.h"
ansond 2:a28f19f39f2b 33
ansond 5:a8fd1fa0f0d0 34 class MBEDUbloxCellRadio : public BaseClass {
ansond 1:76d2da9e2b84 35 private:
ansond 16:19f597d8048f 36 MDMSerial *m_modem;
ansond 16:19f597d8048f 37 bool m_connected;
ansond 1:76d2da9e2b84 38
ansond 1:76d2da9e2b84 39 public:
ansond 16:19f597d8048f 40 MBEDUbloxCellRadio(ErrorHandler *error_handler,void *endpoint,void *modem);
ansond 5:a8fd1fa0f0d0 41 virtual ~MBEDUbloxCellRadio();
ansond 1:76d2da9e2b84 42
ansond 1:76d2da9e2b84 43 bool connect();
ansond 5:a8fd1fa0f0d0 44 bool disconnect();
ansond 5:a8fd1fa0f0d0 45 };
ansond 1:76d2da9e2b84 46
ansond 3:6acc6c8143b7 47 #endif // _MBED_UBLOX_CELL_RADIO_H_
ansond 1:76d2da9e2b84 48
ansond 1:76d2da9e2b84 49