package hidapi-lwt

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Hidapi_lwtSource

Sourcetype device_info = Hidapi.device_info = {
  1. path : string;
  2. vendor_id : int;
  3. product_id : int;
  4. serial_number : string option;
  5. release_number : int;
  6. manufacturer_string : string option;
  7. product_string : string option;
  8. usage_page : int;
  9. usage : int;
  10. interface_number : int;
}
Sourceval init : unit -> unit
Sourceval deinit : unit -> unit
Sourceval enumerate : ?vendor_id:int -> ?product_id:int -> unit -> Hidapi.device_info list Lwt.t
Sourceval open_id : vendor_id:int -> product_id:int -> Hidapi.t option Lwt.t
Sourceval open_path : string -> Hidapi.t option Lwt.t
Sourceval open_id_exn : vendor_id:int -> product_id:int -> Hidapi.t Lwt.t
Sourceval open_path_exn : string -> Hidapi.t Lwt.t
Sourceval write : Hidapi.t -> ?len:int -> Bigstring.t -> (int, string) result Lwt.t
Sourceval read : ?timeout:int -> Hidapi.t -> Bigstring.t -> int -> (int, string) result Lwt.t
Sourceval set_nonblocking : t -> bool -> (unit, string) result
Sourceval set_nonblocking_exn : t -> bool -> unit
Sourceval close : Hidapi.t -> unit Lwt.t
OCaml

Innovation. Community. Security.