OpenOCD
target/rtt.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /*
4  * Copyright (C) 2016-2020 by Marc Schink <dev@zapb.de>
5  */
6 
7 #ifndef OPENOCD_TARGET_RTT_H
8 #define OPENOCD_TARGET_RTT_H
9 
10 #include <stdint.h>
11 #include <stdbool.h>
12 
13 #include <target/target.h>
14 #include <rtt/rtt.h>
15 
16 int target_rtt_start(struct target *target, const struct rtt_control *ctrl,
17  void *user_data);
18 int target_rtt_stop(struct target *target, void *user_data);
20  target_addr_t *address, size_t size, const char *id, bool *found,
21  void *user_data);
23  target_addr_t address, struct rtt_control *ctrl, void *user_data);
25  struct rtt_control *ctrl, unsigned int channel_index,
26  const uint8_t *buffer, size_t *length, void *user_data);
28  const struct rtt_control *ctrl, struct rtt_sink_list **sinks,
29  size_t length, void *user_data);
31  const struct rtt_control *ctrl, unsigned int channel_index,
33  void *user_data);
34 
35 #endif /* OPENOCD_TARGET_RTT_H */
uint8_t type
Definition: esp_usb_jtag.c:0
uint8_t length
Definition: esp_usb_jtag.c:1
struct rtt_control ctrl
Control block.
Definition: rtt/rtt.c:25
size_t size
Size of the control block search area.
Definition: rtt/rtt.c:30
rtt_channel_type
Channel type.
Definition: rtt/rtt.h:91
RTT channel information.
Definition: rtt/rtt.h:65
RTT control block.
Definition: rtt/rtt.h:31
Definition: target.h:120
int target_rtt_read_control_block(struct target *target, target_addr_t address, struct rtt_control *ctrl, void *user_data)
Definition: target/rtt.c:219
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: target/rtt.c:365
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: target/rtt.c:240
int target_rtt_stop(struct target *target, void *user_data)
Definition: target/rtt.c:55
int target_rtt_start(struct target *target, const struct rtt_control *ctrl, void *user_data)
Definition: target/rtt.c:49
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: target/rtt.c:181
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: target/rtt.c:284
uint64_t target_addr_t
Definition: types.h:335
static struct ublast_lowlevel_priv info