7 #ifndef OPENOCD_JTAG_ADAPTER_H
8 #define OPENOCD_JTAG_ADAPTER_H
int adapter_config_rclk(unsigned int fallback_speed_khz)
Attempt to enable RTCK/RCLK.
adapter_gpio_init_state
Supported initial states for GPIO.
@ ADAPTER_GPIO_INIT_STATE_ACTIVE
@ ADAPTER_GPIO_INIT_STATE_INPUT
@ ADAPTER_GPIO_INIT_STATE_INACTIVE
const char * adapter_get_required_serial(void)
Retrieves the serial number set with command 'adapter serial'.
bool adapter_usb_location_equal(uint8_t dev_bus, uint8_t *port_path, size_t path_len)
const struct adapter_gpio_config * adapter_gpio_get_config(void)
Retrieves gpio configuration set with command "adapter gpio <signal_name>".
int adapter_get_speed(int *speed)
bool is_adapter_initialized(void)
int adapter_quit(void)
Shutdown the debug adapter upon program exit.
unsigned int adapter_get_speed_khz(void)
Retrieves the clock speed of the adapter in kHz.
adapter_gpio_config_index
Adapter GPIO.
@ ADAPTER_GPIO_IDX_SWDIO_DIR
adapter_gpio_direction
Supported GPIO directions.
@ ADAPTER_GPIO_DIRECTION_OUTPUT
@ ADAPTER_GPIO_DIRECTION_INPUT
@ ADAPTER_GPIO_DIRECTION_BIDIRECTIONAL
adapter_gpio_pull
Supported pull directions for GPIO.
int adapter_get_speed_readable(int *speed)
Given a speed setting, use the interface speed_div callback to adjust the setting.
const char * adapter_usb_get_location(void)
int adapter_register_commands(struct command_context *ctx)
Register the adapter's commands.
int adapter_init(struct command_context *cmd_ctx)
Initialize debug adapter upon startup.
int adapter_config_khz(unsigned int khz)
Attempt to configure the adapter for the specified kHz.
adapter_gpio_drive_mode
Supported output drive modes for adaptor GPIO.
@ ADAPTER_GPIO_DRIVE_MODE_OPEN_SOURCE
@ ADAPTER_GPIO_DRIVE_MODE_OPEN_DRAIN
@ ADAPTER_GPIO_DRIVE_MODE_PUSH_PULL
const char * adapter_gpio_get_name(enum adapter_gpio_config_index idx)
Retrieves gpio name.
Configuration options for a single GPIO.
enum adapter_gpio_pull pull
enum adapter_gpio_init_state init_state
enum adapter_gpio_drive_mode drive