![Intel IXP2400 User Manual Download Page 268](http://html1.mh-extra.com/html/intel/ixp2400/ixp2400_user-manual_2071795268.webp)
268
Development Tools User’s Guide
Intel
®
IXP2400/IXP2800 Network Processors
Simulator APIs
Synopsis
XACTAPI XACT_Define_Callback_Set_Prompt(
void(*fp)( char *prompt_str ) )
9.4.14
XACT_Define_Callback_Get_Console_Input
This function registers the callback necessary for the transactor console function to fetch console
input from an external source. This callback should be defined prior to invoking
XACT_start_console()
Synopsis
XACTAPI XACT_Define_Callback_Get_Console_Input(
char *(*console_input)() )
9.5
Miscellaneous Functions
9.5.1
XACT_Define_Automatic_Sim_Halt
Calls callback when the simulator has prematurely halted model for the reason specified by the
input argument
Synopsis
XACTAPI XACT_Define_Automatic_Sim_Halt(
void(*fp)( HALT_STATUS halt_status ) )
9.5.2
XACT_output_to_console
Prints string to transactor console output
Synopsis
XACTAPI XACT_output_to_console( char *output_str
)
9.5.3
XACT_printf
printf function outputting to transactor console
Synopsis
XACTAPI XACT_printf( char *fmt, ... )
9.5.4
XACT_printf_error
printf function outputting to transactor console as a transactor error
Synopsis
XACTAPI XACT_printf_error( char *fmt, ... )
9.5.5
XACT_register_console_function
This function registers a foreign function with the transactor's C interpreter. The argument list of
the specified function is assumed to have the following characteristics:
•
only (char *) and (unsigned int) args are allowed
•
all (char *) args precede all (unsigned int) args.