MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / GetFeatureReport

Method GetFeatureReport

cpp/src/platform/HidController.cpp:507–522  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Read bytes from the specified HID feature report -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

505// Read bytes from the specified HID feature report
506//-----------------------------------------------------------------------------
507int HidController::GetFeatureReport
508(
509 uint32 _length,
510 uint8 _reportId,
511 uint8* _buffer
512)
513{
514 int result;
515 _buffer[0] = _reportId;
516 result = hid_get_feature_report(m_hHidController, _buffer, _length);
517 if (result < 0)
518 {
519 Log::Write( LogLevel_Info, "Error: HID GetFeatureReport on ID 0x%hx returned (0x%.8x)", _reportId, result );
520 }
521 return result;
522}
523
524//-----------------------------------------------------------------------------
525// <HidController::SendFeatureReport>

Callers

nothing calls this directly

Calls 2

WriteFunction · 0.85
hid_get_feature_reportFunction · 0.50

Tested by

no test coverage detected