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];
37  uint16_t stlink_tcp_port;
38 };
39 
40 struct hl_interface {
44  const struct hl_layout *layout;
46  void *handle;
47 };
48 
50 int hl_interface_open(enum hl_transports tr);
53 int hl_interface_init_target(struct target *t);
54 int hl_interface_init_reset(void);
55 int hl_interface_override_target(const char **targetname);
56 
57 #endif /* OPENOCD_JTAG_HLA_HLA_INTERFACE_H */
int hl_interface_init_target(struct target *t)
Definition: hla_interface.c:63
int hl_interface_open(enum hl_transports tr)
Definition: hla_interface.c:40
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:37
uint16_t vid[HLA_MAX_USB_IDS+1]
List of recognised VIDs.
Definition: hla_interface.h:27
struct hl_interface_param param
Definition: hla_interface.h:42
const struct hl_layout * layout
Definition: hla_interface.h:44
Definition: target.h:116