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

Go to the source code of this file.

Functions

 FLASH_BANK_COMMAND_HANDLER (virtual_flash_bank_command)
 
static int virtual_auto_probe (struct flash_bank *bank)
 
static int virtual_blank_check (struct flash_bank *bank)
 
static int virtual_erase (struct flash_bank *bank, unsigned int first, unsigned int last)
 
static int virtual_flash_read (struct flash_bank *bank, uint8_t *buffer, uint32_t offset, uint32_t count)
 
static struct flash_bankvirtual_get_master_bank (struct flash_bank *bank)
 
static int virtual_info (struct flash_bank *bank, struct command_invocation *cmd)
 
static int virtual_probe (struct flash_bank *bank)
 
static int virtual_protect (struct flash_bank *bank, int set, unsigned int first, unsigned int last)
 
static int virtual_protect_check (struct flash_bank *bank)
 
static void virtual_update_bank_info (struct flash_bank *bank)
 
static int virtual_write (struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count)
 

Variables

const struct flash_driver virtual_flash
 

Function Documentation

◆ FLASH_BANK_COMMAND_HANDLER()

FLASH_BANK_COMMAND_HANDLER ( virtual_flash_bank_command  )

◆ virtual_auto_probe()

static int virtual_auto_probe ( struct flash_bank bank)
static

◆ virtual_blank_check()

static int virtual_blank_check ( struct flash_bank bank)
static

◆ virtual_erase()

static int virtual_erase ( struct flash_bank bank,
unsigned int  first,
unsigned int  last 
)
static

◆ virtual_flash_read()

static int virtual_flash_read ( struct flash_bank bank,
uint8_t *  buffer,
uint32_t  offset,
uint32_t  count 
)
static

Definition at line 193 of file virtual.c.

◆ virtual_get_master_bank()

◆ virtual_info()

static int virtual_info ( struct flash_bank bank,
struct command_invocation cmd 
)
static

◆ virtual_probe()

static int virtual_probe ( struct flash_bank bank)
static

◆ virtual_protect()

static int virtual_protect ( struct flash_bank bank,
int  set,
unsigned int  first,
unsigned int  last 
)
static

◆ virtual_protect_check()

static int virtual_protect_check ( struct flash_bank bank)
static

◆ virtual_update_bank_info()

◆ virtual_write()

static int virtual_write ( struct flash_bank bank,
const uint8_t *  buffer,
uint32_t  offset,
uint32_t  count 
)
static

Variable Documentation

◆ virtual_flash

const struct flash_driver virtual_flash
Initial value:
= {
.name = "virtual",
.flash_bank_command = virtual_flash_bank_command,
.erase = virtual_erase,
.protect = virtual_protect,
.write = virtual_write,
.probe = virtual_probe,
.auto_probe = virtual_auto_probe,
.erase_check = virtual_blank_check,
.protect_check = virtual_protect_check,
.info = virtual_info,
.free_driver_priv = default_flash_free_driver_priv,
}
void default_flash_free_driver_priv(struct flash_bank *bank)
Deallocates bank->driver_priv.
static int virtual_protect_check(struct flash_bank *bank)
Definition: virtual.c:78
static int virtual_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count)
Definition: virtual.c:109
static int virtual_protect(struct flash_bank *bank, int set, unsigned int first, unsigned int last)
Definition: virtual.c:67
static int virtual_probe(struct flash_bank *bank)
Definition: virtual.c:126
static int virtual_info(struct flash_bank *bank, struct command_invocation *cmd)
Definition: virtual.c:164
static int virtual_flash_read(struct flash_bank *bank, uint8_t *buffer, uint32_t offset, uint32_t count)
Definition: virtual.c:193
static int virtual_auto_probe(struct flash_bank *bank)
Definition: virtual.c:145
static int virtual_blank_check(struct flash_bank *bank)
Definition: virtual.c:177
static int virtual_erase(struct flash_bank *bank, unsigned int first, unsigned int last)
Definition: virtual.c:92

Definition at line 193 of file virtual.c.