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.

Top of list<br />

Index page<br />

RTX_GET_SEM Get counting semaphore without waiting<br />

<strong>RTOS</strong> Semaphore Services<br />

Interrupt 0xAD service 0x1C: RTX_FIND_SEM, Find semaphore by name<br />

Parameters<br />

AH<br />

ES:DI<br />

Get Semaphore ID using 4-char name.<br />

0x1C (= RTX_FIND_SEM)<br />

Pointer to 4 character name tag (no zero terminator needed)<br />

Return Value<br />

Comments<br />

DX =0 success AX: contains the semaphore ID<br />

DX!=0 failure AX: contains error code<br />

The semaphore ID obtained here is the handle required for the semaphore API functions.<br />

A semaphore created in some other program can be accessed in this manner.<br />

If more than one semaphore was created with the same tag, you will get back the semaphore ID of one<br />

with this tag. But which one is not certain.<br />

Related Topics<br />

Top of list<br />

Index page<br />

<strong>RTOS</strong> Semaphore Services<br />

Interrupt 0xAD service 0x28: RTX_GET_TIMEDATE, Get system time and date<br />

Parameters<br />

AH<br />

BX:SI<br />

0x28 (= RTX_GET_TIMEDATE)<br />

Output parameter: Pointer to TimeDate_Structure type allocated by user.<br />

Return Value<br />

Page 197 / 400

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

Saved successfully!

Ooh no, something went wrong!