Crate razer_driver_rs

Crate razer_driver_rs 

Source
Expand description

Provides an interface for interacting with Razer devices.

Abstracts the USB HID interface and the data structure of the communication protocol.

§Example

A basic example would be

use razer_driver_rs::*;

let devices = scan_for_devices()?;
let keyboard = devices.keyboards.get(0).unwrap();
let brightness = keyboard.get_brightness()?;
println!("brightness {}", brightness);
keyboard.set_brightness(90)?;

Modules§

razer_device
razer_keyboard
razer_report

Structs§

FoundRazerDevices
Structure that contains every type of device found connected to the computer

Enums§

RazerError
Every kind of error that might be sent from this library

Functions§

scan_for_devices
Entry point for interacting with any device. Finds anything connected to the computer.

Type Aliases§

RazerResult
Result type for razer commands