📄 app_cfg.h
字号:
{
uint08 LampStrikeResetEnable;
uint08 EnableLampSyncs;
uint08 LampSyncType; /* enum LMP_SYNC_TYPES */
uint08 CWMaxRetries;
uint08 EnableWaitLampLitStable;
uint08 CooldownDelay; /* lsb = 1 sec. */
uint16 LampStrikeResetDelay; /* lsb = 1 ms. */
uint16 LampEnableDelay; /* lsb = 1 ms. */
uint16 LampSyncEnableDelay; /* lsb = 1 ms. */
uint08 Spare;
uint08 UartBallastEnable; /* 0: disable; 1: enable */
uint16 UartBallastCommEMIDelay; /* lsb = 1 ms. */
uint08 UartBallastPort; /* UART port number to which the Lamp Ballast is connected */
uint08 UartBallastBaudrate; /* This value to be filled in as per URTBAUD enum in urt.h */
uint08 UartBallastDatabits; /* This value to be filled in as per URTDBITS enum in urt.h */
uint08 UartBallastStopbits; /* This value to be filled in as per URTSBITS enum in urt.h */
uint08 UartBallastParity; /* This value to be filled in as per URTPARITY enum in urt.h */
uint08 UartBallastRxdPolarity; /* This value to be filled in as per URTRXDPOL enum in urt.h */
uint08 UartBallastExitUartModeCmd; /* This value to set to 0x75 for Philips, 0x3A for OSRAM */
uint08 Spare2;
} Illum;
/****************************************************/
/* Fan/TempSensor installation field. */
/* Configuration. */
/* 7 6 5 4 3 2 1 0 */
/* X X X X | | | | */
/* | | | Fan/Sensor 1 installed */
/* | | Fan/Sensor 2 installed */
/* | Fan/Sensor 3 installed */
/* 1 = Fan 2 and 3 parallelled. */
/****************************************************/
struct environmentDefaultStruct
{
uint08 EnableEnvironmentPoll; /* permissive */
uint08 CheckFanLock;
uint08 CheckOvertemp;
uint08 InstalledFans;
uint08 InstalledFanLocks;
uint08 InstalledTempSensors;
uint16 TempSensorLowLimit; /* degrees Celsius */
uint16 TempSensorHighLimit; /* degrees Celsius */
uint16 TiltAngleOffset; /* ~14 count per degree */
uint16 TiltAngleThreshold; /* ~14 count per degree */
} Environment;
/****************************************************/
/* Port configuration. */
/* 7 6 5 4 3 2 1 0 */
/* 0 ------- 0 ------- */
/* | | */
/* | enum URTBAUD */
/* | */
/* 000 - URT0, no flow control */
/* 001 - URT0, HW flow control */
/* 010 - URT1, no flow control */
/* 011 - URT1, HW flow control */
/* 10x - USB */
/* 11x - None */
/****************************************************/
struct peripheralDefaultStruct
{
uint08 DebugOut; /* port config described above */
uint08 ProjectorControl; /* port config described above */
uint08 RemoteFunctionCall; /* port config described above */
uint08 IRConfig; /* 0=none; 1=Port0; 2=Port1; 3 = both */
uint08 UsbMode; /* 1= factory, 2= user */
uint08 DdcciConfig; /* 0= disable; 1= enable; 2= enable/debug */
uint08 Spare1;
uint08 Spare2;
} Peripherals;
struct datapathDefaultStruct
{
uint08 EnablePhaseCallback;
uint08 AlcClockDetectionMode;
uint08 FrontEndDevicesI2CPort;
uint08 SplashAtStartupEnable;
uint16 SplashAtStartupTimeout;
int16 ThrowRatio;
int16 VerticalOffset;
} Datapath;
/****************************************************/
/* Add padding as necessary to ensure the defaults */
/* structure has div by 4 length. Necessary due to */
/* DLP Composer placement of configuration blocks. */
/****************************************************/
int16 forceAlignment;
} DEFAULT;
/****************************************************************************/
/* EDID structure definition. */
/****************************************************************************/
typedef struct edidstruct
{
uint08 VGA[128];
uint08 DVI[128];
} EDID;
/****************************************************************************/
/* Calibration structure definition. */
/****************************************************************************/
typedef struct caltsstruct
{
int16 WhiteWindow[4];
int16 BlackWindow[4];
int16 WhiteVideoWindow[4];
} CALIB;
/****************************************************************************/
/* Complete application configuration structure definition. */
/****************************************************************************/
struct appconfigstruct
{
EEPROM Settings;
DEFAULT Defaults;
EDID Edid;
CALIB Calibration;
};
/****************************************************************************/
/* typedefs used by the application. */
/****************************************************************************/
typedef struct settingsstruct SettingsStruct;
typedef struct defaultsStruct ConfigurationStruct;
typedef struct edidstruct EdidStruct;
typedef struct caltsstruct CalibrationStruct;
/****************************************************************************/
/* Stylized definitions required for import of the application data into */
/* DLP Composer. . */
/****************************************************************************/
/****************************************************/
/* Base name defined as "APP". */
/****************************************************/
#define APP_BASE 0x00000000UL
/****************************************************/
/* Subsection size definitions. */
/****************************************************/
#define BLK_SIZE(s) ((((s) % 4) == 0) ? (s) : (s) + (4 - ((s) % 4)))
#define APP_EEPROM_SIZE ( BLK_SIZE( sizeof( EEPROM )))
#define APP_DEFAULT_SIZE ( BLK_SIZE( sizeof( DEFAULT )))
#define APP_EDID_SIZE ( BLK_SIZE( sizeof( EDID )))
#define APP_CALIB_SIZE ( BLK_SIZE( sizeof( CALIB )))
/****************************************************/
/* Subsection offsets from "APP" base. */
/****************************************************/
#define APP_EEPROM_BASE ( APP_BASE )
#define APP_DEFAULT_BASE ( APP_EEPROM_BASE + APP_EEPROM_SIZE )
#define APP_EDID_BASE ( APP_DEFAULT_BASE + APP_DEFAULT_SIZE )
#define APP_CALIB_BASE ( APP_EDID_BASE + APP_EDID_SIZE )
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -