Cash Drawer
/*
This Demo program for POS box
CD_SENSE GP23
CD_OPEN GP36
*/
#include "stdio.h"
#include "conio.h"
#include "graphics.h"
#include "string.h"
#include "io.h"
#define BIT0 0x01
#define BIT1 0x02
#define BIT2 0x04
#define BIT3 0x08
#define BIT4 0x10
#define BIT5 0x20
#define BIT6 0x40
#define BIT7 0x80
#define IO_Base
0xA00
#define CDS_PORT 1
#define CDO_PORT 2
void Init_DIO_Default()
{
}
/*-----------------------------------------------
@brief : Set CD_OPEN power level
@Input : Level-- 0:Low 1: High
------------------------------------------------*/
void Set_CD_OPEN(int Level)
{ int t;
if(Level)
{ outportb(CDO_PORT,inportb(CDO_PORT)|BIT6);
printf(" CD_OPEN is High \n");
}
else
{
outportb(CDO_PORT,inportb(CDO_PORT) &~BIT6);
printf("CD_OPEN is Low\n");
}
}
/*-----------------------------------------------
@brief : Get CD_SENSE low active
@Return : 1:Low active with no jitter
------------------------------------------------*/
Содержание HK570
Страница 1: ...HK570 Touch Terminal User s Manual Document Version 1 0 ...
Страница 9: ...06 Dimension ...
Страница 15: ......
Страница 19: ...appearance of your displays dialog window ...
Страница 20: ...Part 4 Motherboard 01 Motherboard Layout ...
Страница 27: ...24V DC 24V 4 PIN DC JACK defined 1 24V 2 24V 3 GND 4 GND Part 4 System Assembly Disassembly 1 2 3 4 ...