[][src]Crate corsairmi

Read data from Corsair RMi and HXi series power supplies.

This uses the Linux HIDRAW interface to communicate with the power supply.

This crate is based off of this implementation in C: notaz/corsairmi

Example

use corsairmi::PowerSupply;

let mut psu: PowerSupply = PowerSupply::open("/dev/hidraw5")?;
println!("Power consumption: {:.1} Watts", psu.input_power()?);

Structs

PowerSupply

Power supply.

RailSample

Output rail sample.

Enums

Model

Power supply models compatible with this API.

OpenError

Power supply error.

Rail

Power supply output rail.

Constants

MODELS

Array of all models.

RAILS

Array of all rails.

VID

Corsair vendor ID.