• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 

Read from a HID device

Started by lopezan, January 16, 2014, 02:51:58 pm

Previous topic - Next topic

lopezan

Insted of use the event of the nrhid component, does exists a method to read from and HID device?

Roman Novgorodov

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.