| |||
Home > Data Structures Used by the CADI Interface > Semihosting and message output > CADIConsoleChannel_t |
Reverse semihosting for interrupts from the debugger towards the target.
Example B.41. CADIConsoleChannel_t
struct CADIConsoleChannel_t{public: // methods CADIConsoleChannel_t(uint32_t streamID_par, const char *name_par = "", bool blocking_par = false, bool characterInput_par = false) : streamID(streamID_par), blocking(blocking_par), characterInput(characterInput_par) { AssignString(name, name_par, sizeof(name)); } public: // data uint32_t streamID; char name[CADI_NAME_SIZE]; bool blocking; bool characterInput; };
The data members are:
streamID
is the stream identifier
name
is the stream name
blocking
if true
, the console is blocking for the appliInput()
function
characterInput
if true
, then the notify/return
from call is on a per character basis. If false, then the notify/return
from call is on a or per line basis.