OpenOCD
swim_driver Struct Reference

Data Fields

int(* read_mem )(uint32_t addr, uint32_t size, uint32_t count, uint8_t *buffer)
 Read target memory through ROTF (read on-the-fly) command. More...
 
int(* reconnect )(void)
 Reconnect to the target. More...
 
int(* srst )(void)
 Send SRST (system reset) command to target. More...
 
int(* write_mem )(uint32_t addr, uint32_t size, uint32_t count, const uint8_t *buffer)
 Write target memory through WOTF (write on-the-fly) command. More...
 

Detailed Description

Definition at line 19 of file swim.h.

Field Documentation

◆ read_mem

int(* swim_driver::read_mem) (uint32_t addr, uint32_t size, uint32_t count, uint8_t *buffer)

Read target memory through ROTF (read on-the-fly) command.

Parameters
addrStart address to read data from target memory.
sizeSize in bytes of data units, 1, 2 or 4.
countNumber of units (size units, not bytes) to read.
bufferData buffer to receive data.
Returns
ERROR_OK on success, else a fault code.

Definition at line 36 of file swim.h.

Referenced by swim_read_mem().

◆ reconnect

int(* swim_driver::reconnect) (void)

Reconnect to the target.

Should be reworked to be more generic and not linked to current implementation in stlink driver.

Returns
ERROR_OK on success, else a fault code.

Definition at line 58 of file swim.h.

Referenced by swim_reconnect().

◆ srst

int(* swim_driver::srst) (void)

Send SRST (system reset) command to target.

Returns
ERROR_OK on success, else a fault code.

Definition at line 25 of file swim.h.

Referenced by swim_system_reset().

◆ write_mem

int(* swim_driver::write_mem) (uint32_t addr, uint32_t size, uint32_t count, const uint8_t *buffer)

Write target memory through WOTF (write on-the-fly) command.

Parameters
addrStart address to write data to target memory.
sizeSize in bytes of data units, 1, 2 or 4.
countNumber of units (size units, not bytes) to write.
bufferData buffer to write.
Returns
ERROR_OK on success, else a fault code.

Definition at line 48 of file swim.h.

Referenced by swim_write_mem().


The documentation for this struct was generated from the following file: