MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / hid_get_feature_report

Function hid_get_feature_report

lib/hidapi/linux/hid.c:1124–1135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1122}
1123
1124int HID_API_EXPORT hid_get_feature_report(hid_device *dev, unsigned char *data, size_t length)
1125{
1126 int res;
1127
1128 register_device_error(dev, NULL);
1129
1130 res = ioctl(dev->device_handle, HIDIOCGFEATURE(length), data);
1131 if (res < 0)
1132 register_device_error_format(dev, "ioctl (GFEATURE): %s", strerror(errno));
1133
1134 return res;
1135}
1136
1137int HID_API_EXPORT HID_API_CALL hid_get_input_report(hid_device *dev, unsigned char *data, size_t length)
1138{

Callers

nothing calls this directly

Calls 3

strerrorFunction · 0.85
register_device_errorFunction · 0.70

Tested by

no test coverage detected