m2mb API docs  30.00.007
m2mb API sets documentation
m2mb_fwautosim.h File Reference

Header file for m2mb_fwautosim APIs. More...

Go to the source code of this file.

Typedefs

typedef HANDLE M2MB_FWAUTOSIM_HANDLE
 
typedef void(* m2mb_fwautosim_ind_callback) (M2MB_FWAUTOSIM_HANDLE h, M2MB_FWAUTOSIM_IND_E pdp_event, UINT8 *data, UINT32 data_len, UINT8 cid, void *userdata)
 

Enumerations

enum  M2MB_FWAUTOSIM_IND_E { M2MB_FWAUTOSIM_UP, M2MB_FWAUTOSIM_DOWN, M2MB_FWAUTOSIM_DATA_RECV }
 

Functions

M2MB_RESULT_E m2mb_fwautosim_init (M2MB_FWAUTOSIM_HANDLE *h, m2mb_fwautosim_ind_callback callback, void *userdata)
 m2mb_fwautosim_init initializes FWAUTOSIM service for current client. More...
 
M2MB_RESULT_E m2mb_fwautosim_set (M2MB_FWAUTOSIM_HANDLE h, UINT8 type)
 m2mb_fwautosim_set enable/disable fwautosim More...
 
M2MB_RESULT_E m2mb_fwautosim_deinit (M2MB_FWAUTOSIM_HANDLE h)
 m2mb_fwautosim_deinit deinitializes FWAUTOSIM service for current client. More...
 

Detailed Description

Header file for m2mb_fwautosim APIs.

m2m/m2m_generic/common/m2mb_inc/m2mb_fwautosim.h

m2m base fwautosim api prototype

@notes Dependencies: m2mb_types.h

Author
Giusy Vallascas
Date

Function Documentation

◆ m2mb_fwautosim_deinit()

M2MB_RESULT_E m2mb_fwautosim_deinit ( M2MB_FWAUTOSIM_HANDLE  h)

m2mb_fwautosim_deinit deinitializes FWAUTOSIM service for current client.

m2mb_fwautosim_deinit deinitialize FWAUTOSIM service for current client, freeing the handle passed as first parameter. Calling the m2mb_fwautosim_deinit is useful after using the FWAUTOSIM service in order to free memory space.

Parameters
[in]his the handle to the FWAUTOSIM service, that will be deinitialized by the function.
Returns
returns M2MB_RESULT_SUCCESS on success, a different value on error.
Note

◆ m2mb_fwautosim_init()

M2MB_RESULT_E m2mb_fwautosim_init ( M2MB_FWAUTOSIM_HANDLE *  h,
m2mb_fwautosim_ind_callback  callback,
void *  userdata 
)

m2mb_fwautosim_init initializes FWAUTOSIM service for current client.

m2mb_fwautosim_init initialize FWAUTOSIM service for current client returning the handle that must be passed as first parameter for all FWAUTOSIM actions. Calling the m2mb_fwautosim_init is mandatory before using the FWAUTOSIM service.

Parameters
[in]*his the pointer to the handle to the FWAUTOSIM service, that will be initialized by the function.
[in]callbackis the callback that will be called if an event or a response happens.
[in]userdatais a pointer to generic user data that will be returned as it is in the callback.
Returns
returns M2MB_RESULT_SUCCESS on success, a different value on error.
Note

◆ m2mb_fwautosim_set()

M2MB_RESULT_E m2mb_fwautosim_set ( M2MB_FWAUTOSIM_HANDLE  h,
UINT8  type 
)

m2mb_fwautosim_set enable/disable fwautosim

m2mb_fwautosim_set allows to set value of fwautosim (0-1)

Parameters
[in]his the handle to the FWAUTOSIM service
[in]typeis fwautosim value assigned by at cmd
Returns
returns M2MB_RESULT_SUCCESS on success, a different value on error.
Note