Crate mccs_db [] [src]

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

Example

extern crate mccs_db;
extern crate mccs_caps;

// 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 = mccs_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.