Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
exception Error of error * string
val error_message : error -> string
val init : unit Lazy.t
val get_device_list : unit -> device list
val get_bus_number : device -> int
val get_device_address : device -> int
val close : handle -> unit
val open_device_with : vendor_id:int -> product_id:int -> handle
val get_configuration : handle -> configuration Lwt.t
val set_configuration : handle -> configuration -> unit Lwt.t
module Class : sig ... end
type device_descriptor = {
dd_usb : int;
dd_device_class : Class.t;
dd_device_sub_class : int;
dd_device_protocol : int;
dd_max_packet_size : int;
dd_vendor_id : int;
dd_product_id : int;
dd_device : int;
dd_index_manufacturer : int;
dd_index_product : int;
dd_index_serial_number : int;
dd_configurations : int;
}
val get_device_descriptor : device -> device_descriptor
type interface_descriptor = {
id_interface : int;
id_alternate_setting : int;
id_interface_class : Class.t;
id_interface_sub_class : int;
id_interface_protocol : int;
id_index_interface : int;
id_endpoints : endpoint_descriptor array;
}
type config_descriptor = {
cd_configuration_value : int;
cd_index_configuration : int;
cd_attributes : int;
cd_max_power : int;
cd_interfaces : interface_descriptor array array;
}
val get_active_config_descriptor : device -> config_descriptor
val get_config_descriptor : device -> int -> config_descriptor
val get_config_descriptor_by_value : device -> int -> config_descriptor
module DT : sig ... end
exception Transfer of transfer_error * string
val transfer_error_message : transfer_error -> string
val iso_recv :
handle:handle ->
endpoint:endpoint ->
?timeout:float ->
string ->
int ->
int list ->
iso_result list Lwt.t
val iso_send :
handle:handle ->
endpoint:endpoint ->
?timeout:float ->
string ->
int ->
int list ->
iso_result list Lwt.t
module Request : sig ... end