mirror of
https://github.com/Lorenzooone/cc3dsfs.git
synced 2026-04-05 00:54:53 -05:00
20 lines
566 B
C++
20 lines
566 B
C++
#ifndef __USB_GENERIC_HPP
|
|
#define __USB_GENERIC_HPP
|
|
|
|
#ifdef USE_LIBUSB
|
|
#include <libusb.h>
|
|
libusb_context* get_usb_ctx();
|
|
#endif
|
|
|
|
void usb_init();
|
|
void usb_close();
|
|
bool usb_is_initialized();
|
|
int get_usb_total_filtered_devices(const uint16_t valid_vids[], size_t num_vids, const uint16_t valid_pids[], size_t num_pids);
|
|
void libusb_check_and_detach_kernel_driver(void* handle, int interface);
|
|
int libusb_check_and_set_configuration(void* handle, int wanted_configuration);
|
|
|
|
void libusb_register_to_event_thread();
|
|
void libusb_unregister_from_event_thread();
|
|
|
|
#endif
|