10 #ifndef __BRP_BALTECH_API_CMDS_DBG_H__    11 #define __BRP_BALTECH_API_CMDS_DBG_H__    12 #include "../typedefs.h"    16 #define BRP_Dbg_DbgErrBusy BRP_ERR_STATUS(0xF300, 0x01) unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions. 
 
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol. 
 
struct brp_mempool_object_t * brp_mempool
mempool handle. 
 
brp_errcode brp_Dbg_ReadLogs(brp_protocol protocol, char **LogData, brp_mempool *mempool)
Get next available block of debug data. 
 
brp_errcode brp_Dbg_RunCmd(brp_protocol protocol, char *Cmd)
Run a command by emulating the corresponding keypress in DebugCommandInterface.