#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 */
-
- int status; /* processing status */
-} bitq_state_t;
-
-extern bitq_interface_t *bitq_interface;
+extern struct bitq_interface *bitq_interface;
int bitq_execute_queue(void);