嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元微信扫码支付:2 元
请留下您的邮箱,我们将在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