This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import Darwin; | |
@import Foundation; | |
@import IOKit; | |
typedef CFTypeRef IOAVServiceRef; | |
extern IOAVServiceRef IOAVServiceCreate(CFAllocatorRef allocator); | |
extern IOReturn IOAVServiceCopyEDID(IOAVServiceRef service, CFDataRef* x2); | |
// outputBufferSize must be less than (1 << 12) (4096 bytes) | |
extern IOReturn IOAVServiceReadI2C(IOAVServiceRef service, uint32_t chipAddress, uint32_t offset, void* outputBuffer, | |
uint32_t outputBufferSize); |