OpenOCD
|
RTT server. More...
Go to the source code of this file.
Data Structures | |
struct | rtt_service |
Functions | |
COMMAND_HANDLER (handle_rtt_start_command) | |
COMMAND_HANDLER (handle_rtt_stop_command) | |
static int | read_callback (unsigned int channel, const uint8_t *buffer, size_t length, void *user_data) |
static int | rtt_connection_closed (struct connection *connection) |
static int | rtt_input (struct connection *connection) |
static int | rtt_new_connection (struct connection *connection) |
int | rtt_server_register_commands (struct command_context *ctx) |
Variables | |
static const struct command_registration | rtt_command_handlers [] |
static const struct command_registration | rtt_server_command_handlers [] |
static const struct command_registration | rtt_server_subcommand_handlers [] |
static const struct service_driver | rtt_service_driver |
RTT server.
This server allows access to Real Time Transfer (RTT) channels via TCP connections.
Definition in file rtt_server.c.
COMMAND_HANDLER | ( | handle_rtt_start_command | ) |
Definition at line 119 of file rtt_server.c.
References add_service(), CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, CONNECTION_LIMIT_UNLIMITED, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, rtt_service::hello_message, LOG_ERROR, and rtt_service_driver.
COMMAND_HANDLER | ( | handle_rtt_stop_command | ) |
Definition at line 158 of file rtt_server.c.
References CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, and remove_service().
|
static |
Definition at line 31 of file rtt_server.c.
References buffer, connection_write(), ERROR_FAIL, ERROR_OK, length, LOG_ERROR, and offset.
Referenced by rtt_connection_closed(), and rtt_new_connection().
|
static |
Definition at line 75 of file rtt_server.c.
References ERROR_OK, LOG_DEBUG, service::priv, read_callback(), rtt_unregister_sink(), and connection::service.
|
static |
Definition at line 87 of file rtt_server.c.
References buffer, connection_read(), ERROR_OK, ERROR_SERVER_REMOTE_CLOSED, length, LOG_ERROR, service::priv, rtt_write_channel(), and connection::service.
|
static |
Definition at line 55 of file rtt_server.c.
References connection_write(), ERROR_OK, LOG_DEBUG, service::priv, read_callback(), rtt_register_sink(), and connection::service.
int rtt_server_register_commands | ( | struct command_context * | ctx | ) |
Definition at line 208 of file rtt_server.c.
References NULL, register_commands(), and rtt_command_handlers.
Referenced by setup_command_handler().
|
static |
Definition at line 158 of file rtt_server.c.
Referenced by rtt_server_register_commands().
|
static |
Definition at line 158 of file rtt_server.c.
|
static |
Definition at line 158 of file rtt_server.c.
|
static |
Definition at line 87 of file rtt_server.c.
Referenced by COMMAND_HANDLER().