g13 0.1.0

libusb based crate to communicate with a Logitech G13 without accompanying drivers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Debug, Error)]
pub enum G13Error {
    #[error("Usb error: {0}")]
    Libusb(#[from] rusb::Error),
    #[error("Invalid key response")]
    InvalidKeyResponse,
    #[error("Problem sending data. Result: {0}")]
    ProblemSendingData(usize),
    #[error("Invalid lcd buffer size: Got {0}, expected {1}")]
    InvalidLcdBufferSize(usize, usize)
}