Iap_Control_Function(); Iap_Get_Keypad_State() - VeriFone e355 User And Best Practices Manual

Hide thumbs Also See for e355:
Table of Contents

Advertisement

A
RCHITECTURE

iap_control_function()

iap_control_function()
Prototype
Parameters
Return Values

iap_get_keypad_state()

Prototype
Parameters
Return Values
24
355/
265 U
E
E
SER AND
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.
int iap_control_function (int handle, int function);
handle
function
Returns 0 if successful. If an error occurs, the function returns -1 and errno is set
to an error code.
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.
int iap_get_keypad_state (int handle, char*buffer);
handle
buffer
Returns 0 if successful. If an error occurs, the function returns -1 and errno is set
to an error code.
B
P
G
EST
RACTICES
UIDE
The handle returned for the device by the open() call.
An integer specifying the function to be performed.
The handle returned for the device by the open() call.
A buffer of at least 2 bytes to hold keypad status.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

E265

Table of Contents