Author Topic: Read from a HID device  (Read 1191 times)

lopezan

  • Newbie
  • *
  • Posts: 10
    • View Profile
Read from a HID device
« on: January 16, 2014, 04:51:58 pm »
Insted of use the event of the nrhid component, does exists a method to read from and HID device?

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Read from a HID device
« Reply #1 on: January 17, 2014, 06:45:33 am »
Hello

You can try use following methods:


    function TnrHid.ReadReport(const pcReport:pointer; const ReportSize:cardinal):boolean;
    function TnrHid.WriteReport(const pcReport: pointer; const ReportSize:cardinal):boolean;

    function TnrHid.GetInputReport(const pcReport:pointer; const ReportSize:cardinal):boolean;
    function TnrHid.SetOutputReport(const pcReport: pointer; const ReportSize:cardinal):boolean;

    function TnrHid.ReadFeature(const pcReport: pointer; const ReportSize: cardinal): boolean;
    function TnrHid.WriteFeature(const pcReport: pointer; const ReportSize: cardinal): boolean;

Roman Novgorodov
DeepSoftware llc
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.