mirror of
https://github.com/Lorenzooone/cc3dsfs.git
synced 2026-04-17 02:25:53 -05:00
17 lines
481 B
C++
17 lines
481 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);
|
|
|
|
#endif
|