PT630 Programming Reference Guide
Page 21 of 59
------------------------------------------------------------------------------------------------------------------
1.5.12.7 Check Main Battery Status
Entry Parameter: AH = 1AH
BH = 8
Return Value:
AL = 0/1
; Normal / Battery low
Example
:
int TS_battery()
{
regs.h.ah= 0x1A;
regs.h.bh= 8;
int86(0x21,®s,®s);
return(regs.h.al);
}
1.5.12.8 Check Backup Battery Status
Entry Parameter: AH = 1AH
BH = 9
Return Value:
AL = 0/1
; Normal / Battery Low
Example
:
int TS_lithium_battery()
{
regs.h.ah= 0x1A;
regs.h.bh= 9;
int86(0x21,®s,®s);
return(regs.h.al);
}
1.5.12.9 Set Good-read LED
Entry Parameter: AH = 1AH
BH = 0AH
AL =
0
; Set the Good-read LED (green light) OFF
1 ;
Set
the
Good-read
LED
(green
light)
ON
2 ;
Set
the
Good-read
LED
controlled
by
system
Return
Value:
None
Note:
If the function is called by AL=0 or AL=1, the system will not control
Good-read LED ON/OFF when a bar code label is decoded successfully.
Example
:
void TS_bar_good_read(int status)
{
regs.h.ah= 0x1A;
regs.h.bh= 0x0A;
regs.h.al= (unsigned char)status;
int86(0x21,®s,®s);
}