#ifndef __GPIOI2C_H__ #define __GPIOI2C_H__ #include "drv_types.h" void hdmi_gpio_write( UINT8 idx, // gpio pin no UINT8 val // value (0 or 1) ); UINT8 hdmi_gpio_read( UINT8 idx // gpio pin no ); // return value (0 or 1) void hdmi_i2c_setup( UINT8 i2c_mode, // 0: i2c mode #define USE_HW_I2C_MASTER (0) #define USE_HW_I2C_SLAVE (1) #define USE_I2C_VIA_GPIO (2) UINT8 device_id, // i2c device id UINT8 addr_len // byte count of i2c address ); UINT8 hdmi_i2c_write( UINT32 addr, // i2c address UINT8 *data_ptr, // i2c data pointer INT32 data_sz // i2c data number ); // return 0: ok, 1: fail UINT8 hdmi_i2c_read( UINT32 addr, // i2c address UINT8 *data, // i2c data pointer INT32 data_sz // i2c data number ); // return 0: ok, 1: fail #endif /* __GPIOI2C_H__ */