A
RCHITECTURE
iap_control_function()
24
E
355/
E
265 U
SER
AND
B
EST
P
RACTICES
G
UIDE
iap_control_function()
This allows an application to control the keypad state. The possible functions
defined in SDK header, SVC.H, are:
•
IAP_CONTROL_KEYPAD_SLEEP
, turns off the keypad.
•
IAP_CONTROL_KEYPAD_WAKE
, turns the keypad on.
•
IAP_CONTROL_DISABLE_KEYBEEP
, turns off the keypad beeps.
•
IAP_CONTROL_ENABLE_KEYBEEP
, turns on the keypad beeps.
Prototype
int iap_control_function (int handle, int function);
Parameters
Return Values
Returns 0 if successful. If an error occurs, the function returns -1 and
errno
is set
to an error code.
iap_get_keypad_state()
Copies the keypad status to the given buffer. The first byte is the "Enable State."
The second byte is the "Beep State." The two status bytes are as follows:
•
<Enable State>
0 if keypad is disabled, 1 if keypad is enabled and awake, 2 if keypad is
enabled, but still waking up.
•
<Beep State>
0 if beeps are disabled, 1 if beeps are enabled.
Prototype
int iap_get_keypad_state (int handle, char*buffer);
Parameters
Return Values
Returns 0 if successful. If an error occurs, the function returns -1 and
errno
is set
to an error code.
handle
The handle returned for the device by the
open()
call.
function
An integer specifying the function to be performed.
handle
The handle returned for the device by the
open()
call.
buffer
A buffer of at least 2 bytes to hold keypad status.
Summary of Contents for e265
Page 1: ...Verifone Part Number DOC087 080 EN A Revision A e355 e265 User and Best Practices Guide...
Page 6: ...CONTENTS 6 E355 E265 USER AND BEST PRACTICES GUIDE...
Page 10: ...PREFACE Conventions and Acronyms 10 E355 E265 USER AND BEST PRACTICES GUIDE...
Page 64: ...SYSTEM MODE VTM Software Versions 64 E355 E265 USER AND BEST PRACTICES GUIDE...
Page 70: ...LOGGING OPTIONS logdump 70 E355 E265 USER AND BEST PRACTICES GUIDE...
Page 74: ...SOFTWARE PACKAGE Downloading 74 E355 E265 USER AND BEST PRACTICES GUIDE...
Page 76: ...CONTROL AND BARCODE APPLICATIONS Pipe Interface 76 E355 E265 USER AND BEST PRACTICES GUIDE...