18f6c61bcSshadow303 /* 293a1ccabSAxel Dörfler * Copyright (c) 2003, Thomas Kurschel 393a1ccabSAxel Dörfler * Distributed under the terms of the MIT License. 48f6c61bcSshadow303 */ 58f6c61bcSshadow303 #ifndef _DDC_H 68f6c61bcSshadow303 #define _DDC_H 78f6c61bcSshadow303 893a1ccabSAxel Dörfler 98f6c61bcSshadow303 #include "i2c.h" 108f6c61bcSshadow303 #include "edid.h" 118f6c61bcSshadow303 1293a1ccabSAxel Dörfler 13*96eb4ebeSAxel Dörfler #ifdef __cplusplus 14*96eb4ebeSAxel Dörfler extern "C" { 15*96eb4ebeSAxel Dörfler #endif 16*96eb4ebeSAxel Dörfler 1793a1ccabSAxel Dörfler void ddc2_init_timing(i2c_bus *bus); 1893a1ccabSAxel Dörfler 198f6c61bcSshadow303 // read EDID and VDIF from monitor via ddc2 208f6c61bcSshadow303 // (currently, *vdif and *vdif_len is always set to null) 218f6c61bcSshadow303 status_t ddc2_read_edid1(const i2c_bus *bus, edid1_info *edid, 2293a1ccabSAxel Dörfler void **vdif, size_t *vdifLength); 238f6c61bcSshadow303 24*96eb4ebeSAxel Dörfler #ifdef __cplusplus 25*96eb4ebeSAxel Dörfler } 26*96eb4ebeSAxel Dörfler #endif 27*96eb4ebeSAxel Dörfler 2893a1ccabSAxel Dörfler #endif /* _DDC_H */ 29