OpenOCD
|
Go to the source code of this file.
Functions | |
static bool | channel_is_active (const struct rtt_channel *channel) |
static int | read_channel_name (struct target *target, target_addr_t address, char *name, size_t length) |
static int | read_from_channel (struct target *target, const struct rtt_channel *channel, uint8_t *buffer, size_t *length) |
static int | read_rtt_channel (struct target *target, const struct rtt_control *ctrl, unsigned int channel_index, enum rtt_channel_type type, struct rtt_channel *channel) |
int | target_rtt_find_control_block (struct target *target, target_addr_t *address, size_t size, const char *id, bool *found, void *user_data) |
int | target_rtt_read_callback (struct target *target, const struct rtt_control *ctrl, struct rtt_sink_list **sinks, size_t num_channels, void *user_data) |
int | target_rtt_read_channel_info (struct target *target, const struct rtt_control *ctrl, unsigned int channel_index, enum rtt_channel_type type, struct rtt_channel_info *info, void *user_data) |
int | target_rtt_read_control_block (struct target *target, target_addr_t address, struct rtt_control *ctrl, void *user_data) |
int | target_rtt_start (struct target *target, const struct rtt_control *ctrl, void *user_data) |
int | target_rtt_stop (struct target *target, void *user_data) |
int | target_rtt_write_callback (struct target *target, struct rtt_control *ctrl, unsigned int channel_index, const uint8_t *buffer, size_t *length, void *user_data) |
static int | write_to_channel (struct target *target, const struct rtt_channel *channel, const uint8_t *buffer, size_t *length) |
|
static |
Definition at line 171 of file target/rtt.c.
References rtt_channel::size.
Referenced by target_rtt_read_callback(), and target_rtt_write_callback().
|
static |
Definition at line 61 of file target/rtt.c.
References ERROR_OK, length, MIN, name, offset, and target_read_buffer().
Referenced by target_rtt_read_channel_info().
|
static |
Definition at line 313 of file target/rtt.c.
References rtt_channel::address, buffer, rtt_channel::buffer_addr, ERROR_OK, length, MIN, rtt_channel::read_pos, rtt_channel::size, target_read_buffer(), target_write_u32(), and rtt_channel::write_pos.
Referenced by target_rtt_read_callback().
|
static |
Definition at line 21 of file target/rtt.c.
References rtt_control::address, rtt_channel::address, buf_get_u32(), rtt_channel::buffer_addr, ctrl, ERROR_OK, rtt_channel::flags, rtt_channel::name_addr, rtt_control::num_up_channels, rtt_channel::read_pos, RTT_CB_SIZE, RTT_CHANNEL_SIZE, RTT_CHANNEL_TYPE_DOWN, rtt_channel::size, target_read_buffer(), type, and rtt_channel::write_pos.
Referenced by target_rtt_read_callback(), target_rtt_read_channel_info(), and target_rtt_write_callback().
int target_rtt_find_control_block | ( | struct target * | target, |
target_addr_t * | address, | ||
size_t | size, | ||
const char * | id, | ||
bool * | found, | ||
void * | user_data | ||
) |
Definition at line 241 of file target/rtt.c.
References addr, rtt_channel::address, ERROR_OK, LOG_INFO, MIN, size, and target_read_buffer().
Referenced by COMMAND_HANDLER().
int target_rtt_read_callback | ( | struct target * | target, |
const struct rtt_control * | ctrl, | ||
struct rtt_sink_list ** | sinks, | ||
size_t | num_channels, | ||
void * | user_data | ||
) |
Definition at line 366 of file target/rtt.c.
References buffer, channel_is_active(), ctrl, ERROR_OK, length, LOG_ERROR, LOG_WARNING, MIN, rtt_sink_list::next, rtt_control::num_up_channels, read_from_channel(), read_rtt_channel(), RTT_CHANNEL_BUFFER_MIN_SIZE, RTT_CHANNEL_TYPE_UP, and rtt_channel::size.
Referenced by COMMAND_HANDLER().
int target_rtt_read_channel_info | ( | struct target * | target, |
const struct rtt_control * | ctrl, | ||
unsigned int | channel_index, | ||
enum rtt_channel_type | type, | ||
struct rtt_channel_info * | info, | ||
void * | user_data | ||
) |
Definition at line 285 of file target/rtt.c.
References ctrl, ERROR_OK, rtt_channel::flags, info, LOG_ERROR, rtt_channel::name_addr, read_channel_name(), read_rtt_channel(), rtt_channel::size, and type.
Referenced by COMMAND_HANDLER().
int target_rtt_read_control_block | ( | struct target * | target, |
target_addr_t | address, | ||
struct rtt_control * | ctrl, | ||
void * | user_data | ||
) |
Definition at line 220 of file target/rtt.c.
References rtt_channel::address, buf_get_u32(), ctrl, ERROR_OK, rtt_control::id, rtt_control::num_down_channels, rtt_control::num_up_channels, RTT_CB_MAX_ID_LENGTH, RTT_CB_SIZE, and target_read_buffer().
Referenced by COMMAND_HANDLER().
int target_rtt_start | ( | struct target * | target, |
const struct rtt_control * | ctrl, | ||
void * | user_data | ||
) |
int target_rtt_stop | ( | struct target * | target, |
void * | user_data | ||
) |
int target_rtt_write_callback | ( | struct target * | target, |
struct rtt_control * | ctrl, | ||
unsigned int | channel_index, | ||
const uint8_t * | buffer, | ||
size_t * | length, | ||
void * | user_data | ||
) |
Definition at line 182 of file target/rtt.c.
References buffer, channel_is_active(), ctrl, ERROR_OK, length, LOG_DEBUG, LOG_ERROR, LOG_WARNING, read_rtt_channel(), RTT_CHANNEL_BUFFER_MIN_SIZE, RTT_CHANNEL_TYPE_DOWN, rtt_channel::size, and write_to_channel().
Referenced by COMMAND_HANDLER().
|
static |
Definition at line 90 of file target/rtt.c.
References rtt_channel::address, buffer, rtt_channel::buffer_addr, ERROR_OK, length, MIN, rtt_channel::read_pos, rtt_channel::size, target_write_buffer(), target_write_u32(), and rtt_channel::write_pos.
Referenced by target_rtt_write_callback().