gc-adapter 0.1.2

A Rust library for working with the Nintendo Gamecube Controller Adapter
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15


/// A libusb implementation of the adapter hardware interface
#[cfg(feature = "libusb")]
mod libusb;

#[cfg(feature = "libusb")]
pub use libusb::*;

/// A trait representing a struct which provides access to a limited set of
/// USB operations
pub trait AdapterHardware {
    fn write_interrupt(&mut self, data: &[u8]);
    fn read_interrupt(&mut self, data: &mut [u8]);
}