Class Connection
Defined in File usb.hpp
Class Documentation
-
class Connection
Public Functions
-
void init()
-
bool open_device()
-
void init_async()
-
Connection(int vendor_id, int product_id, std::string serial_str, int log_level = LIBUSB_OPTION_LOG_LEVEL)
-
~Connection()
-
inline void set_in_callback(connection_in_cb_fn in_cb_fn)
-
inline void set_out_callback(connection_out_cb_fn out_cb_fn)
-
inline void set_exception_callback(connection_exception_cb_fn exception_fb_fn)
-
inline void set_hotplug_attach_callback(hotplug_attach_cb_fn hp_attach_cb_fn)
-
inline void set_hotplug_detach_callback(hotplug_detach_cb_fn hp_detach_cb_fn)
-
inline int vendor_id()
-
inline int product_id()
-
inline std::string serial_str()
-
inline bool devh_valid()
-
inline int bus_number()
-
inline int device_address()
-
inline int device_speed()
-
char *device_speed_txt()
-
inline u_int8_t port_number()
-
int read_chars(u_char *data, size_t size)
-
void write_char(u_char c)
-
void write_buffer(u_char *buf, size_t size)
-
void write_buffer_async(u_char *buf, size_t size, void *user_data)
-
inline u_int8_t num_interfaces()
-
inline int ep_data_out_addr()
-
inline int ep_data_in_addr()
-
inline int ep_comms_in_addr()
-
inline unsigned int timeout_ms()
-
inline bool keep_running()
-
inline bool attached()
-
size_t queued_transfer_in_num()
-
void handle_usb_events()
-
void shutdown()
-
void init()