Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type device_info = Hidapi.device_info = {
path : string;
vendor_id : int;
product_id : int;
serial_number : string option;
release_number : int;
manufacturer_string : string option;
product_string : string option;
usage_page : int;
usage : int;
interface_number : int;
}
type t = Hidapi.t
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