DMCP interface  03.15_020

IR printer functions. More...

Macros

#define PRINT_GRA_LN   1
 Graphics line type for printer buffer emulation.
 
#define PRINT_TXT_LN   0
 Text line type for printer buffer emulation.
 
#define MAX_82240_WIDTH   166
 Printer line width (pixels)
 
#define DFLT_82240_LINE_DUR   1800
 Default line print delay.
 

Functions

void print_byte (uint8_t b)
 Send byte to printer. More...
 
void print_buffer (uint8_t *buf, int cnt)
 Send bytes to printer. More...
 
int print_is_ready ()
 Check whether IR hw is ready for send. More...
 
uint printer_get_delay ()
 Returns current printer line delay. More...
 
void printer_set_delay (uint val)
 Sets printer line delay. More...
 
void printer_advance_buf (int what)
 Add line type to printer buffer emulation. More...
 
int printer_busy_for (int what)
 Wait until printer buffer is free for given line type. More...
 

Detailed Description

IR printer functions.

At this time supports HP-82240 compatible printers only.

Function Documentation

◆ print_buffer()

void print_buffer ( uint8_t *  buf,
int  cnt 
)

Send bytes to printer.

Parameters
bufBytes to send
cntNumber of bytes to send

◆ print_byte()

void print_byte ( uint8_t  b)

Send byte to printer.

Parameters
bByte to send

◆ print_is_ready()

int print_is_ready ( )

Check whether IR hw is ready for send.

Returns
(0/1) 1 = IR hw is ready

◆ printer_advance_buf()

void printer_advance_buf ( int  what)

Add line type to printer buffer emulation.

Parameters
whatPrinter line type

◆ printer_busy_for()

int printer_busy_for ( int  what)

Wait until printer buffer is free for given line type.

Parameters
whatPrinter line type

◆ printer_get_delay()

uint printer_get_delay ( )

Returns current printer line delay.

Returns
[ms] Printer line delay

◆ printer_set_delay()

void printer_set_delay ( uint  val)

Sets printer line delay.

Parameters
val[ms] Printer line delay