Crate mccs_db

Source
Expand description

Monitor Command Control Set VCP feature code meanings and data interpretation.

§Example

use mccs_db::Database;

// Read the capabilities from an external source, such as a monitor over DDC.
let caps = mccs_caps::parse_capabilities(read_display_capability_string()).unwrap();

// Load the MCCS version spec and filter by the monitor's capabilities
let mut db = Database::from_version(caps.mccs_version.as_ref().unwrap());
db.apply_capabilities(&caps);

println!("Display Capabilities: {:#?}", db);

Structs§

Database
Describes all the VCP feature codes supported by an MCCS specification or display.
Descriptor
Describes a VCP feature code’s functionality and value format.

Enums§

Access
The operations allowed on a given VCP feature code.
TableInterpretation
Describes how to interpret a table’s raw value.
ValueInterpretation
Describes how to interpret a value’s raw value.
ValueType
Describes the type of a VCP value and how to interpret it.