📄 refddcproc.h
字号:
/****************************************************************************/
/* TEXAS INSTRUMENTS PROPRIETARY INFORMATION */
/* */
/* (c) Copyright, Texas Instruments Incorporated, 2006. */
/* All Rights Reserved. */
/* */
/* Property of Texas Instruments Incorporated. Restricted Rights - */
/* Use, duplication, or disclosure is subject to restrictions set */
/* forth in TI's program license agreement and associated documentation. */
/****************************************************************************/
/****************************************************************************/
/* refDdcProc.h */
/****************************************************************************/
#ifndef __DDCPROC_H
#define __DDCPROC_H
#include "common.h"
#include "sysmon.h"
/****************************************************************************/
/* Definitions */
/****************************************************************************/
#define CI_PORT I2C_PORT1 /* ddc/ci i2c interface port number */
/****************************************************************************/
/* Supported DDC/CI command codes. See: */
/* - VESA "Display Data Channed Command Interface Standard ver 1.1" */
/****************************************************************************/
#define CICMD_GETVCP 0x01 /* 4.3 Get VCP feature */
#define CIREP_GETVCP 0x02 /* 4.3 VCP Feature reply */
#define CICMD_SETVCP 0x03 /* 4.4 Set VCP feature */
#define CICMD_SAVEVCP 0x0c /* 4.5 Save settings */
#define CICMD_GETCAP 0xf3 /* 4.6 Capabilities request */
#define CIREP_GETCAP 0xe3 /* 4.6 Capabilities reply */
#define CICMD_GETTIMING 0x07 /* 4.7 Get timing report */
#define CIREP_GETTIMING 0x4e /* 4.7 Timing message reply */
/****************************************************************************/
/* Supported VCP (virtual control panel) codes. See: */
/* - VESA "Display Data Channed Command Interface Standard ver 1.1" */
/* - VESA "Monitor Control Command Set ver 3" */
/****************************************************************************/
#define VCP_CTRLVALUE 0x02 /* Get/Set ctrl state */
#define VCP_FACTDEFAULT 0x04 /* Set defaults */
#define VCP_FACTCOLOR 0x08 /* Set color defaults */
#define VCP_LUMINANCE 0x10 /* Get/Set luminance */
#define VCP_CONTRAST 0x12 /* Get/Set contrast */
#define VCP_COLORTEMP 0x14 /* Get/Set color temp */
#define VCP_SHARPNESS 0x87 /* Get/Set sharpness */
#define VCP_SATURATION 0x8a /* Get/Set saturation */
#define VCP_HUE 0x90 /* Get/Set hue */
#define VCP_TECHTYPE 0xb6 /* Get technology */
#define VCP_MCCSVER 0xdf /* Get MCCS version */
/****************************************************************************/
/* Alterable connector settings structure. */
/* - Defines the members of the connector settings struct (see app_cfg.h) */
/* that are alterable via DDC/CI. */
/****************************************************************************/
typedef struct ciSettingsStruct
{
int16 Brightness;
int16 Contrast;
int16 Hue;
int16 Color;
int16 Sharpness;
}
CI_SETTINGS;
/****************************************************************************/
/* Global functions. */
/****************************************************************************/
void ddc_info( TASKINFO_STRUCT *info );
EXEC_CC_ENUM ddc_init( void );
void ddc_dumpDebug( void );
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -