OpenOCD
target/rtt.h File Reference
Include dependency graph for target/rtt.h:
This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

◆ target_rtt_find_control_block()

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().

◆ target_rtt_read_callback()

int target_rtt_read_callback ( struct target target,
const struct rtt_control ctrl,
struct rtt_sink_list **  sinks,
size_t  length,
void *  user_data 
)

◆ target_rtt_read_channel_info()

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 
)

◆ target_rtt_read_control_block()

int target_rtt_read_control_block ( struct target target,
target_addr_t  address,
struct rtt_control ctrl,
void *  user_data 
)

◆ target_rtt_start()

int target_rtt_start ( struct target target,
const struct rtt_control ctrl,
void *  user_data 
)

Definition at line 50 of file target/rtt.c.

References ERROR_OK.

Referenced by COMMAND_HANDLER().

◆ target_rtt_stop()

int target_rtt_stop ( struct target target,
void *  user_data 
)

Definition at line 56 of file target/rtt.c.

References ERROR_OK.

Referenced by COMMAND_HANDLER().

◆ target_rtt_write_callback()

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 
)