OpenOCD
ublast_access_ftdi.c File Reference
Include dependency graph for ublast_access_ftdi.c:

Go to the source code of this file.

Data Structures

struct  ublast_lowlevel_priv
 

Functions

static int ublast_ftdi_init (struct ublast_lowlevel *low)
 
static int ublast_ftdi_quit (struct ublast_lowlevel *low)
 
static int ublast_ftdi_read (struct ublast_lowlevel *low, uint8_t *buf, unsigned int size, uint32_t *bytes_read)
 
static int ublast_ftdi_write (struct ublast_lowlevel *low, uint8_t *buf, int size, uint32_t *bytes_written)
 
static struct ftdi_context * ublast_getftdic (struct ublast_lowlevel *low)
 
struct ublast_lowlevelublast_register_ftdi (void)
 ublast_register_ftdi - get a lowlevel USB Blaster driver ublast2_register_libusb - get a lowlevel USB Blaster II driver More...
 

Variables

static struct ublast_lowlevel_priv info
 
static struct ublast_lowlevel low
 

Function Documentation

◆ ublast_ftdi_init()

static int ublast_ftdi_init ( struct ublast_lowlevel low)
static

◆ ublast_ftdi_quit()

static int ublast_ftdi_quit ( struct ublast_lowlevel low)
static

Definition at line 103 of file ublast_access_ftdi.c.

◆ ublast_ftdi_read()

static int ublast_ftdi_read ( struct ublast_lowlevel low,
uint8_t *  buf,
unsigned int  size,
uint32_t *  bytes_read 
)
static

◆ ublast_ftdi_write()

static int ublast_ftdi_write ( struct ublast_lowlevel low,
uint8_t *  buf,
int  size,
uint32_t *  bytes_written 
)
static

◆ ublast_getftdic()

static struct ftdi_context* ublast_getftdic ( struct ublast_lowlevel low)
static

Definition at line 25 of file ublast_access_ftdi.c.

References low, and ublast_lowlevel::priv.

Referenced by ublast_ftdi_init(), ublast_ftdi_read(), and ublast_ftdi_write().

◆ ublast_register_ftdi()

struct ublast_lowlevel* ublast_register_ftdi ( void  )

ublast_register_ftdi - get a lowlevel USB Blaster driver ublast2_register_libusb - get a lowlevel USB Blaster II driver

Get a lowlevel USB-Blaster driver. In the current implementation, there are 2 possible lowlevel drivers :

  • one based on libftdi,
  • one based on libusb, specific to the USB-Blaster II

Returns the lowlevel driver structure.

Definition at line 124 of file ublast_access_ftdi.c.

Variable Documentation

◆ info

struct ublast_lowlevel_priv info
static

