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

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

Go to the source code of this file.

Data Structures

struct  ql5_status
 Format of the status report of QL5xx printers. More...
 
struct  ql5_drv
 Driver information for the QL5 family of printer drivers. More...
 

Macros

#define QL500_ID   0x304f
 
#define QL550_ID   0x304f
 
#define QL560_ID   0x3431
 
#define QL570_ID   0x3432
 
#define QL580N_ID   0x3433
 
#define QL650TD_ID   0x3051
 
#define QL700_ID   0x3435
 
#define QL1050_ID   0x3050
 
#define QL1060_ID   0x3434
 

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 ql5_drvto_ql5_drv (void *d)
 

Detailed Description

Author
Jürgen Borleis
Warning
Use as experimental

Macro Definition Documentation

◆ QL500_ID

#define QL500_ID   0x304f

◆ QL550_ID

#define QL550_ID   0x304f

◆ QL560_ID

#define QL560_ID   0x3431

◆ QL570_ID

#define QL570_ID   0x3432

◆ QL580N_ID

#define QL580N_ID   0x3433

◆ QL650TD_ID

#define QL650TD_ID   0x3051

◆ QL700_ID

#define QL700_ID   0x3435

◆ QL1050_ID

#define QL1050_ID   0x3050

◆ QL1060_ID

#define QL1060_ID   0x3434

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_ql5_drv()

static struct ql5_drv * to_ql5_drv ( void *  d)
inlinestatic

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

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