基本信息
源码名称:DDC CI例子
源码大小:0.01M
文件格式:.zip
开发语言:C/C++
更新时间:2020-10-27
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 2 元 
   源码介绍

This program is used for communicating with monitor using DDC/CI interface.
This program is GPLed and written by Oleg I. Vdovikin (oleg@cs.msu.su)

Use i2cdetect to scan your DDC I2C buses first. Supported displays should
respond at addresses 0x37 (DDC/CI) and 0x50 (EDID). Some displays are respond
on VGA or DVI busses only, so check both.

This program is based on info sniffed on wire and published in 

USB Monitor Control Class 1.0 specification for control codes
available at http://www.usb.org/developers/hidpage/usbmon10.pdf


int ddcci_caps(int fd, unsigned int addr, 
unsigned int offset, unsigned char *buf, unsigned char len)
{
unsigned char _buf[3];

_buf[0] = DDCCI_COMMAND_CAPS;
_buf[1] = offset >> 8;
_buf[2] = offset & 255;

if (ddcci_write(fd, addr, _buf, sizeof(_buf)) < 0) 
{
return -1;
}

usleep(DELAY);

return ddcci_read(fd, addr, buf, len);
}


【源码目录】

ddcci-master

├── Makefile
├── README
├── ddcci-tool.c
└── i2c-dev.h
0 directories, 4 files