AH = 0
AL = Data character
2) if no character received AH = 1
AL = undefined
unsigned char TC_485_char_I()
{
regs.h.ah = 1; int86(0x33,®s,®s); if (regs.h.ah == 0)
return(regs.h.al);
return(255);
| } |
|
02 | Output data |
|
| Entry Parameters: | AH = 2 |
|
| AL = Data character |
| Returned Values: | None |
void TC_485_char_O(unsigned char ch)
{
regs.h.ah = 2; regs.h.al = ch; int86(0x33,®s,®s);
}
03 Enable RS-485 port for serial I/O
Entry Parameters: | AH = 3 |
Returned Values: | None |
void TC_485_enable()
{
regs.h.ah = 3; int86(0x33,®s,®s);
}
04 Disable RS-485 port for serial I/O
Entry Parameters: | AH = 4 |
Returned Values: | None |
void TC_485_disable()
{
regs.h.ah = 4;