1.1.3.10 SYS_APPDEBUG_CtrlMsg Function
C
int32_t SYS_APPDEBUG_CtrlMsg(SYS_MODULE_OBJ obj,
SYS_APPDEBUG_CtrlMsgType eCtrlMsgType, void *data, uint16_t len)
Summary
Returns success/ failure for the flow/ level set operation asked by the user.
Description
This function is used for setting the value of floe/ level for the app debug logs.
Precondition
SYS_APPDEBUG_Open should have been called.
Parameters
obj - SYS App Debug object handle, returned from SYS_APPDEBUG_Open | Param | Description | |:----- |:----------- |
| eCtrlMsgType | valid Msg Type data - valid data buffer pointer based on the Msg Type len - length of the data buffer the pointer is pointing to
Returns
SYS_APPDEBUG_SUCCESS - Indicates that the Request was catered to successfully
SYS_APPDEBUG_FAILURE - Indicates that the Request failed
Example
// Handle "objSysAppDebug" value must have been returned from SYS_APPDEBUG_Open. uint32_t logLevel = 0x3; if( SYS_APPDEBUG_CtrlMsg(objSysAppDebug, SYS_APPDEBUG_CTRL_MSG_TYPE_SET_LEVEL, &logLevel, 4) == SYS_APPDEBUG_SUCCESS) { }
Remarks
None.