HI champion,
I am trying to enable the log in mmwave link API. I find firstly I need to change below marco to 0.
/*! \brief
* mmwavelink MACRO to enable/disable logging.
* To enable logging set this MACRO to '0' and set proper function pointer
* dbgCb.rlPrint and debug level dbgCb.dbgLevel out of RL_DBG_LEVEL_* during rlDevicePowerOn
*/
#define RL_DISABLE_LOGGING 1
But I stopped at setting the rlClientCbs_t->dbgCb in API rlDevicePowerOn. How should I configure the logging function and logging level in the code? Could you share us an example which could be used in mmwave demo SDK?
typedef struct rlDbgCb
{
/** @fn rlInt32_t (*rlPrint)(const rlInt8_t* format, ...)
*
* @brief Print input message as per the format in the input arguments
* @param[in] format - Format of message and arguments to be printed
* @param[in] ... - Multiple input arguments to be printed
*
* @return rlInt32_t Success- Length of the message written in user's output console in bytes
* Failure- Negative value
*
* Print input message as per the format in the input arguments
*/
/* DesignId : */
/* Requirements : */
rlPrintFptr rlPrint;
/**
* @brief User needs to set debug level such as error, warning, debug, verbose
*/
rlUInt8_t dbgLevel;
}rlDbgCb_t;
Thanks a lot,
Adam