Elo TouchSystems 15A1 manual

Page 37

*/

int main(int argc, char *argv[])

{

printf("\nELO SBC6 Cash Drawer Demo.\n"); if( is_open() )

printf("\nCash register is open.\n"); else

printf("\nCash register is closed.\n"); printf("\nOpening Cash Drawer 1.\n");

open_drawer(DRAWER1); printf("\nOpening Cash Drawer 2.\n"); open_drawer(DRAWER2);

if( is_open() )

printf("\nCash register is open.\n"); else

printf("\nCash register is closed.\n"); return(0);

}

/*

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

Function:

Parameters:

Return:

Exit:

Description:

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

*/

int is_open(void)

{

int data = 0;/* Chipset register data */ /* Clear status register. */

_outp(GPE0_STS3,CASH_STS_MSK); Sleep(10);

/* Read status register. */ _inp(GPE0_STS3);

data &= CASH_STS_MSK; data >>= 5; return(data);

}

Elo TouchSystems 15A1 User Guide 37

Image 37
Contents Touchcomputer User Guide LCD Multifunction Touchcomputer Elo TouchSystems Touchcomputer User GuideRevision C E362310 Elo TouchSystems Disclaimer Copyright 2008 Tyco Electronics. All Rights ReservedTable of Contents Regulatory Information Warranty Unpacking Your Touchcomputer SetupFront View Rear View Product OverviewSide View Base Bottom View Display Orientation Display Orientation with Peripherals Language Selection Initial Turn-OnPage 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 Cash Drawer Port Testing the Customer Display optionalOperation OSD Menu OSD ControlShortcut keys OSD LockoutTo lock the OSD To unlock the OSDPower Button Power ControlPower Lockout To lock the PowerUsing the I/O panel KensingtonTM Lock PS/2 UniversalBase Bottom View Mounting Pattern Securing the Touchcomputer BaseDisplay Angle Adding Peripherals UpgradesMaintenance Waste Electrical and Electronic Equipment Weee Directive Care and Handling of Your TouchcomputerServicing the Hard Disk Drive To Install Hard Disk DriveRecovering the Operating System Technical Specifications RAM Touchcomputer SpecificationsPage 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 Control Cash Drawer Port Signal Definition and ControlPage Page Display Mode Display SpecificationsPower Supply Specifications Touchscreen Specifications Magnetic Stripe Reader MSR Peripherals SpecificationsCustomer Display USB VersionTemperature Ranges Environmental SpecificationsUsing the Web Using the Phone Using the TouchcomputerTechnical Support Technical AssistanceRegulatory Information Electrical Safety InformationII. Emissions and Immunity Information Page III. Safety Label Warranty Page Check out Elo’s Website