amq amq / CNManager

Fork of CNManager by u-blox

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers CNReg.h Source File

CNReg.h

00001 #pragma once 
00002 
00003 #include "CNManager.h"
00004 #include "CNUtil.h"
00005 
00006 //! Registration Status
00007 typedef enum{
00008     REG_NO_CHANGES = 0,       //!< No changes
00009     REG_NOT_REGISTERED = 1,   //!< Not registered
00010     REG_REGISTERED = 2,       //!< Registered
00011 } RegStatus;
00012 
00013 /** Reg Init 
00014   This function has to be called prior to cnRegLoop
00015  */
00016 void cnRegInit();
00017 
00018 /** Loop registration module
00019   \param lib pointer to CN library
00020   \param regStatus [output] registration status
00021  */
00022 CNResp cnRegLoop(CNLib* lib, RegStatus* status);
00023 
00024 /** Reset
00025  */
00026 void cnRegReset();
00027 
00028 /** Set if Roaming is allowed
00029   \param enabled if true rooming is allowed, false it is not
00030  */
00031 void cnRegSetRoaming(bool enabled);