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
CNReg.h@2:df290d9a76d4, 2016-11-13 (annotated)
- Committer:
- amq
- Date:
- Sun Nov 13 00:04:01 2016 +0000
- Revision:
- 2:df290d9a76d4
- Parent:
- 1:29ad1d1ac1f9
strlen
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); |