Latest news: January 31, 2012
WinI2C/DDC v4.02 released!
January 12, 2012
OCR SDK v2.1 released!
December 27, 2011
WiFi-Manager v5.7 released!
December 14, 2011
OCR SDK v2.0 released!
| | |
|
WinI2C/DDC: Developer's Guide
|
WinI2C/DDC Constants
Constants for low level DDC bus access:
| I2C_READ | 0x0001 - Read buffer (Length<=128 byte) |
| I2C_WRITE | 0x0002 - Write bufer (Length<=128 byte) |
| I2C_RESET | 0x0008 - Reset I2C |
| NO_STOP_BIT | 0x0100 - No stop bit (for WriteI2CBuf function) |
| NO_ADDR_PART | 0x1000 - No address part (for WriteI2CBuf function) |
Constants for GetMonitorGain and
SetMonitorGain functions:
| GAINTYPE_RED | 0x00 |
| GAINTYPE_GREEN | 0x01 |
| GAINTYPE_BLUE | 0x02 |
Constants for GetMonitorDisplayAreaPosition and
SetMonitorDisplayAreaPosition functions:
| POSTYPE_X | 0x00 |
| POSTYPE_Y | 0x01 |
Constants for GetMonitorDisplayAreaSize and
SetMonitorDisplayAreaSize functions:
| SIZETYPE_WIDTH | 0x00 |
| SIZETYPE_HEIGHT | 0x01 |
Constants for GetMonitorTechnologyType function:
| TECHNOLOGY_MASKCRT | 0x01 |
| TECHNOLOGY_GRILLCRT | 0x02 |
| TECHNOLOGY_TFT | 0x03 |
| TECHNOLOGY_LCOS | 0x04 |
| TECHNOLOGY_PLASMA | 0x05 |
| TECHNOLOGY_OLED | 0x06 |
| TECHNOLOGY_EL | 0x07 |
| TECHNOLOGY_MEM | 0x08 |
| TECHNOLOGY_FED | 0x09 |
Constants for SetMonitorPowerMode function:
| POWER_ON | 0x01 |
| POWER_STANDBY | 0x02 |
| POWER_SUSPEND | 0x03 |
| POWER_OFF | 0x04 |
Constants for GetLibraryOption
and SetLibraryOption functions:
| OPT_COMMLOGIC | 0x00 - communication logic option (for possible values refer to COMMLOGIC_ constants) |
| OPT_I2CFREQ | 0x01 - I2C frequency option (value must be in Hz, default value is 20000) |
| OPT_I2CTIMEOUT | 0x02 - I2C timeout option (value must be in microseconds, default value is 2500) |
| OPT_RAWBUS | 0x03 - raw I2C buses mode (1 - enabled, 0 - disabled, default is 0). In raw buses mode the library returns
all I2C buses available (without checking EDID or anything else) |
| OPT_PREFER_VISTAAPI | 0x04 - use Vista I2C/DDC API even if native communication available (1 - enabled, 0 - disabled, default is 0).
Note low-level functions are not available via Vista I2C/DDC API. |
| OPT_BYTE_DELAY | 0x05 - additional delay (in microseconds) after every byte during writing data via I2C bus. Default value is 0. |
| OPT_I2CVIAIRP | 0x06 - try additional approach to get access to I2C bus (1 - enabled, 0 - disabled, default is 0). Works only on Windows 2000 and
Windows XP. In general not recommended for using because this approach may conflict with some video card drivers. Mostly needed to support very old nVidia cards. |
| OPT_ALLOWSAMEEDID | 0x07 - allow to find multiple monitors with the same EDID (1 - enabled, 0 - disabled, default is 0). |
| OPT_NOWINAPI | 0x08 - do not use Windows Vista/7 API to find monitors (1 - do not use, 0 - use when available, default is 0). |
Constants for OPT_COMMLOGIC option:
| COMMLOGIC_MODE1 | 0x01 - try native communication and if nothing found then try video driver |
| COMMLOGIC_MODE2 | 0x02 - try video driver and if nothing found then try native communication |
| COMMLOGIC_MODE3 | 0x03 - try native communication and then try video driver |
| COMMLOGIC_MODE4 | 0x04 - try video driver and then try native communication |
| COMMLOGIC_MODE5 | 0x05 - try video driver only |
| COMMLOGIC_MODE6 | 0x06 - try native communication only |
Constants for GetEDIDOption function:
| EDID_PNPID | 0x01 |
| EDID_MANUFACTURER | 0x02 |
| EDID_OPTIMALRESX | 0x03 |
| EDID_OPTIMALRESY | 0x04 |
| EDID_SERIALNUMBER | 0x05 |
| EDID_MONITORNAME | 0x06 |
| EDID_MINHFREQ | 0x07 |
| EDID_MAXHFREQ | 0x08 |
| EDID_MINVFREQ | 0x09 |
| EDID_MAXVFREQ | 0x0A |
| EDID_GAMMA | 0x0B |
| EDID_MANUFACTUREDATE | 0x0C |
| EDID_INPUTTYPE | 0x0D (possible return values are: "DIGITAL" and "ANALOG") |
| EDID_HSIZE | 0x0E |
| EDID_VSIZE | 0x0F |
| EDID_ASPECTRATIO | 0x10 (possible return values are: "4x3", "16x10", "5x4" and "16x9") |
| EDID_POWERMAN | 0x11 (return value: "STANDBY:x SUSPEND:x LOWPOWER:x") |
| EDID_VERSION | 0x12 (return value is version in format "x.x" |
| EDID_DISPLAYTYPE | 0x13 (possible return values are: "Monochrome/Grayscale", "RGB Color", "Non RGB Color" and "Unknown") |
|
|