#ifndef BITQ_H
#define BITQ_H
-#include "jtag.h"
+#include "commands.h"
-typedef struct bitq_interface_s
-{
- /* functions enqueueing low level IO requests
- */
+struct bitq_interface {
+ // function to enqueueing low level IO requests
int (*out)(int tms, int tdi, int tdo_req);
int (*flush)(void);
*/
int (*in_rdy)(void);
int (*in)(void);
-} bitq_interface_t;
+};
-typedef struct bitq_state_s
-{
- jtag_command_t *cmd; /* command currently processed */
- int field_idx; /* index of field currently being processed */
- int bit_pos; /* position of bit curently being processed */
+extern struct bitq_interface *bitq_interface;
- int status; /* processing status */
-} bitq_state_t;
+int bitq_execute_queue(void);
-extern bitq_interface_t *bitq_interface;
-
-extern int bitq_execute_queue(void);
-
-extern void bitq_cleanup(void);
+void bitq_cleanup(void);
#endif /* BITQ_H */