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

Go to the source code of this file.

Functions

 COMMAND_HANDLER (hl_interface_handle_device_desc_command)
 
 COMMAND_HANDLER (hl_interface_handle_layout_command)
 
 COMMAND_HANDLER (hl_interface_handle_stlink_backend_command)
 
 COMMAND_HANDLER (hl_interface_handle_vid_pid_command)
 
 COMMAND_HANDLER (interface_handle_hla_command)
 
static int hl_interface_config_trace (bool enabled, enum tpiu_pin_protocol pin_protocol, uint32_t port_size, unsigned int *trace_freq, unsigned int traceclkin_freq, uint16_t *prescaler)
 
static int hl_interface_init (void)
 
int hl_interface_init_reset (void)
 
int hl_interface_init_target (struct target *t)
 
static int hl_interface_khz (int khz, int *jtag_speed)
 
int hl_interface_open (enum hl_transports tr)
 
int hl_interface_override_target (const char **targetname)
 
static int hl_interface_poll_trace (uint8_t *buf, size_t *size)
 
static int hl_interface_quit (void)
 
static int hl_interface_reset (int req_trst, int req_srst)
 
static int hl_interface_speed (int speed)
 
static int hl_interface_speed_div (int speed, int *khz)
 

Variables

struct adapter_driver hl_adapter_driver
 
static struct hl_interface_s hl_if
 
static const struct command_registration hl_interface_command_handlers []
 

Function Documentation

◆ COMMAND_HANDLER() [1/5]

COMMAND_HANDLER ( hl_interface_handle_device_desc_command  )

◆ COMMAND_HANDLER() [2/5]

COMMAND_HANDLER ( hl_interface_handle_layout_command  )

◆ COMMAND_HANDLER() [3/5]

COMMAND_HANDLER ( hl_interface_handle_stlink_backend_command  )

◆ COMMAND_HANDLER() [4/5]

◆ COMMAND_HANDLER() [5/5]

◆ hl_interface_config_trace()

static int hl_interface_config_trace ( bool  enabled,
enum tpiu_pin_protocol  pin_protocol,
uint32_t  port_size,
unsigned int *  trace_freq,
unsigned int  traceclkin_freq,
uint16_t *  prescaler 
)
static

◆ hl_interface_init()

static int hl_interface_init ( void  )
static

Definition at line 109 of file hla_interface.c.

References hl_if, hl_layout_init(), and LOG_DEBUG.

◆ hl_interface_init_reset()

int hl_interface_init_reset ( void  )

◆ hl_interface_init_target()

◆ hl_interface_khz()

static int hl_interface_khz ( int  khz,
int *  jtag_speed 
)
static

◆ hl_interface_open()

◆ hl_interface_override_target()

int hl_interface_override_target ( const char **  targetname)

◆ hl_interface_poll_trace()

static int hl_interface_poll_trace ( uint8_t *  buf,
size_t *  size 
)
static

◆ hl_interface_quit()

◆ hl_interface_reset()

static int hl_interface_reset ( int  req_trst,
int  req_srst 
)
static

◆ hl_interface_speed()

◆ hl_interface_speed_div()

static int hl_interface_speed_div ( int  speed,
int *  khz 
)
static

Definition at line 158 of file hla_interface.c.

References ERROR_OK.

Variable Documentation

◆ hl_adapter_driver

struct adapter_driver hl_adapter_driver
Initial value:
= {
.name = "hla",
.transports = hl_transports,
.speed = &hl_interface_speed,
.speed_div = &hl_interface_speed_div,
.config_trace = &hl_interface_config_trace,
.poll_trace = &hl_interface_poll_trace,
}
static int hl_interface_speed_div(int speed, int *khz)
static int hl_interface_speed(int speed)
static int hl_interface_init(void)
static int hl_interface_poll_trace(uint8_t *buf, size_t *size)
static const struct command_registration hl_interface_command_handlers[]
static int hl_interface_khz(int khz, int *jtag_speed)
static int hl_interface_reset(int req_trst, int req_srst)
static int hl_interface_config_trace(bool enabled, enum tpiu_pin_protocol pin_protocol, uint32_t port_size, unsigned int *trace_freq, unsigned int traceclkin_freq, uint16_t *prescaler)
static int hl_interface_quit(void)
hl_transports
Definition: hla_transport.h:14

Definition at line 308 of file hla_interface.c.

◆ hl_if

struct hl_interface_s hl_if
static
Initial value:
= {
.param = {
.device_desc = NULL,
.vid = { 0 },
.pid = { 0 },
.transport = HL_TRANSPORT_UNKNOWN,
.connect_under_reset = false,
.initial_interface_speed = -1,
.use_stlink_tcp = false,
.stlink_tcp_port = 7184,
},
.layout = NULL,
.handle = NULL,
}
@ HL_TRANSPORT_UNKNOWN
Definition: hla_transport.h:15
#define NULL
Definition: usb.h:16

Definition at line 1 of file hla_interface.c.

Referenced by COMMAND_HANDLER(), hl_dcc_read(), hl_handle_target_request(), hl_interface_config_trace(), hl_interface_init(), hl_interface_init_reset(), hl_interface_init_target(), hl_interface_khz(), hl_interface_open(), hl_interface_override_target(), hl_interface_poll_trace(), hl_interface_quit(), hl_interface_reset(), hl_interface_speed(), and hl_target_request_data().

◆ hl_interface_command_handlers

const struct command_registration hl_interface_command_handlers[]
static

Definition at line 308 of file hla_interface.c.