Tyco Electronics 17A2 manual

Page 46

/*

=============================================================================

Function:

Parameters:

Return:

Exit:

Description:

=============================================================================

*/

int open_drawer(int drawer)

{

int data = 0;

/* Chipset register data */

int status = 0;

/* Cash drawer status signal */

/* Get current cash drawer status. */ status = is_open();

if( status ) {

printf("\nCash Register is already open.\n"); return(1);

}

/* Toggle cash drawer signals - low pulse. */ data = _inp(GP_LVL3);

if( drawer == DRAWER1 ) data &= ~GPIO_2;

if( drawer == DRAWER2 ) data &= ~GPIO_3;

_outp(GP_LVL3,data); Sleep(50);

if( drawer == DRAWER1 ) data = GPIO_2;

if( drawer == DRAWER2 ) data = GPIO_3;

_outp(GP_LVL3,data); return(1);

}

void Sleep(clock_t t)

{

clock_t t2;

t2 = t + clock(); while( t2 > clock() );

}

Elo TouchSystems 17A2 User Guide 46

Image 46
Contents Touchcomputer User Guide LCD Multifunction Touchcomputer Elo TouchSystems Touchcomputer User GuideRevision D E926979 Elo TouchSystems Copyright c 2008 Tyco Electronics. All Rights Reserved DisclaimerTable of Contents Technical Support Setup Unpacking Your TouchcomputerProduct Overview Front View Rear ViewSide View Base Bottom View Display Orientation Display Orientation with Peripherals Initial Turn-On Language SelectionPage Time-zone selection Test Devices Testing the TouchscreenCalibration Testing in USB MSR Keyboard KB Emulation Mode Testing the Magnetic Stripe Reader MSR optionalTesting in USB MSR Human Interface Device HID Mode Converting MSR from Keyboard Emulation to HID and vice versa Testing the Customer Display optional Testing the Finger Print Reader optional Testing the Barcode Scanner optional Page Enabling 2-D Scanning Testing the DVD Drive optional Testing the Speaker Bar optionalChanging DVD region Testing the Wireless Card optional Testing the TV tuner optionalTesting the Cash Drawer Port Operation OSD Control OSD MenuTo lock the OSD OSD LockoutShortcut keys To unlock the OSDPower Lockout Power ControlPower Button To lock the PowerUsing the I/O panel TV Tuner optional PS/2 UniversalKensingtonTM Lock Snap off stand cover Securing the Touchcomputer BaseMounting Option Mount as shownMounting Option Display Angle Upgrades Adding PeripheralsMaintenance Care and Handling of Your Touchcomputer Waste Electrical and Electronic Equipment Weee DirectiveTo Install the Hard Disk Drive Servicing the Hard Disk Drive and Compact Flash CardRecovering the Operating System To Install the Compact Flash CardTechnical Specifications Touchcomputer Specifications RAMPage RS422 Mode Pin Definitionfor COM2 only COM1, COM2 ConnectorRS232 ModeRS485 Mode Pin Definitionfor COM2 only DB9 connector Pin Definition RJ45 connector Pin DefinitionPower Input Pin Definition Cash Drawer Port Signal Definition and Control ControlPage Page Display Specifications Power Supply Specifications Touchscreen Specifications Customer Display Peripherals SpecificationsMagnetic Stripe Reader MSR USB VersionFingerprint Reader USB-SSI converter board Elo P/N E580321 specifications One-Dimensional scanner specificationsOmni-Directional scanner Elo P/N E787026 specifications Barcode ScannerSpeaker Bar DVD Drive Wireless Card TV Tuner CardHumidity Environmental SpecificationsTemperature Ranges AltitudeTechnical Support Using the TouchcomputerUsing the Web Using the Phone Technical AssistanceRegulatory Information Electrical Safety InformationII. Emissions and Immunity Information Page III. Safety Label Warranty Page Check out Elo’s Website