|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Debug I/O. More...
Go to the source code of this file.
Data Structures | |
| struct | dbgio_handler_t |
| Debug I/O Interface. More... | |
Macros | |
| #define | DBGIO_MODE_POLLED 0 |
| Polled I/O mode. | |
| #define | DBGIO_MODE_IRQ 1 |
| IRQ-based I/O mode. | |
Functions | |
| int | dbgio_dev_select (const char *name) |
| Select a new dbgio interface by name. | |
| const char * | dbgio_dev_get (void) |
| Fetch the name of the currently selected dbgio interface. | |
| int | dbgio_init (void) |
| Initialize the dbgio console. | |
| int | dbgio_set_irq_usage (int mode) |
| Set IRQ usage. | |
| int | dbgio_read (void) |
| Read one character from the console. | |
| int | dbgio_write (int c) |
| Write one character to the console. | |
| int | dbgio_flush (void) |
| Flush any queued output. | |
| int | dbgio_write_buffer (const uint8 *data, int len) |
| Write an entire buffer of data to the console. | |
| int | dbgio_read_buffer (uint8 *data, int len) |
| Read an entire buffer of data from the console. | |
| int | dbgio_write_buffer_xlat (const uint8 *data, int len) |
| Write an entire buffer of data to the console (potentially with newline transformations). | |
| int | dbgio_write_str (const char *str) |
| Write a NUL-terminated string to the console. | |
| void | dbgio_disable (void) |
| Disable debug I/O globally. | |
| void | dbgio_enable (void) |
| Enable debug I/O globally. | |
| int | dbgio_printf (const char *fmt,...) __printflike(1 |
| Built-in debug I/O printf function. | |
Debug I/O.
This file contains the Debug I/O system, which abstracts things so that various types of debugging tools can be used by programs in KOS. Included among these tools is the dcload console (dcload-serial, dcload-ip, and fs_dclsocket), a raw serial console, and a framebuffer based console.