Elo TouchSystems 15A1 manual

Page 38

/*

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

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 15A1 User Guide 38

Image 38
Contents Touchcomputer User Guide Revision C E362310 Elo TouchSystems Elo TouchSystems Touchcomputer User GuideLCD Multifunction Touchcomputer Copyright 2008 Tyco Electronics. All Rights Reserved DisclaimerTable of Contents Regulatory Information Warranty 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 Calibration Testing the TouchscreenTest Devices Testing in USB MSR Human Interface Device HID Mode Testing the Magnetic Stripe Reader MSR optionalTesting in USB MSR Keyboard KB Emulation Mode Converting MSR from Keyboard Emulation to HID and vice versa Testing the Customer Display optional Testing the Cash Drawer PortOperation 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 PS/2 Universal KensingtonTM LockSecuring the Touchcomputer Base Base Bottom View Mounting PatternDisplay Angle Upgrades Adding PeripheralsMaintenance Care and Handling of Your Touchcomputer Waste Electrical and Electronic Equipment Weee DirectiveTo Install Hard Disk Drive Servicing the Hard Disk DriveRecovering the Operating System Technical Specifications Touchcomputer Specifications RAMPage RS485 Mode Pin Definitionfor COM2 only COM1, COM2 ConnectorRS232 ModeRS422 Mode Pin Definitionfor COM2 only Power Input Pin Definition RJ45 connector Pin DefinitionDB9 connector Pin Definition Cash Drawer Port Signal Definition and Control ControlPage Page Display Specifications Display ModePower Supply Specifications Touchscreen Specifications Customer Display Peripherals SpecificationsMagnetic Stripe Reader MSR USB VersionEnvironmental Specifications Temperature RangesTechnical Support Using the TouchcomputerUsing the Web Using the Phone Technical AssistanceII. Emissions and Immunity Information Electrical Safety InformationRegulatory Information Page III. Safety Label Warranty Page Check out Elo’s Website