1A Set buzzer volume

INT 21H

 

Entry Parameters:

AH = 0x1A

 

 

BH = 3

 

 

AL = 0

;set LOW volume

 

1

;set MEDIUM volume

 

2

;set HIGH volume

Returned Values:

None

 

void TD_beeper_vol(int status)

{

regs.h.ah=0x1A;

regs.h.al= (unsigned char)status; regs.h.bh=3; int86(0x21,®s,®s); return(regsal);.h.

 

}

 

 

1B

Get Security state

INT 21H

 

 

Entry Parameters:

AH = 0x1B

 

 

 

BH = 7

 

 

Returned Values:

AL = 0

;close

 

 

1

;open

int TD_security_status()

{

regs.h.ah = 0x1B; regs.h.bh = 7; int86(0x21,®s,®s); return((int)regs.h.al);

 

}

 

 

1B

Alarm On/Off

INT 21H

 

 

Entry Parameters:

AH = 0x1B

 

 

 

BH = 8

 

 

 

AL = 0

;disable

 

 

1

;enable

 

Returned Values:

None

 

void TD_alarm(int status)

{

regs.h.ah = 0x1B;

regs.h.al = (unsigned char)status;

3-36

Page 37
Image 37
Unitech MR350MKII manual 1A Set buzzer volume, Get Security state, Alarm On/Off