meh_asus/lib.rs
1//! Abstraction over ASUS hardware configurations to control it programatically on Linux.
2//!
3//! This can utilize any hardware's DEV_ID, to read and modify its configuration as defined by the user.
4//!
5//! You can find the DEV_ID of the hardware you're interested in
6//! [ASUS WMI source code](https://github.com/torvalds/linux/blob/master/drivers/platform/x86/asus-wmi.c).
7//!
8//! ## Common Hardware
9//!
10//! Some of the hardware dev id and their states are defined by default, serving as an example as well
11//! as direct abstraction over them.
12//!
13//! Users can refer to them to use it themselves, or to create abstraction over some other
14//! hardware component of their choice. Please reference the "examples" directory.
15
16#![cfg(target_os = "linux")]
17
18pub mod debugfs;
19#[cfg(feature = "pwm")]
20#[cfg_attr(docsrs, doc(cfg(feature = "pwm")))]
21pub mod pwm;
22pub use debugfs::{common_hardware, error};
23pub use debugfs::{Config, Hardware};