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 />

The maximum length value in CX specifies the number of characters which could be copied into the target string. You have to<br />

allocate one more character for the null termination.<br />

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

int iniGetString(char *sectionName, char *itemName, char *target, int maxlen)<br />

{<br />

union REGS inregs;<br />

union REGS outregs;<br />

struct SREGS sregs;<br />

inregs.h.ah = 0x24;<br />

inregs.x.bx = FP_SEG(sectionName);<br />

inregs.x.si = FP_OFF(sectionName);<br />

sregs.es = FP_SEG(itemName);<br />

inregs.x.di = FP_OFF(itemName);<br />

inregs.x.cx = maxlen;<br />

sregs.ds = FP_SEG(target);<br />

inregs.x.dx = FP_OFF(target);<br />

int86x(0xA0,&inregs,&outregs,&sregs);<br />

return outregs.x.ax;<br />

}<br />

// Declare a target buffer to be filled by iniGetString().<br />

unsigned char target[101];<br />

iniGetString("MY_SECTION", "MY_ITEM", target, 100);<br />

// Now target contains the chip.ini text for this item<br />

Interrupt 0xA0 service 0x25: Set the Stdio focus key<br />

Parameters<br />

AH<br />

AL<br />

Set the Stdio focus key<br />

Must be 0x25.<br />

Focus key character (default CTRL-F, ASCII 6)<br />

Return Value<br />

Comments<br />

Returns nothing<br />

By default, the focus key is set to CTRL-F (ASCII 6)<br />

At runtime, the pressed key Ctrl-F toggles between these three modes<br />

and shows the current mode.<br />

Key Range: 0..254<br />

If the key is set to zero, the switching of stdio is disabled.<br />

The focus key is not usable by the command shell or dos executable.<br />

Related Topics<br />

Top of list<br />

Index page<br />

Focus key definition<br />

Interrupt 0xA0 service 0x26: Get the <strong>IPC<strong>@CHIP</strong></strong> device names<br />

Page 92 / 400

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

Saved successfully!

Ooh no, something went wrong!