Connection Manager library for u-blox cellular modules. It manages the modem for keeping data connection always active.
CNReg.h@1:29ad1d1ac1f9, 2016-01-21 (annotated)
- Committer:
- msinig
- Date:
- Thu Jan 21 14:00:25 2016 +0000
- Revision:
- 1:29ad1d1ac1f9
- Parent:
- 0:86284a262735
fix bugs
Who changed what in which revision?
User | Revision | Line number | New 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 | 1:29ad1d1ac1f9 | 8 | REG_NO_CHANGES = 0, //!< No changes |
msinig | 1:29ad1d1ac1f9 | 9 | REG_NOT_REGISTERED = 1, //!< Not registered |
msinig | 1:29ad1d1ac1f9 | 10 | REG_REGISTERED = 2, //!< Registered |
msinig | 0:86284a262735 | 11 | } RegStatus; |
msinig | 0:86284a262735 | 12 | |
msinig | 0:86284a262735 | 13 | /** Reg Init |
msinig | 0:86284a262735 | 14 | This function has to be called prior to cnRegLoop |
msinig | 0:86284a262735 | 15 | */ |
msinig | 0:86284a262735 | 16 | void cnRegInit(); |
msinig | 0:86284a262735 | 17 | |
msinig | 0:86284a262735 | 18 | /** Loop registration module |
msinig | 0:86284a262735 | 19 | \param lib pointer to CN library |
msinig | 0:86284a262735 | 20 | \param regStatus [output] registration status |
msinig | 0:86284a262735 | 21 | */ |
msinig | 0:86284a262735 | 22 | CNResp cnRegLoop(CNLib* lib, RegStatus* status); |
msinig | 0:86284a262735 | 23 | |
msinig | 0:86284a262735 | 24 | /** Reset |
msinig | 0:86284a262735 | 25 | */ |
msinig | 0:86284a262735 | 26 | void cnRegReset(); |
msinig | 0:86284a262735 | 27 | |
msinig | 0:86284a262735 | 28 | /** Set if Roaming is allowed |
msinig | 0:86284a262735 | 29 | \param enabled if true rooming is allowed, false it is not |
msinig | 0:86284a262735 | 30 | */ |
msinig | 0:86284a262735 | 31 | void cnRegSetRoaming(bool enabled); |