Hisense HK870 Series System Integration Manual page 41

All-in-one point of sale system
Table of Contents

Advertisement

/*-----------------------------------------------
@brief : Get CD_SENSE low active
@Return :
1:Low active with no jitter
------------------------------------------------*/
int Get_CD_SENSE_Status()
{
if(inportb(CDS_PORT)&BIT6)
{ delay(100);
if(inportb(CDS_PORT)&BIT6)
{
printf("CD_SENSE is Low level stability.\n");
return 1;
}
}
else
printf("CD_SENSE is High level\n");
return 0;
}
main()
{
printf("System ready\n ");
/*Set_CD_OPEN High */
Set_CD_OPEN(1);
/*Set_CD_OPEN Low */
Set_CD_OPEN(0);
while(1)
{
Get_CD_SENSE_Status();
}
}
Hisense HK870 Series All-in-One POS System Integration
ManualPage 41 of 41

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hk870e

Table of Contents