OpenOCD
|
Go to the source code of this file.
Macros | |
#define | REMOTE_BITBANG_HOST_MAX 255 |
Enumerations | |
enum | block_bool { NO_BLOCK , BLOCK } |
enum | flush_bool_t { NO_FLUSH , FLUSH_SEND_BUF } |
Functions | |
static bb_value_t | char_to_int (int c) |
COMMAND_HANDLER (remote_bitbang_handle_remote_bitbang_host_command) | |
COMMAND_HANDLER (remote_bitbang_handle_remote_bitbang_port_command) | |
static int | remote_bitbang_blink (int on) |
static int | remote_bitbang_execute_queue (void) |
static int | remote_bitbang_fill_buf (enum block_bool block) |
static int | remote_bitbang_flush (void) |
static int | remote_bitbang_init (void) |
static int | remote_bitbang_init_tcp (void) |
static int | remote_bitbang_init_unix (void) |
static int | remote_bitbang_queue (int c, flush_bool_t flush) |
static int | remote_bitbang_quit (void) |
static bb_value_t | remote_bitbang_read_sample (void) |
static unsigned int | remote_bitbang_recv_buf_contiguous_available_space (void) |
static bool | remote_bitbang_recv_buf_empty (void) |
static bool | remote_bitbang_recv_buf_full (void) |
static int | remote_bitbang_reset (int trst, int srst) |
static int | remote_bitbang_sample (void) |
static int | remote_bitbang_write (int tck, int tms, int tdi) |
Variables | |
struct adapter_driver | remote_bitbang_adapter_driver |
static struct bitbang_interface | remote_bitbang_bitbang |
static const struct command_registration | remote_bitbang_command_handlers [] |
static int | remote_bitbang_fd |
static char * | remote_bitbang_host |
static struct jtag_interface | remote_bitbang_interface |
static char * | remote_bitbang_port |
static char | remote_bitbang_recv_buf [256] |
static unsigned int | remote_bitbang_recv_buf_end |
static unsigned int | remote_bitbang_recv_buf_start |
static uint8_t | remote_bitbang_send_buf [512] |
static unsigned int | remote_bitbang_send_buf_used |
static const struct command_registration | remote_bitbang_subcommand_handlers [] |
#define REMOTE_BITBANG_HOST_MAX 255 |
Definition at line 23 of file remote_bitbang.c.
enum block_bool |
Enumerator | |
---|---|
NO_BLOCK | |
BLOCK |
Definition at line 83 of file remote_bitbang.c.
enum flush_bool_t |
Enumerator | |
---|---|
NO_FLUSH | |
FLUSH_SEND_BUF |
Definition at line 137 of file remote_bitbang.c.
|
static |
Definition at line 168 of file remote_bitbang.c.
References BB_ERROR, BB_HIGH, BB_LOW, LOG_ERROR, and remote_bitbang_quit().
Referenced by remote_bitbang_read_sample().
COMMAND_HANDLER | ( | remote_bitbang_handle_remote_bitbang_host_command | ) |
Definition at line 342 of file remote_bitbang.c.
References CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, and remote_bitbang_host.
COMMAND_HANDLER | ( | remote_bitbang_handle_remote_bitbang_port_command | ) |
Definition at line 330 of file remote_bitbang.c.
References CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, NULL, and remote_bitbang_port.
|
static |
Definition at line 217 of file remote_bitbang.c.
|
static |
Definition at line 383 of file remote_bitbang.c.
|
static |
Definition at line 89 of file remote_bitbang.c.
References BLOCK, count, ERROR_FAIL, ERROR_OK, log_socket_error(), read_socket(), remote_bitbang_fd, remote_bitbang_flush(), remote_bitbang_recv_buf, remote_bitbang_recv_buf_contiguous_available_space(), remote_bitbang_recv_buf_empty(), remote_bitbang_recv_buf_end, remote_bitbang_recv_buf_full(), remote_bitbang_recv_buf_start, socket_block(), and socket_nonblock().
Referenced by remote_bitbang_read_sample(), and remote_bitbang_sample().
|
static |
Definition at line 63 of file remote_bitbang.c.
References ERROR_FAIL, ERROR_OK, log_socket_error(), offset, remote_bitbang_fd, remote_bitbang_send_buf, remote_bitbang_send_buf_used, and write_socket().
Referenced by remote_bitbang_fill_buf(), and remote_bitbang_queue().
|
static |
Definition at line 308 of file remote_bitbang.c.
References ERROR_OK, LOG_INFO, remote_bitbang_bitbang, remote_bitbang_fd, remote_bitbang_init_tcp(), remote_bitbang_init_unix(), remote_bitbang_port, remote_bitbang_recv_buf_end, remote_bitbang_recv_buf_start, and socket_nonblock().
|
static |
Definition at line 231 of file remote_bitbang.c.
References ERROR_FAIL, LOG_ERROR, LOG_INFO, log_socket_error(), remote_bitbang_host, and remote_bitbang_port.
Referenced by remote_bitbang_init().
|
static |
Definition at line 281 of file remote_bitbang.c.
References addr, ERROR_FAIL, LOG_ERROR, LOG_INFO, log_socket_error(), and remote_bitbang_host.
Referenced by remote_bitbang_init().
|
static |
Definition at line 142 of file remote_bitbang.c.
References ARRAY_SIZE, ERROR_OK, FLUSH_SEND_BUF, remote_bitbang_flush(), remote_bitbang_send_buf, and remote_bitbang_send_buf_used.
Referenced by remote_bitbang_quit(), remote_bitbang_reset(), remote_bitbang_sample(), and remote_bitbang_write().
|
static |
Definition at line 151 of file remote_bitbang.c.
References close_socket(), ERROR_FAIL, ERROR_OK, FLUSH_SEND_BUF, LOG_INFO, log_socket_error(), remote_bitbang_fd, remote_bitbang_host, remote_bitbang_port, and remote_bitbang_queue().
Referenced by char_to_int().
|
static |
Definition at line 190 of file remote_bitbang.c.
References BB_ERROR, BLOCK, char_to_int(), ERROR_OK, remote_bitbang_fill_buf(), remote_bitbang_recv_buf, remote_bitbang_recv_buf_empty(), and remote_bitbang_recv_buf_start.
|
static |
Definition at line 49 of file remote_bitbang.c.
References remote_bitbang_recv_buf, remote_bitbang_recv_buf_end, and remote_bitbang_recv_buf_start.
Referenced by remote_bitbang_fill_buf().
|
static |
Definition at line 44 of file remote_bitbang.c.
References remote_bitbang_recv_buf_end, and remote_bitbang_recv_buf_start.
Referenced by remote_bitbang_fill_buf(), and remote_bitbang_read_sample().
|
static |
Definition at line 37 of file remote_bitbang.c.
References remote_bitbang_recv_buf, remote_bitbang_recv_buf_end, and remote_bitbang_recv_buf_start.
Referenced by remote_bitbang_fill_buf(), and remote_bitbang_sample().
|
static |
Definition at line 209 of file remote_bitbang.c.
References FLUSH_SEND_BUF, and remote_bitbang_queue().
|
static |
Definition at line 182 of file remote_bitbang.c.
References ERROR_FAIL, ERROR_OK, NO_BLOCK, NO_FLUSH, remote_bitbang_fill_buf(), remote_bitbang_queue(), and remote_bitbang_recv_buf_full().
|
static |
Definition at line 203 of file remote_bitbang.c.
References NO_FLUSH, and remote_bitbang_queue().
struct adapter_driver remote_bitbang_adapter_driver |
Definition at line 383 of file remote_bitbang.c.
|
static |
Definition at line 217 of file remote_bitbang.c.
Referenced by remote_bitbang_init().
|
static |
Definition at line 342 of file remote_bitbang.c.
|
static |
Definition at line 28 of file remote_bitbang.c.
Referenced by remote_bitbang_fill_buf(), remote_bitbang_flush(), remote_bitbang_init(), and remote_bitbang_quit().
|
static |
Definition at line 25 of file remote_bitbang.c.
Referenced by COMMAND_HANDLER(), remote_bitbang_init_tcp(), remote_bitbang_init_unix(), and remote_bitbang_quit().
|
static |
Definition at line 383 of file remote_bitbang.c.
|
static |
Definition at line 26 of file remote_bitbang.c.
Referenced by COMMAND_HANDLER(), remote_bitbang_init(), remote_bitbang_init_tcp(), and remote_bitbang_quit().
|
static |
Definition at line 33 of file remote_bitbang.c.
Referenced by remote_bitbang_fill_buf(), remote_bitbang_read_sample(), remote_bitbang_recv_buf_contiguous_available_space(), and remote_bitbang_recv_buf_full().
|
static |
Definition at line 35 of file remote_bitbang.c.
Referenced by remote_bitbang_fill_buf(), remote_bitbang_init(), remote_bitbang_recv_buf_contiguous_available_space(), remote_bitbang_recv_buf_empty(), and remote_bitbang_recv_buf_full().
|
static |
Definition at line 34 of file remote_bitbang.c.
Referenced by remote_bitbang_fill_buf(), remote_bitbang_init(), remote_bitbang_read_sample(), remote_bitbang_recv_buf_contiguous_available_space(), remote_bitbang_recv_buf_empty(), and remote_bitbang_recv_buf_full().
|
static |
Definition at line 29 of file remote_bitbang.c.
Referenced by remote_bitbang_flush(), and remote_bitbang_queue().
|
static |
Definition at line 30 of file remote_bitbang.c.
Referenced by remote_bitbang_flush(), and remote_bitbang_queue().
|
static |
Definition at line 342 of file remote_bitbang.c.