package hidapi-lwt

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 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;
}
type t = Hidapi.t
val init : unit -> unit
val deinit : unit -> unit
val enumerate : ?vendor_id:int -> ?product_id:int -> unit -> Hidapi.device_info list Lwt.t
val open_id : vendor_id:int -> product_id:int -> Hidapi.t option Lwt.t
val open_path : string -> Hidapi.t option Lwt.t
val open_id_exn : vendor_id:int -> product_id:int -> Hidapi.t Lwt.t
val open_path_exn : string -> Hidapi.t Lwt.t
val write : Hidapi.t -> ?len:int -> Bigstring.t -> (int, string) Stdlib.result Lwt.t
val read : ?timeout:int -> Hidapi.t -> Bigstring.t -> int -> (int, string) Stdlib.result Lwt.t
val set_nonblocking : t -> bool -> (unit, string) Stdlib.result
val set_nonblocking_exn : t -> bool -> unit
val close : Hidapi.t -> unit Lwt.t
OCaml

Innovation. Community. Security.