Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Xlib Extensions: > Chapter 6 HP Input Device Extension Functions

Sending an Acknowledge to Extended Input Devices

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

To send an acknowledge signal to an extended input device, use XHPAcknowledge.

int XHPAcknowledge(display, deviceid, acknowledge)
Display *display;
XID deviceid;
unsigned int acknowledge;

Title not available (Sending an Acknowledge to Extended Input Devices )

display

Specifies the connection to the X server.

deviceid

Specifies the ID of the desired device.

acknowledge

Specifies the acknowledge to be sent. Valid values are: GENERAL_ACKNOWLEDGE, ACKNOWLEDGE_1, ACKNOWLEDGE_2, ACKNOWLEDGE_3, ACKNOWLEDGE_4, ACKNOWLEDGE_5, ACKNOWLEDGE_6, and ACKNOWLEDGE_7.

XHPAcknowledge sends an acknowledge to an input device. For example, you can use this function to turn off the LED on the HP 46086A 32-button box.

The io_byte field of the XHPDeviceList structure (which is returned by the XHPListInputDevices function) reports which prompts and acknowledges are supported by the device. Bit 7 of the io_byte field corresponds to GENERAL_ACKNOWLEDGE, while bits 6, 5, and 4 are taken as a number between 1 and 7, meaning that acknowledges numbered 1 through that number are supported.

XHPAcknowledge can generate BadDevice and BadValue errors.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1995 Hewlett-Packard Development Company, L.P.