#include "interface.h"
-bitq_interface_t* bitq_interface; /* low level bit queue interface */
+struct bitq_interface* bitq_interface; /* low level bit queue interface */
-static bitq_state_t bitq_in_state; /* state of input queue */
+/* state of input queue */
+struct bitq_state {
+ struct jtag_command *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 */
+};
+static struct bitq_state bitq_in_state;
static uint8_t* bitq_in_buffer; /* buffer dynamically reallocated as needed */
static int bitq_in_bufsize = 32; /* min. buffer size */
}
-void bitq_path_move(pathmove_command_t* cmd)
+void bitq_path_move(struct pathmove_command* cmd)
{
int i;
}
-void bitq_scan(scan_command_t* cmd)
+void bitq_scan(struct scan_command* cmd)
{
int i;
int bitq_execute_queue(void)
{
- jtag_command_t* cmd = jtag_command_queue; /* currently processed command */
+ struct jtag_command* cmd = jtag_command_queue; /* currently processed command */
bitq_in_state.cmd = jtag_command_queue;
bitq_in_state.field_idx = 0;