OpenOCD
target_request.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * Copyright (C) 2007 by Dominic Rath *
5  * Dominic.Rath@gmx.de *
6  * *
7  * Copyright (C) 2007,2008 Øyvind Harboe *
8  * oyvind.harboe@zylin.com *
9  * *
10  * Copyright (C) 2008 by Spencer Oliver *
11  * spen@spen-soft.co.uk *
12  ***************************************************************************/
13 
14 #ifndef OPENOCD_TARGET_TARGET_REQUEST_H
15 #define OPENOCD_TARGET_TARGET_REQUEST_H
16 
17 struct target;
18 struct command_context;
19 
20 typedef enum target_req_cmd {
24 /* TARGET_REQ_SEMIHOSTING, */
26 
30 };
31 
32 int target_request(struct target *target, uint32_t request);
34  struct target *target);
42 bool target_got_message(void);
43 
44 #endif /* OPENOCD_TARGET_TARGET_REQUEST_H */
struct debug_msg_receiver * next
struct command_context * cmd_ctx
Definition: target.h:120
enum target_req_cmd target_req_cmd_t
int target_request_register_commands(struct command_context *cmd_ctx)
bool target_got_message(void)
Read and clear the flag as to whether we got a message.
int delete_debug_msg_receiver(struct command_context *cmd_ctx, struct target *target)
int target_request(struct target *target, uint32_t request)
target_req_cmd
@ TARGET_REQ_DEBUGCHAR
@ TARGET_REQ_DEBUGMSG
@ TARGET_REQ_TRACEMSG