01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Parameters<br />

AH<br />

AL<br />

BX<br />

Must be 0x33.<br />

Bit 0 = 1 set stdout, Bit 1 = 1 set stdin<br />

Channel bits, see comment<br />

Return Value<br />

Comments<br />

Top of list<br />

Index page<br />

AX=0 DX=0: Success<br />

AX=DX=-1: Invalid parameter<br />

Channel bits for BX register:<br />

Bit 0: Serial port 0 (PORT EXT)<br />

Bit 1: Serial port 1 (PORT COM)<br />

Bit 2: Telnet server<br />

Bit 3: User channel<br />

Setting a bit to zero deactivates this channel, setting a bit to one activates the specified channel<br />

Interrupt 0xA0 service 0x34: Get stdin/stdout settings<br />

Parameters<br />

AH<br />

Get the stdin/stdout settings<br />

Must be 0x34.<br />

Return Value<br />

Comments<br />

Top of list<br />

Index page<br />

AX=0, BX contains stdout settings, CX: stdin settings<br />

Return values<br />

Bit 0 == 1: Serial port 0 (EXT)<br />

Bit 1 == 1: Serial port 1 (COM)<br />

Bit 2 == 1: Telnet server<br />

Bit 3 == 1: User channel<br />

Interrupt 0xA0 service 0x35: Install user specific stdio handlers<br />

Installs user specific stdio channel handlers.<br />

This API call allows the user to install their own stdio handler functions, e.g. for a user developed input/output device connected to<br />

the <strong>IPC<strong>@CHIP</strong></strong> (e.g. a display and/or keyboard device) or a user TCP application similar to Telnet.<br />

The user must implement inside of their application four functions for reading and writing characters from/to their stdin/stdout device.<br />

After installing these functions with this API call and setting stdin and/or stdout to include the user channel with Set stdio channels,<br />

Page 97 / 400

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!