OpenOCD
swim.h File Reference

This file implements support for STMicroelectronics debug protocol SWIM (Single Wire Interface Module). More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  swim_driver
 

Macros

#define SWIM_FREQ_HIGH   800
 
#define SWIM_FREQ_LOW   363
 

Functions

int swim_read_mem (uint32_t addr, uint32_t size, uint32_t count, uint8_t *buffer)
 
int swim_reconnect (void)
 
int swim_system_reset (void)
 
int swim_write_mem (uint32_t addr, uint32_t size, uint32_t count, const uint8_t *buffer)
 

Detailed Description

This file implements support for STMicroelectronics debug protocol SWIM (Single Wire Interface Module).

Definition in file swim.h.

Macro Definition Documentation

◆ SWIM_FREQ_HIGH

#define SWIM_FREQ_HIGH   800

Definition at line 17 of file swim.h.

◆ SWIM_FREQ_LOW

#define SWIM_FREQ_LOW   363

Definition at line 16 of file swim.h.

Function Documentation

◆ swim_read_mem()

int swim_read_mem ( uint32_t  addr,
uint32_t  size,
uint32_t  count,
uint8_t *  buffer 
)

Definition at line 29 of file swim.c.

References addr, buffer, count, swim_driver::read_mem, size, and adapter_driver::swim_ops.

Referenced by stm8_adapter_read_memory(), and stm8_read_u8().

◆ swim_reconnect()

int swim_reconnect ( void  )

Definition at line 45 of file swim.c.

References swim_driver::reconnect, and adapter_driver::swim_ops.

Referenced by stm8_examine().

◆ swim_system_reset()

int swim_system_reset ( void  )

Definition at line 22 of file swim.c.

References swim_driver::srst, and adapter_driver::swim_ops.

Referenced by stm8_reset_assert().

◆ swim_write_mem()

int swim_write_mem ( uint32_t  addr,
uint32_t  size,
uint32_t  count,
const uint8_t *  buffer 
)

Definition at line 37 of file swim.c.

References addr, buffer, count, size, adapter_driver::swim_ops, and swim_driver::write_mem.

Referenced by stm8_adapter_write_memory(), and stm8_write_u8().