![]() |
SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <stdio.h>#include <string.h>#include <stdlib.h>#include <ctype.h>#include <locale.h>#include <errno.h>#include <unistd.h>#include <sys/types.h>#include <sys/stat.h>#include <sys/ioctl.h>#include <sys/utsname.h>#include <fcntl.h>#include <pthread.h>#include <wchar.h>#include <libusb.h>#include "iconv.h"#include "../fcdhid/hidapi.h"
Include dependency graph for hid-libusb.c:Go to the source code of this file.
Classes | |
| struct | input_report |
| struct | hid_device_ |
| struct | lang_map_entry |
Macros | |
| #define | _GNU_SOURCE /* needed for wcsdup() before glibc 2.10 */ |
| #define | LOG(...) do {} while (0) |
| #define | DETACH_KERNEL_DRIVER |
| #define | LANG(name, code, usb_code) { name, code, usb_code } |
Functions | |
| uint16_t | get_usb_code_for_current_locale (void) |
| int HID_API_EXPORT | hid_init (void) |
| Initialize the HIDAPI library. More... | |
| int HID_API_EXPORT | hid_exit (void) |
| Finalize the HIDAPI library. More... | |
| struct hid_device_info HID_API_EXPORT * | hid_enumerate (unsigned short vendor_id, unsigned short product_id) |
| Enumerate the HID Devices. More... | |
| void HID_API_EXPORT | hid_free_enumeration (struct hid_device_info *devs) |
| Free an enumeration Linked List. More... | |
| hid_device * | hid_open (unsigned short vendor_id, unsigned short product_id, const wchar_t *serial_number) |
| Open a HID device using a Vendor ID (VID), Product ID (PID) and optionally a serial number. More... | |
| hid_device *HID_API_EXPORT | hid_open_path (const char *path) |
| Open a HID device by its path name. More... | |
| int HID_API_EXPORT | hid_write (hid_device *dev, const unsigned char *data, size_t length) |
| Write an Output report to a HID device. More... | |
| int HID_API_EXPORT | hid_read_timeout (hid_device *dev, unsigned char *data, size_t length, int milliseconds) |
| Read an Input report from a HID device with timeout. More... | |
| int HID_API_EXPORT | hid_read (hid_device *dev, unsigned char *data, size_t length) |
| Read an Input report from a HID device. More... | |
| int HID_API_EXPORT | hid_set_nonblocking (hid_device *dev, int nonblock) |
| Set the device handle to be non-blocking. More... | |
| int HID_API_EXPORT | hid_send_feature_report (hid_device *dev, const unsigned char *data, size_t length) |
| Send a Feature report to the device. More... | |
| int HID_API_EXPORT | hid_get_feature_report (hid_device *dev, unsigned char *data, size_t length) |
| Get a feature report from a HID device. More... | |
| void HID_API_EXPORT | hid_close (hid_device *dev) |
| Close a HID device. More... | |
| int HID_API_EXPORT_CALL | hid_get_manufacturer_string (hid_device *dev, wchar_t *string, size_t maxlen) |
| Get The Manufacturer String from a HID device. More... | |
| int HID_API_EXPORT_CALL | hid_get_product_string (hid_device *dev, wchar_t *string, size_t maxlen) |
| Get The Product String from a HID device. More... | |
| int HID_API_EXPORT_CALL | hid_get_serial_number_string (hid_device *dev, wchar_t *string, size_t maxlen) |
| Get The Serial Number String from a HID device. More... | |
| int HID_API_EXPORT_CALL | hid_get_indexed_string (hid_device *dev, int string_index, wchar_t *string, size_t maxlen) |
| Get a string from a HID device, based on its string index. More... | |
| HID_API_EXPORT const wchar_t *HID_API_CALL | hid_error (hid_device *dev) |
| Get a string describing the last error which occurred. More... | |
| #define _GNU_SOURCE /* needed for wcsdup() before glibc 2.10 */ |
Definition at line 26 of file hid-libusb.c.
| #define DETACH_KERNEL_DRIVER |
Definition at line 65 of file hid-libusb.c.
| #define LANG | ( | name, | |
| code, | |||
| usb_code | |||
| ) | { name, code, usb_code } |
Definition at line 1233 of file hid-libusb.c.
| #define LOG | ( | ... | ) | do {} while (0) |
Definition at line 61 of file hid-libusb.c.
Referenced by hid_read_timeout().
| uint16_t get_usb_code_for_current_locale | ( | void | ) |
Definition at line 1371 of file hid-libusb.c.
1.8.13