POS/Mobile Printer
Rev. 1.00
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]
The function is successful.
Data transmission failed.
The specified argument is not correct.
The function is not supported.
The response data is incorrect.
int ret;
char response = 0xff;
char pATR[512] = {0x00,};
unsigned int atrLne = 512;
ConnectToPrinter(………..);
…….
ret = ScrPowerUp(pATR, &atrLen, &response);
if (0x00 != scrData.ResponseS)
return;
……