Page 74
Epson Research and Development
Vancouver Design Center
S1D13704
Programming Notes and Examples
X26A-G-002-03
Issue Date: 01/02/12
/*-------------------------------------------------------------------------*/
enum
{
ERR_OK = 0,
/* No error, call was successful. */
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 0x18
enum
{
ID_UNKNOWN,
ID_S1D13704,
ID_S1D13704F00A
};
#define MAX_MEM_ADDR 40960 -1
#define FORTY_K
40960
#define MAX_DEVICE 10
#define SE_RSVD
0
/*
** DetectEndian is used to determine whether the most significant
** and least significant bytes are reversed by the given compiler.
*/
#define ENDIAN 0x1234
#define REV_ENDIAN 0x3412
/*******************************************
* 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
/*******************************************
* Definitions for seSetFont
*******************************************/
enum
{
HAL_STDOUT,
HAL_STDIN,
HAL_DEVICE_ERR
};
#define FONT_NORMAL 0x00
*