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(), cache_check(), cache_clean(), cache_get32(), cache_invalidate(), cache_set32(), cache_write(), 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(), dmi_scan(), examine(), examine_progbuf(), execute_abstract_command(), execute_resume(), faux_erase(), faux_write(), FLASH_BANK_COMMAND_HANDLER(), get_dm(), get_info(), get_register(), get_target_type(), 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_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_read_tselect(), maybe_write_tselect(), mem_should_skip_sysbus(), msp432_probe(), NAND_DEVICE_COMMAND_HANDLER(), read_bits(), read_memory(), read_memory_abstract(), read_memory_bus_v1(), read_memory_progbuf_inner(), read_remote_csr(), register_read(), register_read_abstract(), register_write(), register_write_abstract(), riscv013_data_bits(), riscv013_dmi_write_u64_bits(), riscv013_fill_dmi_nop_u64(), riscv013_fill_dmi_read_u64(), riscv013_fill_dmi_write_u64(), riscv_address_translate(), riscv_deinit_target(), riscv_examine(), riscv_init_registers(), riscv_init_target(), riscv_run_algorithm(), S3C24XX_DEVICE_COMMAND(), sample_memory_bus_v1(), sb_read_address(), sb_write_address(), sba_supports_access(), scratch_reserve(), select_prepped_harts(), 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(), stm32x_get_info(), target_rtt_read_channel_info(), wait_for_idle(), write_memory(), write_memory_abstract(), write_memory_bus_v1(), and write_memory_progbuf().

◆ 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().