EasyManuals Logo

BIXOLON SRP-270 Reference Guide

BIXOLON SRP-270
50 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #24 background imageLoading...
Page #24 background image
POS/Mobile Printer
Rev. 1.00
- 24 -
3-12 DirectIO
Send and read the user-defined data.
int DirectIO(char* writeData, int writeLen, char* readData, int* readLen,
unsigned int mTimeout)
[Parameters]
* char* writeData,
[in] Data to be sent to the printer
* int writeLen
[in] Size of data to be sent to the printer
write does not function if 0 is entered to writeData for NULL, writeLen.
* char* readData,
[in] Data to be sent to the printer
* int* readLen
[in] Read the size of the data to be read by the caller.
read does not function if 0 is entered to readData for NULL, readLen.
* unsigned int mTimeout
[in] Waiting time before reading the data. Even if no data has been read, it returns after
the set amount of time. If set to 0, it waits until there is incoming data.
[Return Values]
Constant
Value
Description
SUCCESS
0
The function is successful.
WRITE_ERROR
-105
Data transmission failed.
READ_TIMEOUT
-127
It timed out before reading the data.
* Example
char cmd[3] = { 0x10, 0x04, 0x01};
char readBuf[20] = {0x00,};
int readLen;
ConnectToPrinter(………..);
DirectIO(cmd, sizeof(cmd), readBuf, &readLen, 0);
……

Other manuals for BIXOLON SRP-270

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the BIXOLON SRP-270 and is the answer not in the manual?

BIXOLON SRP-270 Specifications

General IconGeneral
ColorNo
Maximum print size-
Media thickness76 mm
Print technologyDot matrix
Power requirements120-230VAC
Standard interfacesParallel, Serial

Related product manuals