3-41
BH = 5
BL = 0 ; for both 26- and 36-bit formats
26 ; for 26-bit only
36 ; for 36-bit only
0xff ; for un-formatted data
AL = 0 ; Disable
1 ; Enable
Returned Values: None
void TD_set_wiegand_status(int status,int type)
{
regs.h.ah= 0x1f;
regs.h.al= (unsigned char)status;
regs.h.bh= 5;
if (type == -1) regs.h.bl= 0xff;
else regs.h.bl= (unsigned char)type;
int86(0x21,&regs,&regs);
}
1F Get Decoder status of Wiegand Format (Proximity reader)
Entry Parameters: AH = 0x1F
BH = 6
BL = 0 ; for both 26- and 36-bit formats
27 ; for 26-bit only
37 ; for 36-bit only
0xff ; for un-formatted data
Returnne value AL = 0 ; Disable
1 ; Enable
int TD_get_wiegand_status(int type)
{
regs.h.ah= 0x1f;
regs.h.bh= 6;
if (type == -1) regs.h.bl= 0xff;
else regs.h.bl= (unsigned char)type;
int86(0x21,&regs,&regs);
return(regs.h.al);
}
1A Assign barcode or magnetic stripe input of Internal reader
Entry Parameters: AH = 0x1A
BH = 6