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

Function hid_get_input_report

lib/hidapi/linux/hid.c:1137–1148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1135}
1136
1137int HID_API_EXPORT HID_API_CALL hid_get_input_report(hid_device *dev, unsigned char *data, size_t length)
1138{
1139 int res;
1140
1141 register_device_error(dev, NULL);
1142
1143 res = ioctl(dev->device_handle, HIDIOCGINPUT(length), data);
1144 if (res < 0)
1145 register_device_error_format(dev, "ioctl (GINPUT): %s", strerror(errno));
1146
1147 return res;
1148}
1149
1150void HID_API_EXPORT hid_close(hid_device *dev)
1151{

Callers

nothing calls this directly

Calls 3

strerrorFunction · 0.85
register_device_errorFunction · 0.70

Tested by

no test coverage detected