Expand description
§df_ddc
DDC/CI (VESA MCCS) monitor control backend.
This crate provides low-level I/O for VCP features: brightness, contrast, volume, input source, and power state across Windows and Linux.
§Quick Start
use df_ddc::list_monitors;
fn main() -> Result<(), Box<dyn std::error::Error>> {
for dev in list_monitors() {
let caps = dev.inner.get_capabilities()?;
println!("{}: brightness={}/{}", dev.info, caps.brightness, caps.brightness_max);
}
Ok(())
}§Platform Support
| OS | Enumeration | I/O |
|---|---|---|
| Windows | EnumDisplayMonitors + GetPhysicalMonitorsFromHMONITOR | HighLevelMonitorConfigurationAPI |
| Linux | scan of /dev/i2c-* with VCP 0x10 probe | raw I2C, DDC packets over i2c-dev |
§License
Licensed under either of MIT or Apache-2.0 at your option.
Modules§
- ddc_
backends - Platform-specific DDC/CI backend implementations. Platform-specific DDC/CI backend implementations.
- ddc_
trait - DDC/CI trait definitions and device abstraction.
- ddc_
types - DDC/CI VCP (Virtual Control Panel) data types.
- error
- Error types for DDC/CI operations. Error types for DDC/CI monitor control operations.
Functions§
- list_
monitors - Enumerates all connected monitors supporting DDC/CI across different platforms.