![]() |
m2mb API docs
25.30.004.0
m2mb API sets documentation
|
Header file for m2mb_atp profiles related APIs. More...
Go to the source code of this file.
Macros | |
| #define | M2MB_ATP_PROFILE_PARAM_REGISTER(paramString, paramFlags, paramDefault, paramType) m2mb_atp_profile_param_register((CHAR*)paramString, (UINT16)paramFlags, (void*)paramDefault, (UINT16)(sizeof(paramType))) |
| #define | M2MB_ATP_PROFILE_PARAM_SET(h, instanceNum, paramString, paramValue, paramType) m2mb_atp_profile_param_set((M2MB_ATP_HANDLE)h, (UINT16)instanceNum, (CHAR*)paramString, (void*)paramValue, (UINT16)(sizeof(paramType))) |
| #define | M2MB_ATP_PROFILE_PARAM_GET(h, instanceNum, paramString, paramValue, paramType) m2mb_atp_profile_param_get((M2MB_ATP_HANDLE)h, (UINT16)instanceNum, (CHAR*)paramString, (void*)paramValue, (UINT16)(sizeof(paramType))) |
| #define | M2MB_ATP_BASE_PROFILE_FLAG 0x80 |
Functions | |
| M2MB_RESULT_E | m2mb_atp_profile_param_register (M2MB_ATP_HANDLE h, CHAR *paramString, M2MB_ATP_PROFILE_TYPE_E paramFlags, void *paramDefault, UINT16 paramSize) |
| m2mb_atp_profile_param_register registers a command parameter. More... | |
| M2MB_RESULT_E | m2mb_atp_profile_param_set (M2MB_ATP_HANDLE h, UINT16 instanceNum, CHAR *paramString, void *paramValue, UINT16 paramSize) |
| m2mb_atp_profile_param_set sets value for a registered command parameter. More... | |
| M2MB_RESULT_E | m2mb_atp_profile_param_get (M2MB_ATP_HANDLE h, UINT16 instanceNum, CHAR *paramString, void *paramValue, UINT16 paramSize) |
| m2mb_atp_profile_param_get gets value for a registered command parameter. More... | |
| M2MB_RESULT_E | m2mb_atp_profile_param_restore (M2MB_ATP_HANDLE h, UINT16 instanceNum, CHAR *paramString) |
| m2mb_atp_profile_param_restore resets all registered command parameters to their default value. More... | |
| M2MB_RESULT_E | m2mb_atp_profile_set_active_profile (M2MB_ATP_HANDLE h, UINT16 instanceNum, M2MB_ATP_PROFILE_INDEX_E profileID) |
| m2mb_atp_profile_set_active_profile sets active profile. More... | |
| M2MB_RESULT_E | m2mb_atp_profile_get_active_profile (M2MB_ATP_HANDLE h, UINT16 instanceNum, M2MB_ATP_PROFILE_INDEX_E *profileID) |
| m2mb_atp_profile_get_active_profile gets active profile. More... | |
| M2MB_RESULT_E | m2mb_atp_profile_param_store (M2MB_ATP_HANDLE h, UINT16 instanceNum, CHAR *paramString, M2MB_ATP_PROFILE_INDEX_E profileID) |
| m2mb_atp_profile_param_store stores current value of a command parameter in a permanent (not volatile) storage. More... | |
Header file for m2mb_atp profiles related APIs.
m2m/m2m_generic/common/m2mb_inc/m2mb_atp_profile.h
m2mb_atp_profile APIs provide actions for profiles handling.
@notes
| M2MB_RESULT_E m2mb_atp_profile_get_active_profile | ( | M2MB_ATP_HANDLE | h, |
| UINT16 | instanceNum, | ||
| M2MB_ATP_PROFILE_INDEX_E * | profileID | ||
| ) |
m2mb_atp_profile_get_active_profile gets active profile.
m2mb_atp_profile_get_active_profile gets the active profile for a given instance from which restore registered parameters.
| [in] | h | first parameter is the handle to the AT Parser. |
| [in] | instanceNum | second parameter is the AT parser instance where run the action |
| [out] | profileID | third parameter is the profile number. |
m2mb_atp_profile_get_active_profile(h, &profileID );
| M2MB_RESULT_E m2mb_atp_profile_param_get | ( | M2MB_ATP_HANDLE | h, |
| UINT16 | instanceNum, | ||
| CHAR * | paramString, | ||
| void * | paramValue, | ||
| UINT16 | paramSize | ||
| ) |
m2mb_atp_profile_param_get gets value for a registered command parameter.
m2mb_atp_profile_param_set gets value for a registered command parameter for a given instance.
| [in] | h | first parameter is the handle to the AT Parser. |
| [in] | instanceNum | second parameter is the AT parser instance where run the action |
| [in] | paramString | third parameter is the name assigned to the parameter. |
| [out] | paramValue | fourth parameter is the value of the parameter. |
| [in] | paramSize | fifth parameter is a pointer to the size in bytes for the parameter value. |
m2mb_atp_profile_param_get(h, instanceNum, paramString, paramValue, paramSize );
| M2MB_RESULT_E m2mb_atp_profile_param_register | ( | M2MB_ATP_HANDLE | h, |
| CHAR * | paramString, | ||
| M2MB_ATP_PROFILE_TYPE_E | paramFlags, | ||
| void * | paramDefault, | ||
| UINT16 | paramSize | ||
| ) |
m2mb_atp_profile_param_register registers a command parameter.
m2mb_atp_profile_param_register registers a command parameter for subsequent storage in profiles.
| [in] | h | first parameter is the handle to the AT Parser. |
| [in] | paramString | second parameter is the name assigned to the parameter. |
| [in] | paramFlags | third parameter is a flag to specify whether the parameter is common to all AT parser instances, or just for a specific instance. |
| [in] | paramDefault | fourth parameter is a pointer to the default value for the parameter. |
| [in] | paramSize | fifth parameter is a pointer to the size in bytes for the parameter value. |
m2mb_atp_profile_param_register(h, paramString, paramFlags, paramDefault, paramSize );
| M2MB_RESULT_E m2mb_atp_profile_param_restore | ( | M2MB_ATP_HANDLE | h, |
| UINT16 | instanceNum, | ||
| CHAR * | paramString | ||
| ) |
m2mb_atp_profile_param_restore resets all registered command parameters to their default value.
m2mb_atp_profile_param_restore resets all registered command parameters to their default value for a given instance.
| [in] | h | first parameter is the handle to the AT Parser. |
| [in] | instanceNum | second parameter is the AT parser instance where run the action |
| [in] | paramString | third parameter is the name assigned to the parameter, or NULL if all registered parameters should be restored. |
m2mb_atp_profile_param_restore(h, instanceNum, paramString );
| M2MB_RESULT_E m2mb_atp_profile_param_set | ( | M2MB_ATP_HANDLE | h, |
| UINT16 | instanceNum, | ||
| CHAR * | paramString, | ||
| void * | paramValue, | ||
| UINT16 | paramSize | ||
| ) |
m2mb_atp_profile_param_set sets value for a registered command parameter.
m2mb_atp_profile_param_set sets value for a registered command parameter for a given instance.
| [in] | h | first parameter is the handle to the AT Parser. |
| [in] | instanceNum | second parameter is the AT parser instance where run the action |
| [in] | paramString | third parameter is the name assigned to the parameter. |
| [in] | paramValue | fourth parameter is the value to be assigned to the parameter. |
| [in] | paramSize | fifth parameter is a pointer to the size in bytes for the parameter value. |
m2mb_atp_profile_param_set(h, instanceNum, paramString, paramValue, paramSize );
| M2MB_RESULT_E m2mb_atp_profile_param_store | ( | M2MB_ATP_HANDLE | h, |
| UINT16 | instanceNum, | ||
| CHAR * | paramString, | ||
| M2MB_ATP_PROFILE_INDEX_E | profileID | ||
| ) |
m2mb_atp_profile_param_store stores current value of a command parameter in a permanent (not volatile) storage.
m2mb_atp_profile_param_store stores current value of a command parameter for current instance in a permanent (not volatile) storage, in the selected profile.
| [in] | h | first parameter is the handle to the AT Parser. |
| [in] | instanceNum | second parameter is the AT parser instance where run the action |
| [in] | paramString | third parameter is the name assigned to the parameter, or NULL if all registered parameters should be stored. |
| [in] | profileID | fourth parameter is the number of the profile for parameter storing. |
m2mb_atp_profile_param_store(atpInstance, paramString, profileID );
| M2MB_RESULT_E m2mb_atp_profile_set_active_profile | ( | M2MB_ATP_HANDLE | h, |
| UINT16 | instanceNum, | ||
| M2MB_ATP_PROFILE_INDEX_E | profileID | ||
| ) |
m2mb_atp_profile_set_active_profile sets active profile.
m2mb_atp_profile_set_active_profile sets the active profile for a given instance from which restore registered parameters.
| [in] | h | first parameter is the handle to the AT Parser. |
| [in] | instanceNum | second parameter is the AT parser instance where run the action |
| [in] | profileID | third parameter is the profile number. |
m2mb_atp_profile_set_active_profile(h, profileID );