1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
/*_________________________________ epson-escpr-api.h _______________________________*/
/* 1 2 3 4 5 6 7 8 */
/*34567890123456789012345678901234567890123456789012345678901234567890123456789012345678*/
/*******************************************|********************************************/
/*
* Copyright (c) 2009 Seiko Epson Corporation All rights reserved.
*
* Copyright protection claimed includes all forms and matters of
* copyrightable material and information now allowed by statutory or judicial
* law or hereinafter granted, including without limitation, material generated
* from the software programs which are displayed on the screen such as icons,
* screen display looks, etc.
*
*/
/*******************************************|********************************************/
/* */
/* Epson ESC/PR Application Programming Interfaces */
/* */
/*******************************************|********************************************/
#ifndef __EPSON_ESCPR_API_H__
#define __EPSON_ESCPR_API_H__
#ifdef __cplusplus
extern "C" {
#endif
/*---------------------------------- Compile options --------------------------------*/
/*******************************************|********************************************/
/* GCOMSW_PRT_USE_USB Use USB printer. */
/* GCOMSW_PRT_USE_LPR Use LPR printer. */
/* GCOMSW_PRT_USE_RAW Use Raw printer. */
/* GCOMSW_EL_CDLABEL Extend layout. Auto clipping at CD/DVD label print. (RGB only) */
/* GCOMSW_DEBUG Enable Debug monde. */
/*------------------------------------ Includes -------------------------------------*/
/*******************************************|********************************************/
#include "epson-typedefs.h"
#include "epson-escpr-def.h"
#include "epson-escpr-err.h"
#include "epson-escpr-media.h"
/*---------------------------------- Generic Macros ---------------------------------*/
/*******************************************|********************************************/
/*----------------------------------- Definitions ------------------------------------*/
/*******************************************|********************************************/
/*--------------------------- Data Structure Declarations ---------------------------*/
/*******************************************|********************************************/
/*-------------------------------- Global Declarations ------------------------------*/
/*******************************************|********************************************/
/*---------------------------- API Function Declarations ----------------------------*/
/*******************************************|********************************************/
/*** Printing API */
/*** -------------------------------------------------------------------------------*/
extern EPS_ERR_CODE epsInitDriver (EPS_INT32, const EPS_USB_FUNC*,
const EPS_NET_FUNC*, const EPS_CMN_FUNC* );
extern EPS_ERR_CODE epsReleaseDriver (void );
extern EPS_ERR_CODE epsSetPrinter (const EPS_PRINTER* );
extern EPS_ERR_CODE epsStartJob (const EPS_JOB_ATTRIB* );
extern EPS_ERR_CODE epsStartPage (const EPS_PAGE_ATTRIB* );
extern EPS_ERR_CODE epsSendData (EPS_PRN_DATA* );
extern EPS_ERR_CODE epsPrintBand (const EPS_UINT8*, EPS_UINT32, EPS_UINT32* );
extern EPS_ERR_CODE epsEndPage (EPS_BOOL );
extern EPS_ERR_CODE epsEndJob (void );
extern EPS_ERR_CODE epsCancelJob (EPS_INT32 );
extern EPS_ERR_CODE epsContinueJob (void );
extern EPS_ERR_CODE epsSetAdditionalData (EPS_UINT32, const void* );
extern EPS_ERR_CODE epsRemAdditionalData (EPS_UINT32 );
/*** Find Printer Function */
/*** -------------------------------------------------------------------------------*/
extern EPS_ERR_CODE epsFindPrinter (EPS_INT32, EPS_UINT32 );
extern EPS_ERR_CODE epsProbePrinter (const EPS_PROBE* );
extern EPS_ERR_CODE epsCancelFindPrinter (void );
/*** Get Status Function */
/*** -------------------------------------------------------------------------------*/
extern EPS_ERR_CODE epsGetStatus (EPS_STATUS* );
extern EPS_ERR_CODE epsGetInkInfo (EPS_INK_INFO* );
/*** Get Supported Media Function */
/*** -------------------------------------------------------------------------------*/
extern EPS_ERR_CODE epsGetSupportedMedia (EPS_SUPPORTED_MEDIA* );
/*** Get Printable Area */
/*** -------------------------------------------------------------------------------*/
extern EPS_ERR_CODE epsGetPrintableArea (EPS_JOB_ATTRIB*, EPS_UINT32*, EPS_UINT32* );
/*** Maintenance Command function */
/*** -------------------------------------------------------------------------------*/
extern EPS_ERR_CODE epsMakeMainteCmd (EPS_INT32, EPS_UINT8*, EPS_UINT32* );
#ifdef __cplusplus
}
#endif
#endif /* def __EPSON_ESCPR_API_H__ */
/*_________________________________ epson-escpr-api.h _______________________________*/
/*34567890123456789012345678901234567890123456789012345678901234567890123456789012345678*/
/* 1 2 3 4 5 6 7 8 */
/*******************************************|********************************************/
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%|%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
/***** End of File *** End of File *** End of File *** End of File *** End of File ******/
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%|%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|