ARCHITECTURE
iap_control_function()
24 E355/E265 USER AND BEST PRACTICES GUIDE
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.