7 #ifndef OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_H
8 #define OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_H
22 #define GPIO_SRST (1 << 0)
23 #define GPIO_TRST (1 << 1)
24 #define GPIO_USR1 (1 << 2)
25 #define GPIO_USR2 (1 << 3)
26 #define GPIO_TCK (1 << 4)
27 #define GPIO_TDO (1 << 5)
28 #define GPIO_TDI (1 << 6)
29 #define GPIO_RTCK (1 << 7)
30 #define GPIO_TMS (1 << 8)
35 RESULT(*
config)(uint8_t interface_index, uint32_t pin_mask, uint32_t io,
36 uint32_t pull_en_mask, uint32_t input_pull_mask);
37 RESULT(*
out)(uint8_t interface_index, uint32_t pin_mask, uint32_t value);
38 RESULT(*
in)(uint8_t interface_index, uint32_t pin_mask, uint32_t *value);
49 RESULT(*
config)(uint8_t interface_index, uint8_t trn, uint16_t retry,
53 RESULT(*
seqin)(uint8_t interface_index, uint8_t *data, uint16_t bitlen);
55 uint32_t *data, uint8_t *ack);
63 uint8_t *tdo, uint32_t bitlen);
RESULT(* delayms)(uint16_t ms)
RESULT(* delayus)(uint16_t us)
RESULT(* fini)(uint8_t interface_index)
RESULT(* init)(uint8_t interface_index)
RESULT(* out)(uint8_t interface_index, uint32_t pin_mask, uint32_t value)
RESULT(* config)(uint8_t interface_index, uint32_t pin_mask, uint32_t io, uint32_t pull_en_mask, uint32_t input_pull_mask)
RESULT(* in)(uint8_t interface_index, uint32_t pin_mask, uint32_t *value)
RESULT(* init)(uint8_t interface_index)
RESULT(* execute)(uint8_t interface_index, uint8_t *tdi, uint8_t *tms, uint8_t *tdo, uint32_t bitlen)
RESULT(* config)(uint8_t interface_index, uint32_t khz)
RESULT(* fini)(uint8_t interface_index)
RESULT(* seqin)(uint8_t interface_index, uint8_t *data, uint16_t bitlen)
RESULT(* seqout)(uint8_t interface_index, const uint8_t *data, uint16_t bitlen)
RESULT(* init)(uint8_t interface_index)
RESULT(* transact)(uint8_t interface_index, uint8_t request, uint32_t *data, uint8_t *ack)
RESULT(* config)(uint8_t interface_index, uint8_t trn, uint16_t retry, uint16_t dly)
RESULT(* fini)(uint8_t interface_index)
RESULT(* get)(uint16_t *voltage)
RESULT(* set)(uint16_t voltage)
struct interface_target_voltage_t target_voltage
struct interface_swd_t swd
struct interface_gpio_t gpio
RESULT(* peripheral_commit)(void)
struct interface_delay_t delay
struct interface_jtag_raw_t jtag_raw
struct versaloon_adaptors_t adaptors
struct versaloon_usb_setting_t usb_setting
struct libusb_device_handle * versaloon_usb_device_handle
struct versaloon_interface_t versaloon_interface