OpenOCD
|
Go to the source code of this file.
Functions | |
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 length, 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) |
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 240 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 | length, | ||
void * | user_data | ||
) |
Definition at line 365 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 284 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 219 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 181 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().