jaylink_device_handle is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

jaylink_device_handle struct

@struct jaylink_device_handle Opaque structure representing a handle of a device.

Syntax

struct jaylink_device_handle;
Implemented in libjaylink-internal.h:153

Fields

dev

Device instance. Read more...

buffer

Buffer for write and read operations. Note that write and read operations are always processed consecutively and therefore the same buffer can be used for both. Read more...

buffer_size

Buffer size. Read more...

read_length

Number of bytes left for the read operation. Read more...

bytes_available

Number of bytes available in the buffer to be read. Read more...

read_pos

Current read position in the buffer. Read more...

write_length

Number of bytes left to be written before the write operation will be performed. Read more...

write_pos

Current write position in the buffer. This is equivalent to the number of bytes in the buffer and used for write operations only. Read more...

sock

Socket descriptor. This field is used for devices with host interface #JAYLINK_HIF_TCP only. Read more...

References

LocationReferrerScopeText
libjaylink-internal.h:153
struct jaylink_device_handle {
jlink.c:37
static struct jaylink_device_handle *devh;
libjaylink.h:452
struct jaylink_device_handle;
device.c:570allocate_device_handle()
static struct jaylink_device_handle *allocate_device_handle(
device.c:573allocate_device_handle()
struct jaylink_device_handle *devh;
device.c:575allocate_device_handle()
devh = malloc(sizeof(struct jaylink_device_handle));
device.c:585free_device_handle()
static void free_device_handle(struct jaylink_device_handle *devh)
device.c:588free_device_handle()
free(devh);
device.c:608jaylink_open()
struct jaylink_device_handle **devh)
device.c:611jaylink_open()
struct jaylink_device_handle *handle;
device.c:646jaylink_close()
JAYLINK_API int jaylink_close(struct jaylink_device_handle *devh)
device.c:671jaylink_get_device()
struct jaylink_device_handle *devh)
device.c:701jaylink_get_firmware_version()
struct jaylink_device_handle *devh, char **version,
device.c:801jaylink_get_hardware_info()
JAYLINK_API int jaylink_get_hardware_info(struct jaylink_device_handle *devh,
device.c:880jaylink_get_counters()
JAYLINK_API int jaylink_get_counters(struct jaylink_device_handle *devh,
device.c:957jaylink_get_hardware_version()
struct jaylink_device_handle *devh,
device.c:1019jaylink_get_hardware_status()
JAYLINK_API int jaylink_get_hardware_status(struct jaylink_device_handle *devh,
device.c:1094jaylink_get_caps()
JAYLINK_API int jaylink_get_caps(struct jaylink_device_handle *devh,
device.c:1161jaylink_get_extended_caps()
JAYLINK_API int jaylink_get_extended_caps(struct jaylink_device_handle *devh,
device.c:1220jaylink_get_free_memory()
JAYLINK_API int jaylink_get_free_memory(struct jaylink_device_handle *devh,
device.c:1282jaylink_read_raw_config()
JAYLINK_API int jaylink_read_raw_config(struct jaylink_device_handle *devh,
device.c:1342jaylink_write_raw_config()
JAYLINK_API int jaylink_write_raw_config(struct jaylink_device_handle *devh,
device.c:1515jaylink_register()
JAYLINK_API int jaylink_register(struct jaylink_device_handle *devh,
device.c:1656jaylink_unregister()
JAYLINK_API int jaylink_unregister(struct jaylink_device_handle *devh,
emucom.c:93jaylink_emucom_read()
JAYLINK_API int jaylink_emucom_read(struct jaylink_device_handle *devh,
emucom.c:206jaylink_emucom_write()
JAYLINK_API int jaylink_emucom_write(struct jaylink_device_handle *devh,
fileio.c:77jaylink_file_read()
JAYLINK_API int jaylink_file_read(struct jaylink_device_handle *devh,
fileio.c:212jaylink_file_write()
JAYLINK_API int jaylink_file_write(struct jaylink_device_handle *devh,
fileio.c:338jaylink_file_get_size()
JAYLINK_API int jaylink_file_get_size(struct jaylink_device_handle *devh,
fileio.c:430jaylink_file_delete()
JAYLINK_API int jaylink_file_delete(struct jaylink_device_handle *devh,
jlink.c:37devh
static struct jaylink_device_handle *devh;
jtag.c:79jaylink_jtag_io()
JAYLINK_API int jaylink_jtag_io(struct jaylink_device_handle *devh,
jtag.c:190jaylink_jtag_clear_trst()
JAYLINK_API int jaylink_jtag_clear_trst(struct jaylink_device_handle *devh)
jtag.c:234jaylink_jtag_set_trst()
JAYLINK_API int jaylink_jtag_set_trst(struct jaylink_device_handle *devh)
jtag.c:278jaylink_jtag_clear_tms()
JAYLINK_API int jaylink_jtag_clear_tms(struct jaylink_device_handle *devh)
jtag.c:322jaylink_jtag_set_tms()
JAYLINK_API int jaylink_jtag_set_tms(struct jaylink_device_handle *devh)
jtag.c:366jaylink_jtag_clear_tck()
JAYLINK_API int jaylink_jtag_clear_tck(struct jaylink_device_handle *devh)
jtag.c:410jaylink_jtag_set_tck()
JAYLINK_API int jaylink_jtag_set_tck(struct jaylink_device_handle *devh)
libjaylink-internal.h:280transport_open()::devhtransport_open()
JAYLINK_PRIV int transport_open(struct jaylink_device_handle *devh);
libjaylink-internal.h:281transport_close()::devhtransport_close()
JAYLINK_PRIV int transport_close(struct jaylink_device_handle *devh);
libjaylink-internal.h:282transport_start_write_read()::devhtransport_start_write_read()
JAYLINK_PRIV int transport_start_write_read(struct jaylink_device_handle *devh,
libjaylink-internal.h:284transport_start_write()::devhtransport_start_write()
JAYLINK_PRIV int transport_start_write(struct jaylink_device_handle *devh,
libjaylink-internal.h:286transport_start_read()::devhtransport_start_read()
JAYLINK_PRIV int transport_start_read(struct jaylink_device_handle *devh,
libjaylink-internal.h:288transport_write()::devhtransport_write()
JAYLINK_PRIV int transport_write(struct jaylink_device_handle *devh,
libjaylink-internal.h:290transport_read()::devhtransport_read()
JAYLINK_PRIV int transport_read(struct jaylink_device_handle *devh,
libjaylink-internal.h:295transport_usb_open()::devhtransport_usb_open()
JAYLINK_PRIV int transport_usb_open(struct jaylink_device_handle *devh);
libjaylink-internal.h:296transport_usb_close()::devhtransport_usb_close()
JAYLINK_PRIV int transport_usb_close(struct jaylink_device_handle *devh);
libjaylink-internal.h:298transport_usb_start_write_read()::devhtransport_usb_start_write_read()
struct jaylink_device_handle *devh, size_t write_length,
libjaylink-internal.h:300transport_usb_start_write()::devhtransport_usb_start_write()
JAYLINK_PRIV int transport_usb_start_write(struct jaylink_device_handle *devh,
libjaylink-internal.h:302transport_usb_start_read()::devhtransport_usb_start_read()
JAYLINK_PRIV int transport_usb_start_read(struct jaylink_device_handle *devh,
libjaylink-internal.h:304transport_usb_write()::devhtransport_usb_write()
JAYLINK_PRIV int transport_usb_write(struct jaylink_device_handle *devh,
libjaylink-internal.h:306transport_usb_read()::devhtransport_usb_read()
JAYLINK_PRIV int transport_usb_read(struct jaylink_device_handle *devh,
libjaylink-internal.h:311transport_tcp_open()::devhtransport_tcp_open()
JAYLINK_PRIV int transport_tcp_open(struct jaylink_device_handle *devh);
libjaylink-internal.h:312transport_tcp_close()::devhtransport_tcp_close()
JAYLINK_PRIV int transport_tcp_close(struct jaylink_device_handle *devh);
libjaylink-internal.h:314transport_tcp_start_write_read()::devhtransport_tcp_start_write_read()
struct jaylink_device_handle *devh, size_t write_length,
libjaylink-internal.h:316transport_tcp_start_write()::devhtransport_tcp_start_write()
JAYLINK_PRIV int transport_tcp_start_write(struct jaylink_device_handle *devh,
libjaylink-internal.h:318transport_tcp_start_read()::devhtransport_tcp_start_read()
JAYLINK_PRIV int transport_tcp_start_read(struct jaylink_device_handle *devh,
libjaylink-internal.h:320transport_tcp_write()::devhtransport_tcp_write()
JAYLINK_PRIV int transport_tcp_write(struct jaylink_device_handle *devh,
libjaylink-internal.h:322transport_tcp_read()::devhtransport_tcp_read()
JAYLINK_PRIV int transport_tcp_read(struct jaylink_device_handle *devh,
libjaylink.h:485jaylink_c2_read_address()::devhjaylink_c2_read_address()
JAYLINK_API int jaylink_c2_read_address(struct jaylink_device_handle *devh,
libjaylink.h:487jaylink_c2_write_address()::devhjaylink_c2_write_address()
JAYLINK_API int jaylink_c2_write_address(struct jaylink_device_handle *devh,
libjaylink.h:489jaylink_c2_read_data()::devhjaylink_c2_read_data()
JAYLINK_API int jaylink_c2_read_data(struct jaylink_device_handle *devh,
libjaylink.h:491jaylink_c2_write_data()::devhjaylink_c2_write_data()
JAYLINK_API int jaylink_c2_write_data(struct jaylink_device_handle *devh,
libjaylink.h:526jaylink_open()::devhjaylink_open()
struct jaylink_device_handle **devh);
libjaylink.h:527jaylink_close()::devhjaylink_close()
JAYLINK_API int jaylink_close(struct jaylink_device_handle *devh);
libjaylink.h:529jaylink_get_device()::devhjaylink_get_device()
struct jaylink_device_handle *devh);
libjaylink.h:531jaylink_get_firmware_version()::devhjaylink_get_firmware_version()
struct jaylink_device_handle *devh, char **version,
libjaylink.h:533jaylink_get_hardware_info()::devhjaylink_get_hardware_info()
JAYLINK_API int jaylink_get_hardware_info(struct jaylink_device_handle *devh,
libjaylink.h:535jaylink_get_counters()::devhjaylink_get_counters()
JAYLINK_API int jaylink_get_counters(struct jaylink_device_handle *devh,
libjaylink.h:538jaylink_get_hardware_version()::devhjaylink_get_hardware_version()
struct jaylink_device_handle *devh,
libjaylink.h:540jaylink_get_hardware_status()::devhjaylink_get_hardware_status()
JAYLINK_API int jaylink_get_hardware_status(struct jaylink_device_handle *devh,
libjaylink.h:542jaylink_get_caps()::devhjaylink_get_caps()
JAYLINK_API int jaylink_get_caps(struct jaylink_device_handle *devh,
libjaylink.h:544jaylink_get_extended_caps()::devhjaylink_get_extended_caps()
JAYLINK_API int jaylink_get_extended_caps(struct jaylink_device_handle *devh,
libjaylink.h:546jaylink_get_free_memory()::devhjaylink_get_free_memory()
JAYLINK_API int jaylink_get_free_memory(struct jaylink_device_handle *devh,
libjaylink.h:548jaylink_read_raw_config()::devhjaylink_read_raw_config()
JAYLINK_API int jaylink_read_raw_config(struct jaylink_device_handle *devh,
libjaylink.h:550jaylink_write_raw_config()::devhjaylink_write_raw_config()
JAYLINK_API int jaylink_write_raw_config(struct jaylink_device_handle *devh,
libjaylink.h:552jaylink_register()::devhjaylink_register()
JAYLINK_API int jaylink_register(struct jaylink_device_handle *devh,
libjaylink.h:555jaylink_unregister()::devhjaylink_unregister()
JAYLINK_API int jaylink_unregister(struct jaylink_device_handle *devh,
libjaylink.h:566jaylink_emucom_read()::devhjaylink_emucom_read()
JAYLINK_API int jaylink_emucom_read(struct jaylink_device_handle *devh,
libjaylink.h:568jaylink_emucom_write()::devhjaylink_emucom_write()
JAYLINK_API int jaylink_emucom_write(struct jaylink_device_handle *devh,
libjaylink.h:578jaylink_file_read()::devhjaylink_file_read()
JAYLINK_API int jaylink_file_read(struct jaylink_device_handle *devh,
libjaylink.h:581jaylink_file_write()::devhjaylink_file_write()
JAYLINK_API int jaylink_file_write(struct jaylink_device_handle *devh,
libjaylink.h:584jaylink_file_get_size()::devhjaylink_file_get_size()
JAYLINK_API int jaylink_file_get_size(struct jaylink_device_handle *devh,
libjaylink.h:586jaylink_file_delete()::devhjaylink_file_delete()
JAYLINK_API int jaylink_file_delete(struct jaylink_device_handle *devh,
libjaylink.h:591jaylink_jtag_io()::devhjaylink_jtag_io()
JAYLINK_API int jaylink_jtag_io(struct jaylink_device_handle *devh,
libjaylink.h:594jaylink_jtag_clear_trst()::devhjaylink_jtag_clear_trst()
JAYLINK_API int jaylink_jtag_clear_trst(struct jaylink_device_handle *devh);
libjaylink.h:595jaylink_jtag_set_trst()::devhjaylink_jtag_set_trst()
JAYLINK_API int jaylink_jtag_set_trst(struct jaylink_device_handle *devh);
libjaylink.h:596jaylink_jtag_clear_tms()::devhjaylink_jtag_clear_tms()
JAYLINK_API int jaylink_jtag_clear_tms(struct jaylink_device_handle *devh);
libjaylink.h:597jaylink_jtag_set_tms()::devhjaylink_jtag_set_tms()
JAYLINK_API int jaylink_jtag_set_tms(struct jaylink_device_handle *devh);
libjaylink.h:598jaylink_jtag_clear_tck()::devhjaylink_jtag_clear_tck()
JAYLINK_API int jaylink_jtag_clear_tck(struct jaylink_device_handle *devh);
libjaylink.h:599jaylink_jtag_set_tck()::devhjaylink_jtag_set_tck()
JAYLINK_API int jaylink_jtag_set_tck(struct jaylink_device_handle *devh);
libjaylink.h:616jaylink_spi_io()::devhjaylink_spi_io()
JAYLINK_API int jaylink_spi_io(struct jaylink_device_handle *devh,
libjaylink.h:631jaylink_swd_io()::devhjaylink_swd_io()
JAYLINK_API int jaylink_swd_io(struct jaylink_device_handle *devh,
libjaylink.h:637jaylink_swo_start()::devhjaylink_swo_start()
JAYLINK_API int jaylink_swo_start(struct jaylink_device_handle *devh,
libjaylink.h:639jaylink_swo_stop()::devhjaylink_swo_stop()
JAYLINK_API int jaylink_swo_stop(struct jaylink_device_handle *devh);
libjaylink.h:640jaylink_swo_read()::devhjaylink_swo_read()
JAYLINK_API int jaylink_swo_read(struct jaylink_device_handle *devh,
libjaylink.h:642jaylink_swo_get_speeds()::devhjaylink_swo_get_speeds()
JAYLINK_API int jaylink_swo_get_speeds(struct jaylink_device_handle *devh,
libjaylink.h:647jaylink_set_speed()::devhjaylink_set_speed()
JAYLINK_API int jaylink_set_speed(struct jaylink_device_handle *devh,
libjaylink.h:649jaylink_get_speeds()::devhjaylink_get_speeds()
JAYLINK_API int jaylink_get_speeds(struct jaylink_device_handle *devh,
libjaylink.h:651jaylink_select_interface()::devhjaylink_select_interface()
JAYLINK_API int jaylink_select_interface(struct jaylink_device_handle *devh,
libjaylink.h:655jaylink_get_available_interfaces()::devhjaylink_get_available_interfaces()
struct jaylink_device_handle *devh, uint32_t *ifaces);
libjaylink.h:657jaylink_get_selected_interface()::devhjaylink_get_selected_interface()
struct jaylink_device_handle *devh,
libjaylink.h:659jaylink_clear_reset()::devhjaylink_clear_reset()
JAYLINK_API int jaylink_clear_reset(struct jaylink_device_handle *devh);
libjaylink.h:660jaylink_set_reset()::devhjaylink_set_reset()
JAYLINK_API int jaylink_set_reset(struct jaylink_device_handle *devh);
libjaylink.h:661jaylink_set_target_power()::devhjaylink_set_target_power()
JAYLINK_API int jaylink_set_target_power(struct jaylink_device_handle *devh,
swd.c:71jaylink_swd_io()
JAYLINK_API int jaylink_swd_io(struct jaylink_device_handle *devh,
swo.c:71jaylink_swo_start()
JAYLINK_API int jaylink_swo_start(struct jaylink_device_handle *devh,
swo.c:156jaylink_swo_stop()
JAYLINK_API int jaylink_swo_stop(struct jaylink_device_handle *devh)
swo.c:230jaylink_swo_read()
JAYLINK_API int jaylink_swo_read(struct jaylink_device_handle *devh,
swo.c:345jaylink_swo_get_speeds()
JAYLINK_API int jaylink_swo_get_speeds(struct jaylink_device_handle *devh,
target.c:63jaylink_set_speed()
JAYLINK_API int jaylink_set_speed(struct jaylink_device_handle *devh,
target.c:128jaylink_get_speeds()
JAYLINK_API int jaylink_get_speeds(struct jaylink_device_handle *devh,
target.c:203jaylink_select_interface()
JAYLINK_API int jaylink_select_interface(struct jaylink_device_handle *devh,
target.c:287jaylink_get_available_interfaces()
struct jaylink_device_handle *devh, uint32_t *ifaces)
target.c:353jaylink_get_selected_interface()
struct jaylink_device_handle *devh,
target.c:409jaylink_clear_reset()
JAYLINK_API int jaylink_clear_reset(struct jaylink_device_handle *devh)
target.c:453jaylink_set_reset()
JAYLINK_API int jaylink_set_reset(struct jaylink_device_handle *devh)
target.c:505jaylink_set_target_power()
JAYLINK_API int jaylink_set_target_power(struct jaylink_device_handle *devh,
transport.c:49transport_open()
JAYLINK_PRIV int transport_open(struct jaylink_device_handle *devh)
transport.c:82transport_close()
JAYLINK_PRIV int transport_close(struct jaylink_device_handle *devh)
transport.c:119transport_start_write()
JAYLINK_PRIV int transport_start_write(struct jaylink_device_handle *devh,
transport.c:155transport_start_read()
JAYLINK_PRIV int transport_start_read(struct jaylink_device_handle *devh,
transport.c:198transport_start_write_read()
JAYLINK_PRIV int transport_start_write_read(struct jaylink_device_handle *devh,
transport.c:246transport_write()
JAYLINK_PRIV int transport_write(struct jaylink_device_handle *devh,
transport.c:288transport_read()
JAYLINK_PRIV int transport_read(struct jaylink_device_handle *devh,
transport_tcp.c:77initialize_handle()
static int initialize_handle(struct jaylink_device_handle *devh)
transport_tcp.c:101cleanup_handle()
static void cleanup_handle(struct jaylink_device_handle *devh)
transport_tcp.c:106_recv()
static int _recv(struct jaylink_device_handle *devh, uint8_t *buffer,
transport_tcp.c:135handle_server_hello()
static int handle_server_hello(struct jaylink_device_handle *devh)
transport_tcp.c:182set_socket_timeouts()
static int set_socket_timeouts(struct jaylink_device_handle *devh)
transport_tcp.c:229transport_tcp_open()
JAYLINK_PRIV int transport_tcp_open(struct jaylink_device_handle *devh)
transport_tcp.c:317transport_tcp_close()
JAYLINK_PRIV int transport_tcp_close(struct jaylink_device_handle *devh)
transport_tcp.c:333transport_tcp_start_write()
JAYLINK_PRIV int transport_tcp_start_write(struct jaylink_device_handle *devh,
transport_tcp.c:364transport_tcp_start_read()
JAYLINK_PRIV int transport_tcp_start_read(struct jaylink_device_handle *devh,
transport_tcp.c:391transport_tcp_start_write_read()
struct jaylink_device_handle *devh, size_t write_length,
transport_tcp.c:434_send()
static int _send(struct jaylink_device_handle *devh, const uint8_t *buffer,
transport_tcp.c:459adjust_buffer()
static bool adjust_buffer(struct jaylink_device_handle *devh, size_t size)
transport_tcp.c:490transport_tcp_write()
JAYLINK_PRIV int transport_tcp_write(struct jaylink_device_handle *devh,
transport_tcp.c:561transport_tcp_read()
JAYLINK_PRIV int transport_tcp_read(struct jaylink_device_handle *devh,
transport_usb.c:46initialize_handle()
static int initialize_handle(struct jaylink_device_handle *devh)
transport_usb.c:148cleanup_handle()
static void cleanup_handle(struct jaylink_device_handle *devh)
transport_usb.c:153transport_usb_open()
JAYLINK_PRIV int transport_usb_open(struct jaylink_device_handle *devh)
transport_usb.c:200transport_usb_close()
JAYLINK_PRIV int transport_usb_close(struct jaylink_device_handle *devh)
transport_usb.c:229transport_usb_start_write()
JAYLINK_PRIV int transport_usb_start_write(struct jaylink_device_handle *devh,
transport_usb.c:256transport_usb_start_read()
JAYLINK_PRIV int transport_usb_start_read(struct jaylink_device_handle *devh,
transport_usb.c:283transport_usb_start_write_read()
struct jaylink_device_handle *devh, size_t write_length,
transport_usb.c:323usb_recv()
static int usb_recv(struct jaylink_device_handle *devh, uint8_t *buffer,
transport_usb.c:367adjust_buffer()
static bool adjust_buffer(struct jaylink_device_handle *devh, size_t size)
transport_usb.c:398usb_send()
static int usb_send(struct jaylink_device_handle *devh, const uint8_t *buffer,
transport_usb.c:441transport_usb_write()
JAYLINK_PRIV int transport_usb_write(struct jaylink_device_handle *devh,
transport_usb.c:526transport_usb_read()
JAYLINK_PRIV int transport_usb_read(struct jaylink_device_handle *devh,

Type Use

Variables of jaylink_device_handle type
jaylink_open()::devh
jaylink_close()::devh
jaylink_get_firmware_version()::devh
jaylink_get_hardware_version()::devh
jaylink_get_hardware_status()::devh
jaylink_get_caps()::devh
jaylink_get_extended_caps()::devh
jaylink_get_free_memory()::devh
jaylink_read_raw_config()::devh
jaylink_write_raw_config()::devh
jaylink_register()::devh
jaylink_unregister()::devh
jaylink_emucom_read()::devh
jaylink_emucom_write()::devh
jaylink_jtag_io()::devh
jaylink_jtag_clear_trst()::devh
jaylink_jtag_set_trst()::devh
jaylink_swd_io()::devh
jaylink_swo_stop()::devh
jaylink_swo_read()::devh
jaylink_set_speed()::devh
jaylink_get_speeds()::devh
jaylink_select_interface()::devh
jaylink_get_available_interfaces()::devh
jaylink_clear_reset()::devh
jaylink_set_reset()::devh
jaylink_set_target_power()::devh
allocate_device_handle()::devh
jaylink_open()
jaylink_open()::handle
all items filtered out
jaylink_device_handle
Allocators of jaylink_device_handle
Deletors of jaylink_device_handle
all items filtered out
jaylink_device_handle
all items filtered out