OpenOCD
minidriver.h File Reference
Include dependency graph for minidriver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int default_interface_jtag_execute_queue (void)
 Calls the interface callback to execute the queue. More...
 
int interface_add_tms_seq (unsigned num_bits, const uint8_t *bits, enum tap_state state)
 
int interface_jtag_add_clocks (int num_cycles)
 
int interface_jtag_add_dr_scan (struct jtag_tap *active, int num_fields, const struct scan_field *fields, tap_state_t endstate)
 see jtag_add_dr_scan() More...
 
int interface_jtag_add_ir_scan (struct jtag_tap *active, const struct scan_field *fields, tap_state_t endstate)
 see jtag_add_ir_scan() More...
 
int interface_jtag_add_pathmove (int num_states, const tap_state_t *path)
 
int interface_jtag_add_plain_dr_scan (int num_bits, const uint8_t *out_bits, uint8_t *in_bits, tap_state_t endstate)
 
int interface_jtag_add_plain_ir_scan (int num_bits, const uint8_t *out_bits, uint8_t *in_bits, tap_state_t endstate)
 
int interface_jtag_add_reset (int trst, int srst)
 This drives the actual srst and trst pins. More...
 
int interface_jtag_add_runtest (int num_cycles, tap_state_t endstate)
 
int interface_jtag_add_sleep (uint32_t us)
 
int interface_jtag_add_tlr (void)
 
int interface_jtag_execute_queue (void)
 

Function Documentation

◆ default_interface_jtag_execute_queue()

int default_interface_jtag_execute_queue ( void  )

◆ interface_add_tms_seq()

int interface_add_tms_seq ( unsigned  num_bits,
const uint8_t *  bits,
enum tap_state  state 
)

◆ interface_jtag_add_clocks()

int interface_jtag_add_clocks ( int  num_cycles)

Definition at line 282 of file jtag/drivers/driver.c.

References cmd, cmd_queue_alloc(), ERROR_OK, jtag_queue_command(), and JTAG_STABLECLOCKS.

Referenced by jtag_add_clocks().

◆ interface_jtag_add_dr_scan()

int interface_jtag_add_dr_scan ( struct jtag_tap active,
int  num_fields,
const struct scan_field fields,
tap_state_t  endstate 
)

◆ interface_jtag_add_ir_scan()

◆ interface_jtag_add_pathmove()

int interface_jtag_add_pathmove ( int  num_states,
const tap_state_t path 
)

Definition at line 247 of file jtag/drivers/driver.c.

References cmd, cmd_queue_alloc(), ERROR_OK, JTAG_PATHMOVE, and jtag_queue_command().

Referenced by jtag_add_pathmove().

◆ interface_jtag_add_plain_dr_scan()

int interface_jtag_add_plain_dr_scan ( int  num_bits,
const uint8_t *  out_bits,
uint8_t *  in_bits,
tap_state_t  endstate 
)

Definition at line 195 of file jtag/drivers/driver.c.

References jtag_add_plain_scan(), scan_field::num_bits, and state.

Referenced by jtag_add_plain_dr_scan().

◆ interface_jtag_add_plain_ir_scan()

int interface_jtag_add_plain_ir_scan ( int  num_bits,
const uint8_t *  out_bits,
uint8_t *  in_bits,
tap_state_t  endstate 
)

Definition at line 200 of file jtag/drivers/driver.c.

References jtag_add_plain_scan(), scan_field::num_bits, and state.

Referenced by jtag_add_plain_ir_scan().

◆ interface_jtag_add_reset()

int interface_jtag_add_reset ( int  trst,
int  srst 
)

This drives the actual srst and trst pins.

srst will always be 0 if jtag_reset_config & RESET_SRST_PULLS_TRST != 0 and ditto for trst.

the higher level jtag_add_reset will invoke jtag_add_tlr() if appropriate

Definition at line 297 of file jtag/drivers/driver.c.

References cmd, cmd_queue_alloc(), ERROR_OK, jtag_queue_command(), and JTAG_RESET.

Referenced by legacy_jtag_add_reset().

◆ interface_jtag_add_runtest()

int interface_jtag_add_runtest ( int  num_cycles,
tap_state_t  endstate 
)

Definition at line 266 of file jtag/drivers/driver.c.

References cmd, cmd_queue_alloc(), ERROR_OK, jtag_queue_command(), JTAG_RUNTEST, and state.

Referenced by jtag_add_runtest().

◆ interface_jtag_add_sleep()

int interface_jtag_add_sleep ( uint32_t  us)

Definition at line 313 of file jtag/drivers/driver.c.

References cmd, cmd_queue_alloc(), ERROR_OK, jtag_queue_command(), and JTAG_SLEEP.

Referenced by jtag_add_sleep().

◆ interface_jtag_add_tlr()

int interface_jtag_add_tlr ( void  )

Definition at line 205 of file jtag/drivers/driver.c.

References cmd, cmd_queue_alloc(), ERROR_OK, jtag_queue_command(), JTAG_TLR_RESET, state, and TAP_RESET.

Referenced by jtag_add_tlr().

◆ interface_jtag_execute_queue()