Skip to main content

Crate df_ddc

Crate df_ddc 

Source
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

OSEnumerationI/O
WindowsEnumDisplayMonitors + GetPhysicalMonitorsFromHMONITORHighLevelMonitorConfigurationAPI
Linuxscan of /dev/i2c-* with VCP 0x10 proberaw 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.