Home
Company
Developer Tools
OCR SDK
WinI2C/DDC
Overview
Features
WinI2C/DDC Lite
Download
Order
Online Help
License Agreement
WiFi-Manager
Utilities
Order
Articles
Contacts
Press
Resellers
Site map
Login


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_READ0x0001 - Read buffer (Length<=128 byte)
I2C_WRITE0x0002 - Write bufer (Length<=128 byte)
I2C_RESET0x0008 - Reset I2C
NO_STOP_BIT0x0100 - No stop bit (for WriteI2CBuf function)
NO_ADDR_PART0x1000 - No address part (for WriteI2CBuf function)


Constants for GetMonitorGain and SetMonitorGain functions:

GAINTYPE_RED0x00
GAINTYPE_GREEN0x01
GAINTYPE_BLUE0x02


Constants for GetMonitorDisplayAreaPosition and SetMonitorDisplayAreaPosition functions:

POSTYPE_X0x00
POSTYPE_Y0x01


Constants for GetMonitorDisplayAreaSize and SetMonitorDisplayAreaSize functions:

SIZETYPE_WIDTH0x00
SIZETYPE_HEIGHT0x01


Constants for GetMonitorTechnologyType function:

TECHNOLOGY_MASKCRT0x01
TECHNOLOGY_GRILLCRT0x02
TECHNOLOGY_TFT0x03
TECHNOLOGY_LCOS0x04
TECHNOLOGY_PLASMA0x05
TECHNOLOGY_OLED0x06
TECHNOLOGY_EL0x07
TECHNOLOGY_MEM0x08
TECHNOLOGY_FED0x09


Constants for SetMonitorPowerMode function:

POWER_ON0x01
POWER_STANDBY0x02
POWER_SUSPEND0x03
POWER_OFF0x04


Constants for GetLibraryOption and SetLibraryOption functions:

OPT_COMMLOGIC0x00 - communication logic option (for possible values refer to COMMLOGIC_ constants)
OPT_I2CFREQ0x01 - I2C frequency option (value must be in Hz, default value is 20000)
OPT_I2CTIMEOUT0x02 - I2C timeout option (value must be in microseconds, default value is 2500)
OPT_RAWBUS0x03 - 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_VISTAAPI0x04 - 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_DELAY0x05 - additional delay (in microseconds) after every byte during writing data via I2C bus. Default value is 0.
OPT_I2CVIAIRP0x06 - 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_ALLOWSAMEEDID0x07 - allow to find multiple monitors with the same EDID (1 - enabled, 0 - disabled, default is 0).
OPT_NOWINAPI0x08 - 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_MODE10x01 - try native communication and if nothing found then try video driver
COMMLOGIC_MODE20x02 - try video driver and if nothing found then try native communication
COMMLOGIC_MODE30x03 - try native communication and then try video driver
COMMLOGIC_MODE40x04 - try video driver and then try native communication
COMMLOGIC_MODE50x05 - try video driver only
COMMLOGIC_MODE60x06 - try native communication only


Constants for GetEDIDOption function:

EDID_PNPID0x01
EDID_MANUFACTURER0x02
EDID_OPTIMALRESX0x03
EDID_OPTIMALRESY0x04
EDID_SERIALNUMBER0x05
EDID_MONITORNAME0x06
EDID_MINHFREQ0x07
EDID_MAXHFREQ0x08
EDID_MINVFREQ0x09
EDID_MAXVFREQ0x0A
EDID_GAMMA0x0B
EDID_MANUFACTUREDATE0x0C
EDID_INPUTTYPE0x0D (possible return values are: "DIGITAL" and "ANALOG")
EDID_HSIZE0x0E
EDID_VSIZE0x0F
EDID_ASPECTRATIO0x10 (possible return values are: "4x3", "16x10", "5x4" and "16x9")
EDID_POWERMAN0x11 (return value: "STANDBY:x SUSPEND:x LOWPOWER:x")
EDID_VERSION0x12 (return value is version in format "x.x"
EDID_DISPLAYTYPE0x13 (possible return values are: "Monochrome/Grayscale", "RGB Color", "Non RGB Color" and "Unknown")






   Copyright ©2002-2011, Nicomsoft Ltd. All Right Reserved.  Privacy Policy  |  Terms of Use