CAPS Universe documentation  1.0.4
All you need to know to be successful
Data Structures | Macros | Enumerations | Functions
ql8-series.h File Reference

Collection of macros and functions shared by all QL8xx printer drivers. More...

Go to the source code of this file.

Data Structures

struct  ql8_status
 Format of the status report of QL8xx printers. More...
 
struct  ql8_job_options
 Information about the current job related to QL8xx specific capabilities. More...
 
struct  ql8_drv
 Driver information for the QL8 family of printer drivers. More...
 

Macros

#define QL800_ID   0x3438
 
#define QL810W_ID   0x3439
 
#define QL820NWB_ID   0x3441
 

Enumerations

enum  ql_error_info_1 {
  QL_NO_MEDIA = BIT(0) ,
  QL_END_OF_MEDIA = BIT(1) ,
  QL_TAPE_CUTTER_JAM = BIT(2) ,
  QL_MAIN_UNIT_IN_USE = BIT(4) ,
  QL_FAN_BROKEN = BIT(7) ,
  QL_NO_MEDIA = BIT(0) ,
  QL_END_OF_MEDIA = BIT(1) ,
  QL_TAPE_CUTTER_JAM = BIT(2) ,
  QL_MAIN_UNIT_IN_USE = BIT(4) ,
  QL_MAIN_UNIT_OFF = BIT(5)
}
 
enum  ql_error_info_2 {
  QL_TRANSMISSION_ERROR = BIT(2) ,
  QL_COVER_OPENED = BIT(4) ,
  QL_CANNOT_FEED = BIT(6) ,
  QL_SYSTEM_ERROR = BIT(7) ,
  QL_REPLACE_MEDIA = BIT(0) ,
  QL_TRANSMISSION_ERROR = BIT(2) ,
  QL_COVER_OPENED = BIT(4) ,
  QL_CANNOT_FEED = BIT(6) ,
  QL_SYSTEM_ERROR = BIT(7)
}
 
enum  ql_media_type {
  QL_MT_UNKNOWN = 0x00 ,
  QL_MT_CONTINUOUS = 0x0A ,
  QL_MT_DIE_CUT = 0x0B ,
  QL_MT_UNKNOWN = 0x00 ,
  QL_MT_CONTINUOUS = 0x0A ,
  QL_MT_DIE_CUT = 0x0B
}
 
enum  ql_status_type {
  ST_REPLY = 0x00 ,
  ST_COMPLETED = 0x01 ,
  ST_ERROR = 0x02 ,
  ST_NOTIFICATION = 0x05 ,
  ST_PHASE_CHANGE = 0x06 ,
  ST_REPLY = 0x00 ,
  ST_COMPLETED = 0x01 ,
  ST_ERROR = 0x02 ,
  ST_NOTIFICATION = 0x05 ,
  ST_PHASE_CHANGE = 0x06
}
 

Functions

static struct ql8_drvto_ql8_drv (void *d)
 

Detailed Description

Author
Jürgen Borleis
Warning
Use as experimental

Macro Definition Documentation

◆ QL800_ID

#define QL800_ID   0x3438

◆ QL810W_ID

#define QL810W_ID   0x3439

◆ QL820NWB_ID

#define QL820NWB_ID   0x3441

Enumeration Type Documentation

◆ ql_error_info_1

Enumerator
QL_NO_MEDIA 
QL_END_OF_MEDIA 
QL_TAPE_CUTTER_JAM 
QL_MAIN_UNIT_IN_USE 

QL-560/650TD/1050 only

QL_FAN_BROKEN 

QL-1050/1060N only

QL_NO_MEDIA 
QL_END_OF_MEDIA 
QL_TAPE_CUTTER_JAM 
QL_MAIN_UNIT_IN_USE 
QL_MAIN_UNIT_OFF 

◆ ql_error_info_2

Enumerator
QL_TRANSMISSION_ERROR 
QL_COVER_OPENED 

Not QL500

QL_CANNOT_FEED 
QL_SYSTEM_ERROR 
QL_REPLACE_MEDIA 
QL_TRANSMISSION_ERROR 
QL_COVER_OPENED 
QL_CANNOT_FEED 
QL_SYSTEM_ERROR 

◆ ql_media_type

Enumerator
QL_MT_UNKNOWN 

Missing cassette indication or no media

QL_MT_CONTINUOUS 
QL_MT_DIE_CUT 
QL_MT_UNKNOWN 

Missing cassette indication

QL_MT_CONTINUOUS 

Datasheet states 0x4a, experiences show: 0x0a

QL_MT_DIE_CUT 

Datasheet states 0x4b, experiences show: 0x0b

◆ ql_status_type

Enumerator
ST_REPLY 
ST_COMPLETED 
ST_ERROR 
ST_NOTIFICATION 
ST_PHASE_CHANGE 
ST_REPLY 
ST_COMPLETED 
ST_ERROR 
ST_NOTIFICATION 
ST_PHASE_CHANGE 

Function Documentation

◆ to_ql8_drv()

static struct ql8_drv * to_ql8_drv ( void *  d)
inlinestatic

Convert the anonymous pointer used in libcapsdriver into our QL8 information collection

Parameters
[in]dAnonymous structure pointer
Returns
Pointer to our struct hl1_drv