41 #ifndef  M2MB_DBG_API_H    42 #define  M2MB_DBG_API_H    75 #define M2MB_DBG_EMERG(...) \    76     m2mb_dbg_msg_log(M2MB_DBG_LOG_SEVERITY_EMERG, __func__, __LINE__, __VA_ARGS__)    79 #define M2MB_DBG_ALERT(...) \    80     m2mb_dbg_msg_log(M2MB_DBG_LOG_SEVERITY_ALERT, __func__, __LINE__, __VA_ARGS__)    83 #define M2MB_DBG_CRIT(...) \    84     m2mb_dbg_msg_log(M2MB_DBG_LOG_SEVERITY_CRIT, __func__, __LINE__, __VA_ARGS__)    87 #define M2MB_DBG_ERROR(...) \    88     m2mb_dbg_msg_log(M2MB_DBG_LOG_SEVERITY_ERROR, __func__, __LINE__, __VA_ARGS__)    91 #define M2MB_DBG_WARN(...) \    92     m2mb_dbg_msg_log(M2MB_DBG_LOG_SEVERITY_WARN, __func__, __LINE__, __VA_ARGS__)    95 #define M2MB_DBG_NOTICE(...) \    96     m2mb_dbg_msg_log(M2MB_DBG_LOG_SEVERITY_NOTICE, __func__, __LINE__, __VA_ARGS__)    99 #define M2MB_DBG_INFO(...) \   100     m2mb_dbg_msg_log(M2MB_DBG_LOG_SEVERITY_INFO, __func__, __LINE__, __VA_ARGS__)   103 #define M2MB_DBG_DEBUG(...) \   104     m2mb_dbg_msg_log(M2MB_DBG_LOG_SEVERITY_DEBUG, __func__, __LINE__, __VA_ARGS__)   106 #define M2MB_FUNC_ENTRY \   108     M2MB_DBG_INFO(" FUNC_ENTRY \n"); \   110 #define M2MB_FUNC_EXIT \   112     M2MB_DBG_INFO(" FUNC_EXIT \n"); \   114 #define M2MB_FUNC_EXIT_RC(x) \   116     M2MB_DBG_INFO(" FUNC_EXIT : Return Code : %d \n", x); \   390     char const *sourceFilePath, 
UINT32 lineNumber, 
char *format, ...);
 INT32 m2mb_dbg_prepare_for_deepsleep(VOID)
m2mb_dbg_prepare_for_deepsleep is called to make the dbg module ready for deepsleep. 
Debug module configuration context.  
M2MB_DBG_LOG_SEVERITY_T m2mb_dbg_get_severity(VOID)
m2mb_dbg_get_severity is called to get the severity level. 
INT32 m2mb_dbg_reinit(VOID)
m2mb_dbg_reinit is called after coming out of deepsleep. 
VOID(* M2MB_DBG_SEND_T)(VOID *userCtx, UINT32 len, UINT8 *data)
M2MB_DBG_SEND_T defines the debug log send API the send the logs. 
INT32(* M2MB_DBG_CMD_CB_T)(VOID *userCtx, UINT32 len, UINT8 *cmd)
M2MB_DBG_CMD_CB_T defines the command handler to handle the received command. 
void m2mb_data_rx_cb(UINT32 num_bytes, void *cb_data)
m2mb_data_rx_cb is called to inform data received which needs to be processed for command input handl...
M2MB_STATUS_T m2mb_dbg_set_severity(M2MB_DBG_LOG_SEVERITY_T severityLevel)
m2mb_dbg_set_severity is called to set the severity level to log. 
INT32 m2mb_dbg_msg_log(M2MB_DBG_LOG_SEVERITY_T severity, char const *sourceFilePath, UINT32 lineNumber, char *format,...)
m2mb_dbg_msg_log is called to log debug information. 
M2MB_DBG_LOG_SEVERITY
M2MB_DBG_LOG_SEVERITY defines different debug category. 
INT32 m2mb_dbg_init(M2MB_DBG_CFG_T *pCfg, M2MB_UART_CONFIG_T *uart_cfg)
m2mb_dbg_init is called to initialize the debug module. 
M2MB_DBG_LOG_SEVERITY_T logLevel
void m2mb_data_tx_done_cb(UINT32 num_bytes, void *cb_data)
m2mb_data_tx_done_cb is called to inform data transfer is complete. 
VOID(* M2MB_DBG_RECV_PROC_DONE_T)(VOID *userCtx)
M2MB_DBG_RECV_PROC_DONE_T defines the API to indicate the receive process is done. 
enum M2MB_DBG_LOG_SEVERITY M2MB_DBG_LOG_SEVERITY_T
M2MB_DBG_LOG_SEVERITY defines different debug category. 
Structure to configure UART module. 
M2MB_DBG_RECV_PROC_DONE_T recvDone
struct M2MB_DBG_CFG M2MB_DBG_CFG_T
Debug module configuration context.  
INT32 m2mb_dbg_is_init(VOID)
m2mb_dbg_is_init is called to check if dbg module is initialized. 
INT32 m2mb_dbg_consol_print(char *format,...)
m2mb_dbg_consol_print is called to print to the console. 
M2MB_UART_PORT_ID_E
UART Port Identifier enumeration.