120 size_t length,
bool has_command)
199 size_t write_length,
size_t read_length,
bool has_command)
207 read_length, has_command);
212 read_length, has_command);
JAYLINK_PRIV int transport_write(struct jaylink_device_handle *devh, const uint8_t *buffer, size_t length)
Write data to a device.
JAYLINK_PRIV int transport_usb_open(struct jaylink_device_handle *devh)
JAYLINK_PRIV int transport_tcp_start_write(struct jaylink_device_handle *devh, size_t length, bool has_command)
JAYLINK_PRIV int transport_start_write_read(struct jaylink_device_handle *devh, size_t write_length, size_t read_length, bool has_command)
Start a write and read operation for a device.
JAYLINK_PRIV int transport_start_read(struct jaylink_device_handle *devh, size_t length)
Start a read operation for a device.
JAYLINK_PRIV void log_err(const struct jaylink_context *ctx, const char *format,...)
JAYLINK_PRIV int transport_start_write(struct jaylink_device_handle *devh, size_t length, bool has_command)
Start a write operation for a device.
JAYLINK_PRIV int transport_tcp_open(struct jaylink_device_handle *devh)
JAYLINK_PRIV int transport_usb_start_write_read(struct jaylink_device_handle *devh, size_t write_length, size_t read_length, bool has_command)
Universal Serial Bus (USB).
JAYLINK_PRIV int transport_usb_read(struct jaylink_device_handle *devh, uint8_t *buffer, size_t length)
#define JAYLINK_PRIV
Macro to mark private libjaylink symbol.
JAYLINK_PRIV int transport_tcp_read(struct jaylink_device_handle *devh, uint8_t *buffer, size_t length)
JAYLINK_PRIV int transport_tcp_start_read(struct jaylink_device_handle *devh, size_t length)
Internal libjaylink header file.
JAYLINK_PRIV int transport_close(struct jaylink_device_handle *devh)
Close a device.
JAYLINK_PRIV int transport_tcp_start_write_read(struct jaylink_device_handle *devh, size_t write_length, size_t read_length, bool has_command)
struct jaylink_context * ctx
libjaylink context.
Transmission Control Protocol (TCP).
JAYLINK_PRIV int transport_usb_start_read(struct jaylink_device_handle *devh, size_t length)
JAYLINK_PRIV int transport_tcp_write(struct jaylink_device_handle *devh, const uint8_t *buffer, size_t length)
enum jaylink_host_interface iface
Host interface.
JAYLINK_PRIV int transport_usb_start_write(struct jaylink_device_handle *devh, size_t length, bool has_command)
Opaque structure representing a handle of a device.
JAYLINK_PRIV int transport_open(struct jaylink_device_handle *devh)
Open a device.
Public libjaylink header file to be used by applications.
JAYLINK_PRIV int transport_tcp_close(struct jaylink_device_handle *devh)
JAYLINK_PRIV int transport_usb_write(struct jaylink_device_handle *devh, const uint8_t *buffer, size_t length)
static struct jaylink_device_handle * devh
JAYLINK_PRIV int transport_usb_close(struct jaylink_device_handle *devh)
struct jaylink_device * dev
Device instance.
JAYLINK_PRIV int transport_read(struct jaylink_device_handle *devh, uint8_t *buffer, size_t length)
Read data from a device.