OpenOCD
bitq.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * Copyright (C) 2007 by Pavel Chromy *
5  * chromy@asix.cz *
6  ***************************************************************************/
7 
8 #ifndef OPENOCD_JTAG_DRIVERS_BITQ_H
9 #define OPENOCD_JTAG_DRIVERS_BITQ_H
10 
11 #include <jtag/commands.h>
12 
14  /* function to enqueueing low level IO requests */
15  int (*out)(int tms, int tdi, int tdo_req);
16  int (*flush)(void);
17 
18  int (*sleep)(unsigned long us);
19  int (*reset)(int trst, int srst);
20 
21  /* delayed read of requested TDO data,
22  * the input shall be checked after call to any enqueuing function
23  */
24  int (*in_rdy)(void);
25  int (*in)(void);
26 };
27 
28 extern struct bitq_interface *bitq_interface;
29 
30 int bitq_execute_queue(void);
31 
32 void bitq_cleanup(void);
33 
34 #endif /* OPENOCD_JTAG_DRIVERS_BITQ_H */
struct bitq_interface * bitq_interface
Definition: bitq.c:16
int bitq_execute_queue(void)
Definition: bitq.c:206
void bitq_cleanup(void)
Definition: bitq.c:285
int(* in_rdy)(void)
Definition: bitq.h:24
int(* sleep)(unsigned long us)
Definition: bitq.h:18
int(* flush)(void)
Definition: bitq.h:16
int(* in)(void)
Definition: bitq.h:25
int(* reset)(int trst, int srst)
Definition: bitq.h:19
int(* out)(int tms, int tdi, int tdo_req)
Definition: bitq.h:15