encapsulate bitq_state structure
Move the bitq_state structure from the header to source file, as it is used internally. Also removes its silly typedef.
This commit is contained in:
parent
d0809ac060
commit
ff3150922b
|
@ -27,7 +27,14 @@
|
||||||
|
|
||||||
bitq_interface_t* bitq_interface; /* low level bit queue interface */
|
bitq_interface_t* 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 {
|
||||||
|
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 */
|
||||||
|
};
|
||||||
|
static struct bitq_state bitq_in_state;
|
||||||
|
|
||||||
static uint8_t* bitq_in_buffer; /* buffer dynamically reallocated as needed */
|
static uint8_t* bitq_in_buffer; /* buffer dynamically reallocated as needed */
|
||||||
static int bitq_in_bufsize = 32; /* min. buffer size */
|
static int bitq_in_bufsize = 32; /* min. buffer size */
|
||||||
|
|
|
@ -39,15 +39,6 @@ typedef struct bitq_interface_s
|
||||||
int (*in)(void);
|
int (*in)(void);
|
||||||
} bitq_interface_t;
|
} 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 bitq_interface_t *bitq_interface;
|
||||||
|
|
||||||
int bitq_execute_queue(void);
|
int bitq_execute_queue(void);
|
||||||
|
|
Loading…
Reference in New Issue