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

Function hid_send_feature_report

lib/hidapi/linux/hid.c:1111–1122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1109
1110
1111int HID_API_EXPORT hid_send_feature_report(hid_device *dev, const unsigned char *data, size_t length)
1112{
1113 int res;
1114
1115 register_device_error(dev, NULL);
1116
1117 res = ioctl(dev->device_handle, HIDIOCSFEATURE(length), data);
1118 if (res < 0)
1119 register_device_error_format(dev, "ioctl (SFEATURE): %s", strerror(errno));
1120
1121 return res;
1122}
1123
1124int HID_API_EXPORT hid_get_feature_report(hid_device *dev, unsigned char *data, size_t length)
1125{

Callers

nothing calls this directly

Calls 3

strerrorFunction · 0.85
register_device_errorFunction · 0.70

Tested by

no test coverage detected