Epson Research and Development Page 79
Vancouver Design Center
Programming Notes and Examples S1D13705
Issue Date: 02/01/22 X27A-G-002-03
ERR_FAILED, /* General purpose failure.
*/
ERR_UNKNOWN_DEVICE, /* */
ERR_INVALID_PARAMETER,/* Function was called with invalid parameter. */
ERR_HAL_BAD_ARG,
ERR_TOOMANY_DEVS
};
/*******************************************
* Definitions for seGetId()
*******************************************/
#define PRODUCT_ID 0x24
enum
{
ID_UNKNOWN,
ID_S1D13705_Rev1
};
#define MAX_MEM_ADDR81920 - 1
#define EIGHTY_K81920
#define MAX_DEVICE 10
#define SE_RSVD 0
/*******************************************
* Definitions for Internal calculations.
*******************************************/
#define MIN_NON_DISP_X 32
#define MAX_NON_DISP_X 256
#define MIN_NON_DISP_Y 2
#define MAX_NON_DISP_Y 64
enum
{
RED,
GREEN,
BLUE
};
/*************************************************************************/
typedef struct tagHalStruct
{
char szIdString[16];
WORD wDetectEndian;
WORD wSize;
BYTE Reg[MAX_REG + 1];
DWORD dwClkI; /* Input Clock Frequency (in kHz) */
DWORD dwDispMem;/* */
WORD wFrameRate;/* */
} HAL_STRUCT;
typedef HAL_STRUCT * PHAL_STRUCT;
#ifdef INTEL_16BIT
typedef HAL_STRUCT far * LPHAL_STRUCT;
#else
typedef HAL_STRUCT * LPHAL_STRUCT;