#include "legato.h"
Go to the source code of this file.
Typedefs | |
typedef struct le_cellnet_RequestObj * | le_cellnet_RequestObjRef_t |
typedef struct le_cellnet_StateEventHandler * | le_cellnet_StateEventHandlerRef_t |
typedef void(* | le_cellnet_StateHandlerFunc_t) (le_cellnet_State_t state, void *contextPtr) |
Enumerations | |
enum | le_cellnet_State_t { LE_CELLNET_RADIO_OFF, LE_CELLNET_REG_EMERGENCY, LE_CELLNET_REG_HOME, LE_CELLNET_REG_ROAMING, LE_CELLNET_REG_UNKNOWN } |
Functions | |
void | le_cellnet_ConnectService (void) |
void | le_cellnet_DisconnectService (void) |
le_cellnet_StateEventHandlerRef_t | le_cellnet_AddStateEventHandler (le_cellnet_StateHandlerFunc_t handlerPtr, void *contextPtr) |
void | le_cellnet_RemoveStateEventHandler (le_cellnet_StateEventHandlerRef_t addHandlerRef) |
le_cellnet_RequestObjRef_t | le_cellnet_Request (void) |
void | le_cellnet_Release (le_cellnet_RequestObjRef_t cellNetRef) |
Legato Cellular Network include file.
Copyright (C) Sierra Wireless Inc. Use of this work is subject to license.
typedef struct le_cellnet_RequestObj* le_cellnet_RequestObjRef_t |
Reference returned by Request function and used by Release function
typedef struct le_cellnet_StateEventHandler* le_cellnet_StateEventHandlerRef_t |
Reference type used by Add/Remove functions for EVENT 'le_cellnet_StateEvent'
typedef void(* le_cellnet_StateHandlerFunc_t) (le_cellnet_State_t state, void *contextPtr) |
Handler for network state changes
state | The cellular network state |
contextPtr |
enum le_cellnet_State_t |
le_cellnet_StateEventHandlerRef_t le_cellnet_AddStateEventHandler | ( | le_cellnet_StateHandlerFunc_t | handlerPtr, |
void * | contextPtr | ||
) |
Add handler function for EVENT 'le_cellnet_StateEvent'
This event provides information on network state changes
[in] | handlerPtr | |
[in] | contextPtr |
void le_cellnet_ConnectService | ( | void | ) |
Connect the client to the service
void le_cellnet_DisconnectService | ( | void | ) |
Disconnect the client from the service
void le_cellnet_Release | ( | le_cellnet_RequestObjRef_t | cellNetRef | ) |
Release a cellular network
[in] | cellNetRef | Reference to a cellular network request. |
void le_cellnet_RemoveStateEventHandler | ( | le_cellnet_StateEventHandlerRef_t | addHandlerRef | ) |
Remove handler function for EVENT 'le_cellnet_StateEvent'
[in] | addHandlerRef |
le_cellnet_RequestObjRef_t le_cellnet_Request | ( | void | ) |
Request a cellular network