OpenOCD
hla_interface.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * Copyright (C) 2011 by Mathias Kuester *
5  * Mathias Kuester <kesmtp@freenet.de> *
6  * *
7  * Copyright (C) 2012 by Spencer Oliver *
8  * spen@spen-soft.co.uk *
9  ***************************************************************************/
10 
11 #ifndef OPENOCD_JTAG_HLA_HLA_INTERFACE_H
12 #define OPENOCD_JTAG_HLA_HLA_INTERFACE_H
13 
15 struct target;
17 enum e_hl_transports;
19 extern const char *hl_transports[];
20 
21 #define HLA_MAX_USB_IDS 16
22 
25  const char *device_desc;
27  uint16_t vid[HLA_MAX_USB_IDS + 1];
29  uint16_t pid[HLA_MAX_USB_IDS + 1];
39  uint16_t stlink_tcp_port;
40 };
41 
42 struct hl_interface {
46  const struct hl_layout *layout;
48  void *handle;
49 };
50 
52 int hl_interface_open(enum hl_transports tr);
55 int hl_interface_init_target(struct target *t);
56 int hl_interface_init_reset(void);
57 int hl_interface_override_target(const char **targetname);
58 
59 #endif /* OPENOCD_JTAG_HLA_HLA_INTERFACE_H */
int hl_interface_init_target(struct target *t)
Definition: hla_interface.c:64
int hl_interface_open(enum hl_transports tr)
Definition: hla_interface.c:41
int hl_interface_override_target(const char **targetname)
#define HLA_MAX_USB_IDS
Definition: hla_interface.h:21
int hl_interface_init_reset(void)
hl_transports
Definition: hla_transport.h:14
const char * device_desc
Definition: hla_interface.h:25
enum hl_transports transport
Definition: hla_interface.h:31
uint16_t pid[HLA_MAX_USB_IDS+1]
List of recognised PIDs.
Definition: hla_interface.h:29
uint16_t stlink_tcp_port
Definition: hla_interface.h:39
uint16_t vid[HLA_MAX_USB_IDS+1]
List of recognised VIDs.
Definition: hla_interface.h:27
int initial_interface_speed
Initial interface clock clock speed.
Definition: hla_interface.h:35
struct hl_interface_param param
Definition: hla_interface.h:44
const struct hl_layout * layout
Definition: hla_interface.h:46
Definition: target.h:116