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 write : Hidapi.t -> ?len:int -> Bigstring.t -> (int, string) result Lwt.t
val read :
?timeout:int ->
Hidapi.t ->
Bigstring.t ->
int ->
(int, string) result Lwt.t
val set_nonblocking_exn : t -> bool -> unit