DDC_readEDID

Attempts to read the EDID information block from the monitor.

Declaration

ibool NAPI DDC_readEDID(
    N_int32 slaveAddr,
    uchar *edid,
    N_int32 length,
    N_int32 blockNumber,
    N_int32 iChannel)

Prototype In

snap/ddc.h

Parameters

slaveAddr

Slave address to read the EDID data from

edid

Place to store the EDID information read

length

Number of bytes of EDID data to read

blockNumber

EDID block number to read (generally 0)

iChannel

DDC channel to use for communications (0 for primary monitor)

 

Return Value

True on success, false for invalid checksum or communications error.

Description

This function attempts to read the EDID information from the DDC2B slave. This function also does a checksum on the incoming EDID data, and if the checksum fails will return false. The slave address that is passed to this function should be 0xA0 to read the regular 128 byte EDID for the DDC 2.0 specification.

For DDC 3.0 you can pass in values of 0xA2 and 0xA6 for the Plug and Display and FPDI 256 byte extended EDID blocks respectively.

See Also

DDC_initExt, EDID_parse

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com