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

Function hid_write

lib/hidapi/mac/hid.c:1179–1182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1177}
1178
1179int HID_API_EXPORT hid_write(hid_device *dev, const unsigned char *data, size_t length)
1180{
1181 return set_report(dev, kIOHIDReportTypeOutput, data, length);
1182}
1183
1184/* Helper function, so that this isn't duplicated in hid_read(). */
1185static int return_data(hid_device *dev, unsigned char *data, size_t length)

Callers 3

mainFunction · 0.50
onSendOutputReportMethod · 0.50
writeMethod · 0.50

Calls 1

set_reportFunction · 0.85

Tested by 2

mainFunction · 0.40
onSendOutputReportMethod · 0.40