Connection Manager library for u-blox cellular modules. It manages the modem for keeping data connection always active.

Dependents:   C027_demo_ConnMan

Committer:
msinig
Date:
Tue Jan 12 09:08:15 2016 +0000
Revision:
0:86284a262735
Child:
1:29ad1d1ac1f9
first drop

Who changed what in which revision?

UserRevisionLine numberNew contents of line
msinig 0:86284a262735 1 #pragma once
msinig 0:86284a262735 2
msinig 0:86284a262735 3 #include "CNManager.h"
msinig 0:86284a262735 4 #include "CNUtil.h"
msinig 0:86284a262735 5
msinig 0:86284a262735 6 //! Registration Status
msinig 0:86284a262735 7 typedef enum{
msinig 0:86284a262735 8 REG_NOT_REGISTERED = 0, //!< Not registered
msinig 0:86284a262735 9 REG_REGISTERED = 1, //!< Registered
msinig 0:86284a262735 10 } RegStatus;
msinig 0:86284a262735 11
msinig 0:86284a262735 12 /** Reg Init
msinig 0:86284a262735 13 This function has to be called prior to cnRegLoop
msinig 0:86284a262735 14 */
msinig 0:86284a262735 15 void cnRegInit();
msinig 0:86284a262735 16
msinig 0:86284a262735 17 /** Loop registration module
msinig 0:86284a262735 18 \param lib pointer to CN library
msinig 0:86284a262735 19 \param regStatus [output] registration status
msinig 0:86284a262735 20 */
msinig 0:86284a262735 21 CNResp cnRegLoop(CNLib* lib, RegStatus* status);
msinig 0:86284a262735 22
msinig 0:86284a262735 23 /** Reset
msinig 0:86284a262735 24 */
msinig 0:86284a262735 25 void cnRegReset();
msinig 0:86284a262735 26
msinig 0:86284a262735 27 /** Set if Roaming is allowed
msinig 0:86284a262735 28 \param enabled if true rooming is allowed, false it is not
msinig 0:86284a262735 29 */
msinig 0:86284a262735 30 void cnRegSetRoaming(bool enabled);