Unitech MR350MKII Barcode Reader User Manual


 
3-42
AL = 0 ;assign barcode input
1 ;assign magnetic stripe input
Returned Values: None
void TD_set_internal_type(int status)
{
regs.h.ah= 0x1A;
regs.h.al= (unsigned char)status;
regs.h.bh= 6;
int86(0x21,&regs,&regs);
return(regs.h.al);
}
1F Enable the decoding of a barcode symbology
Entry Parameters: AH = 0x1F
BH = 1
AL = 0 ; Disable
1 ; Enable
BL = 0 ; All
1 : Code 39
2 : I 2 of 5
3 : CODABAR
4 : EAN/UPC
5 : Code 128
Returned Values: None
void TD_set_decode_status(int status,int type)
{
regs.h.ah = 0x1F;
regs.h.al = (unsigned char)status;
regs.h.bh = 1;
regs.h.bl = (unsigned char)type;
int86(0x21,&regs,&regs);
}
3.7. Miscellaneous: INT 21H
1A Check lithium battery level
Entry Parameters: AH = 0x1A
BH =09h