MCPcopy Create free account
hub / github.com/MHeironimus/ArduinoJoystickLibrary / SendReport

Method SendReport

src/DynamicHID/DynamicHID.cpp:97–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97int DynamicHID_::SendReport(uint8_t id, const void* data, int len)
98{
99 uint8_t p[len + 1];
100 p[0] = id;
101 memcpy(&p[1], data, len);
102 return USB_Send(pluggedEndpoint | TRANSFER_RELEASE, p, len + 1);
103}
104
105bool DynamicHID_::setup(USBSetup& setup)
106{

Callers 1

sendStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected