Skip to main content

ddc_enhanced_rs/
mccs.rs

1// Full list of MCCS v2.2a VCP codes.
2
3#[repr(u8)]
4pub enum PresetOperation {
5    CodePage = 0x00,
6    RestoreFactoryColorDefaults = 0x08,
7    RestoreFactoryDefaults = 0x04,
8    RestoreFactoryGeometryDefaults = 0x06,
9    RestoreFactoryLuminanceContrastDefaults = 0x05,
10    RestoreFactoryTvDefaults = 0x0a,
11    SaveRestoreSettings = 0xb0,
12}
13
14#[repr(u8)]
15pub enum ImageAdjustment {
16    SixAxisHueControlBlue = 0x9f,
17    SixAxisHueControlCyan = 0x9e,
18    SixAxisHueControlGreen = 0x9d,
19    SixAxisHueControlMagenta = 0xa0,
20    SixAxisHueControlRed = 0x9b,
21    SixAxisHueControlYellow = 0x9c,
22    SixAxisSaturationControlBlue = 0x5d,
23    SixAxisSaturationControlCyan = 0x5c,
24    SixAxisSaturationControlGreen = 0x5b,
25    SixAxisSaturationControlMagenta = 0x5e,
26    SixAxisSaturationControlRed = 0x59,
27    SixAxisSaturationControlYellow = 0x5a,
28    AdjustZoom = 0x7c,
29    AutoColorSetup = 0x1f,
30    AutoSetup = 0x1e,
31    AutoSetupOnOff = 0xa2,
32    BacklightControl = 0x13,
33    BacklightLevelBlue = 0x71,
34    BacklightLevelGreen = 0x6f,
35    BacklightLevelRed = 0x6d,
36    BacklightLevelWhite = 0x6b,
37    BlockLutOperation = 0x75,
38    Clock = 0x0e,
39    ClockPhase = 0x3e,
40    ColorSaturation = 0x8a,
41    ColorTemperatureIncrement = 0x0b,
42    ColorTemperatureRequest = 0x0c,
43    Contrast = 0x12,
44    DisplayApplication = 0xdc,
45    FleshToneEnhancement = 0x11,
46    Focus = 0x1c,
47    Gamma = 0x72,
48    GrayScaleExpansion = 0x2e,
49    HorizontalMoire = 0x56,
50    Hue = 0x90,
51    Luminance = 0x10,
52    LutSize = 0x73,
53    ScreenOrientation = 0xaa,
54    SelectColorPreset = 0x14,
55    Sharpness = 0x87,
56    SinglePointLutOperation = 0x74,
57    StereoVideoMode = 0xd4,
58    TvBlackLevelLuminance = 0x92,
59    TvContrast = 0x8e,
60    TvSharpness = 0x8c,
61    UserColorVisionCompensation = 0x17,
62    VelocityScanModulation = 0x88,
63    VerticalMoire = 0x58,
64    VideoBlackLevelBlue = 0x70,
65    VideoBlackLevelGreen = 0x6e,
66    VideoBlackLevelRed = 0x6c,
67    VideoGainBlue = 0x1a,
68    VideoGainGreen = 0x18,
69    VideoGainRed = 0x16,
70    WindowBackground = 0x9a,
71    WindowControlOnOff = 0xa4,
72    WindowSelect = 0xa5,
73    WindowSize = 0xa6,
74    WindowTransparency = 0xa7,
75}
76
77#[repr(u8)]
78pub enum DisplayControl {
79    DisplayControllerId = 0xc8,
80    DisplayFirmwareLevel = 0xc9,
81    DisplayUsageTime = 0xc6,
82    HorizontalFrequency = 0xac,
83    ImageMode = 0xdb,
84    OsdButtonLevelControl = 0xca,
85    OsdLanguage = 0xcc,
86    PowerMode = 0xd6,
87    SourceColorCoding = 0xb5,
88    SourceTimingMode = 0xb4,
89    Version = 0xdf,
90    VerticalFrequency = 0xae,
91}
92
93#[repr(u8)]
94pub enum Geometry {
95    BottomCornerFlare = 0x4a,
96    BottomCornerHook = 0x4c,
97    DisplayScaling = 0x86,
98    HorizontalConvergenceMG = 0x29,
99    HorizontalConvergenceRB = 0x28,
100    HorizontalKeystone = 0x42,
101    HorizontalLinearity = 0x2a,
102    HorizontalLinearityBalance = 0x2c,
103    HorizontalMirror = 0x82,
104    HorizontalParallelogram = 0x40,
105    HorizontalPincushion = 0x24,
106    HorizontalPincushionBalance = 0x26,
107    HorizontalPosition = 0x20,
108    HorizontalSize = 0x22,
109    Rotation = 0x44,
110    ScanMode = 0xda,
111    TopCornerFlare = 0x46,
112    TopCornerHook = 0x48,
113    VerticalConvergenceMG = 0x39,
114    VerticalConvergenceRB = 0x38,
115    VerticalKeystone = 0x43,
116    VerticalLinearity = 0x3a,
117    VerticalLinearityBalance = 0x3c,
118    VerticalMirror = 0x84,
119    VerticalParallelogram = 0x41,
120    VerticalPincushion = 0x34,
121    VerticalPincushionBalance = 0x36,
122    VerticalPosition = 0x30,
123    VerticalSize = 0x32,
124    WindowPositionBrX = 0x97,
125    WindowPositionBrY = 0x98,
126    WindowPositionTlX = 0x95,
127    WindowPositionTlY = 0x96,
128}
129
130#[repr(u8)]
131pub enum Miscellaneous {
132    ActiveControl = 0x52,
133    AmbientLightSensor = 0x66,
134    ApplicationEnableKey = 0xc6,
135    AssetTag = 0xd2,
136    AuxiliaryDisplayData = 0xcf,
137    AuxiliaryDisplaySize = 0xce,
138    AuxiliaryPowerOutput = 0xd7,
139    Degauss = 0x01,
140    DisplayDescriptorLength = 0xc2,
141    DisplayIdentificationDataOperation = 0x87,
142    DisplayTechnologyType = 0xb6,
143    EnableDisplayOfDisplayDescriptor = 0xc4,
144    FlatPanelSubPixelLayout = 0xb2,
145    InputSource = 0x60,
146    NewControlValue = 0x02,
147    OutputSelect = 0xd0,
148    PerformancePreservation = 0x54,
149    RemoteProcedureCall = 0x76,
150    ScratchPad = 0xde,
151    SoftControls = 0x03,
152    StatusIndicators = 0xcd,
153    TransmitDisplayDescriptor = 0xc3,
154    TvChannelUpDown = 0x8b,
155}
156
157#[repr(u8)]
158pub enum Audio {
159    AudioBalanceLR = 0x93,
160    AudioBass = 0x91,
161    AudioJackConnectionStatus = 0x65,
162    AudioMicrophoneVolume = 0x64,
163    AudioMute = 0x8d,
164    AudioProcessorMode = 0x94,
165    AudioSpeakerSelect = 0x63,
166    AudioSpeakerVolume = 0x62,
167    AudioTreble = 0x8f,
168}
169
170#[repr(u8)]
171pub enum DPVL {
172    BodyCrcErrorCount = 0xbc,
173    ClientId = 0xbd,
174    HeaderErrorCount = 0xbb,
175    LinkControl = 0xbe,
176    MonitorStatus = 0xb7,
177    MonitorXOrigin = 0xb9,
178    MonitorYOrigin = 0xba,
179    PacketCount = 0xb8,
180}