Referenced by add_dbus_scan(), assert_reset(), at91sam9_address(), at91sam9_command(), at91sam9_disable(), at91sam9_ecc_init(), at91sam9_enable(), at91sam9_nand_ready(), at91sam9_read_block_data(), at91sam9_read_data(), at91sam9_read_page(), at91sam9_write_block_data(), at91sam9_write_data(), at91sam9_write_page(), batch_run(), batch_run_timeout(), cache_check(), cache_clean(), cache_get32(), cache_invalidate(), cache_set32(), cache_write(), check_dbgbase_exists(), cmsis_dap_cmd_dap_info(), COMMAND_HANDLER(), COMMAND_HELPER(), davinci_address(), davinci_command(), davinci_init(), davinci_nand_ready(), davinci_read_block_data(), davinci_read_data(), davinci_read_page(), davinci_seek_column(), davinci_write_block_data(), davinci_write_data(), davinci_write_page(), davinci_write_page_ecc1(), davinci_write_page_ecc4(), davinci_write_page_ecc4infix(), davinci_write_pagecmd(), davinci_writepage_tail(), dbus_scan(), deassert_reset(), deinit_target(), dm013_select_target(), examine(), examine_progbuf(), execute_resume(), faux_erase(), faux_write(), FLASH_BANK_COMMAND_HANDLER(), free_custom_register_names(), free_reg_names(), gdb_regno_custom_number(), gdb_regno_reg_data_type(), get_dm(), get_info(), get_riscv_debug_reg_ctx(), get_sbaadress_reg_count(), get_target_type(), halt_set_dcsr_ebreak(), handle_became_unavailable(), handle_halt(), handle_halt_routine(), has_sufficient_progbuf(), increase_ac_busy_delay(), increase_dbus_busy_delay(), increase_dmi_busy_delay(), increase_interrupt_high_delay(), init_custom_csr_names(), init_shared_reg_info(), init_target(), jtagspi_auto_probe(), jtagspi_bulk_erase(), jtagspi_cmd(), jtagspi_erase(), jtagspi_page_write(), jtagspi_probe(), jtagspi_read(), jtagspi_sector_erase(), jtagspi_set_user_ir(), jtagspi_write(), log_puts(), max32xxx_erase(), max32xxx_flash_op_post(), max32xxx_flash_op_pre(), max32xxx_mass_erase(), max32xxx_probe(), max32xxx_protect(), max32xxx_protect_check(), max32xxx_write(), max32xxx_write_block(), maybe_add_trigger_t2_t6_for_wp(), maybe_read_tselect(), maybe_write_tselect(), msp432_probe(), NAND_DEVICE_COMMAND_HANDLER(), read_bits(), read_memory(), read_memory_bus_v1(), read_remote_csr(), register_read(), register_write(), reset_learned_delays(), riscv011_get_register(), riscv013_data_bits(), riscv013_fill_dm_nop(), riscv013_fill_dmi_read(), riscv013_fill_dmi_write(), riscv013_get_dmi_address(), riscv013_get_dmi_address_bits(), riscv013_get_hart_state(), riscv_address_translate(), riscv_deinit_target(), riscv_examine(), riscv_init_target(), riscv_openocd_poll(), riscv_openocd_step_impl(), riscv_reg_gdb_regno_name(), riscv_reg_impl_expose_csrs(), riscv_reg_impl_hide_csrs(), riscv_reg_impl_init_cache(), riscv_reg_impl_init_cache_entry(), riscv_reg_impl_init_vector_reg_type(), riscv_run_algorithm(), S3C24XX_DEVICE_COMMAND(), sample_memory_bus_v1(), sb_read_address(), sba_supports_access(), scratch_reserve(), select_prepped_harts(), set_dcsr_ebreak(), sh_qspi_auto_probe(), sh_qspi_cs_activate(), sh_qspi_cs_deactivate(), sh_qspi_erase(), sh_qspi_erase_sector(), sh_qspi_get_info(), sh_qspi_init(), sh_qspi_probe(), sh_qspi_read(), sh_qspi_upload_helper(), sh_qspi_wait_for_bit(), sh_qspi_write(), sh_qspi_xfer_common(), slot_offset(), stm32h7_get_info(), target_rtt_read_channel_info(), tick(), write_memory(), and write_memory_bus_v1().

◆ low

struct ublast_lowlevel low
static
Initial value:
= {
.close = ublast_ftdi_quit,
.priv = &info,
}
static int ublast_ftdi_quit(struct ublast_lowlevel *low)
static int ublast_ftdi_write(struct ublast_lowlevel *low, uint8_t *buf, int size, uint32_t *bytes_written)
static struct ublast_lowlevel_priv info
static int ublast_ftdi_read(struct ublast_lowlevel *low, uint8_t *buf, unsigned int size, uint32_t *bytes_read)
static int ublast_ftdi_init(struct ublast_lowlevel *low)

Definition at line 103 of file ublast_access_ftdi.c.

Referenced by ublast_ftdi_init(), ublast_ftdi_read(), ublast_ftdi_write(), and ublast_getftdic().