Elo TouchSystems 15A1 User Guide 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() );
}
Содержание 15A1
Страница 1: ...Touchcomputer User Guide 15A1 15 LCD Multifunction Touchcomputer...
Страница 8: ...Elo TouchSystems 15A1 User Guide 8 Side View Base Bottom View Note Shown with optional peripherals...
Страница 9: ...Elo TouchSystems 15A1 User Guide 9 Display Orientation...
Страница 10: ...Elo TouchSystems 15A1 User Guide 10 Display Orientation with Peripherals...
Страница 27: ...Elo TouchSystems 15A1 User Guide 27 C H A P T E R 4 Maintenance...
Страница 31: ...Elo TouchSystems 15A1 User Guide 31 C H A P T E R 5 Technical Specifications...