![]() |
m2mb API docs
25.30.003
m2mb API sets documentation
|
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_callback) (M2MB_FWAUTOSIM_HANDLE handle, M2MB_FWAUTOSIM_IND_E event, UINT16 resp_size, void *resp, void *userdata) |
Functions | |
| M2MB_RESULT_E | m2mb_fwautosim_init (M2MB_FWAUTOSIM_HANDLE *h, m2mb_fwautosim_callback callback, void *userdata) |
| m2mb_fwautosim_init initializes FWAUTOSIM service for current client. More... | |
| M2MB_RESULT_E | m2mb_fwautosim_set (M2MB_FWAUTOSIM_HANDLE h, M2MB_FWAUTOSIM_E type) |
| m2mb_fwautosim_set enable/disable fwautosim More... | |
| M2MB_RESULT_E | m2mb_fwautosim_get (M2MB_FWAUTOSIM_HANDLE h, M2MB_FWAUTOSIM_E *value) |
| m2mb_fwautosim_get returns fwautosim current state (enable/disable) More... | |
| M2MB_RESULT_E | m2mb_fwautosim_deinit (M2MB_FWAUTOSIM_HANDLE h) |
| m2mb_fwautosim_deinit deinitializes FWAUTOSIM service for current client. More... | |
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 This module defines APIs change firmware image automatically based on the inserted SIM
| 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.
| [in] | h | is the handle to the FWAUTOSIM service, that will be deinitialized by the function. |
| M2MB_RESULT_E m2mb_fwautosim_get | ( | M2MB_FWAUTOSIM_HANDLE | h, |
| M2MB_FWAUTOSIM_E * | value | ||
| ) |
m2mb_fwautosim_get returns fwautosim current state (enable/disable)
m2mb_fwautosim_get allows to read value of fwautosim (0-1)
| [in] | h | is the handle to the FWAUTOSIM service |
| [in] | *value | is the pointer to the fwautosim value it returns the current state of fwautosim (0: disabled, 1: enabled) |
| M2MB_RESULT_E m2mb_fwautosim_init | ( | M2MB_FWAUTOSIM_HANDLE * | h, |
| m2mb_fwautosim_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.
| [in] | *h | is the pointer to the handle to the FWAUTOSIM service, that will be initialized by the function. |
| [in] | callback | callback for the fwautosim indications (m2mb_fwautosim_callback) WARNING: at the moment not supported/required: pass it as NULL. |
| [in] | userdata | is a pointer to generic user data |
| M2MB_RESULT_E m2mb_fwautosim_set | ( | M2MB_FWAUTOSIM_HANDLE | h, |
| M2MB_FWAUTOSIM_E | type | ||
| ) |
m2mb_fwautosim_set enable/disable fwautosim
m2mb_fwautosim_set allows to set value of fwautosim (0-1)
| [in] | h | is the handle to the FWAUTOSIM service |
| [in] | type | is fwautosim value assigned by at cmd |