Tyco Electronics 17A2 manual

Page 45

*/

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 17A2 User Guide 45

Image 45
Contents Touchcomputer User Guide Elo TouchSystems Touchcomputer User Guide LCD Multifunction TouchcomputerRevision D E926979 Elo TouchSystems Disclaimer Copyright c 2008 Tyco Electronics. All Rights ReservedTable of Contents Technical Support 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 Testing the Touchscreen Test DevicesCalibration Testing the Magnetic Stripe Reader MSR optional Testing in USB MSR Keyboard KB Emulation ModeTesting 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 Speaker Bar optional Testing the DVD Drive optionalChanging DVD region Testing the TV tuner optional Testing the Wireless Card optionalTesting the Cash Drawer Port Operation 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 PS/2 Universal TV Tuner optionalKensingtonTM Lock Mounting Option Securing the Touchcomputer BaseSnap off stand cover Mount as shownMounting Option Display Angle Adding Peripherals UpgradesMaintenance Waste Electrical and Electronic Equipment Weee Directive Care and Handling of Your TouchcomputerServicing the Hard Disk Drive and Compact Flash Card To Install the Hard Disk DriveTo Install the Compact Flash Card Recovering the Operating SystemTechnical Specifications RAM Touchcomputer SpecificationsPage COM1, COM2 ConnectorRS232 Mode RS422 Mode Pin Definitionfor COM2 onlyRS485 Mode Pin Definitionfor COM2 only RJ45 connector Pin Definition DB9 connector Pin DefinitionPower Input Pin Definition Control Cash Drawer Port Signal Definition and ControlPage Page Display Specifications Power Supply Specifications Touchscreen Specifications Magnetic Stripe Reader MSR Peripherals SpecificationsCustomer Display USB VersionFingerprint Reader Omni-Directional scanner Elo P/N E787026 specifications One-Dimensional scanner specificationsUSB-SSI converter board Elo P/N E580321 specifications Barcode ScannerSpeaker Bar DVD Drive TV Tuner Card Wireless CardTemperature Ranges Environmental SpecificationsHumidity AltitudeUsing the Web Using the Phone Using the TouchcomputerTechnical Support Technical AssistanceElectrical Safety Information Regulatory InformationII. Emissions and Immunity Information Page III. Safety Label Warranty Page Check out Elo’s Website