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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Top of list<br />

Index page<br />

No return from this function occurs due to system reboot.<br />

Interrupt 0xA0 service 0x22: Get version string<br />

Parameters<br />

AH<br />

CX<br />

ES<br />

DI<br />

Copies the <strong>@CHIP</strong>-<strong>RTOS</strong> version information in to a text buffer. The string is null terminated.<br />

Must be 0x22<br />

Buffer length, including space for null terminator<br />

Segment of memory buffer for the string<br />

Offset of memory buffer for the string<br />

Related Topics<br />

Top of list<br />

Index page<br />

VER shell command<br />

Interrupt 0xA0 service 0x23: Insert an entry in chip.ini<br />

The functions 0x23 and 0x24 allows the user to modify/place and find/read<br />

your own chip.ini entries.<br />

Parameters<br />

AH<br />

BX:SI<br />

ES:DI<br />

Must be 0x23.<br />

Pointer to section string (max. 40 chars)<br />

Pointer to item name (max. 40 chars)<br />

DS:DX<br />

Pointer to item text (max. 128 chars)<br />

Return Value<br />

Comments<br />

AX=0 success , AX=-1 invalid string length<br />

Important: The API functions 0x23 and 0x24 are not reentrant.<br />

Don't use in different tasks or in combination with <strong>@CHIP</strong>-<strong>RTOS</strong> commands,<br />

which are writing to chip.ini e.g. DHCP. Avoid race conditions with<br />

any other API call, which writes or read also to/from chip.ini<br />

e.g. service 0x02<br />

Example (tested with Borland C/C++ 5.02):<br />

Page 90 / 400

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

Saved successfully!

Ooh no, something went wrong!