Scrpowerup - BIXOLON SRP-270 Reference Manual

Linux sdk guide for pos/mobile printer
Hide thumbs Also See for SRP-270:
Table of Contents

Advertisement

3-33 ScrPowerUp

Turn on the SCR. This function is only available on SPP-R210 SCR.
long ScrPowerUp(char *pATR, unsigned int *ATRLen, char *pResponse)
[Parameters]
* char *pATR
[in, out] ATR(Answer To Reset) data
* unsigned int *ATRLen
[in, out] ATR data length
* char *pResponse
[in, out] Response to power up
[Return Values]
Constant
SUCCESS
WRITE_ERROR
BAD_ARGUMENT
NOT_SUPPORT
SCR_RESPONSE_ERROR
* Example
int ret;
char response = 0xff;
char pATR[512] = {0x00,};
unsigned int atrLne = 512;
ConnectToPrinter(...........);
.......
ret = ScrPowerUp(pATR, &atrLen, &response);
if (0x00 != scrData.ResponseS)
return;
......
Rev. 1.00
Value
0
-105
-117
The specified argument is not correct.
-124
The function is not supported.
-126
The response data is incorrect.
- 45 -
POS/Mobile Printer
Description
The function is successful.
Data transmission failed.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents