21.01.2015 Views

INtime® 3.1 Software - tenAsys

INtime® 3.1 Software - tenAsys

INtime® 3.1 Software - tenAsys

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.

B<br />

The iwin32 subsystem<br />

This appendix describes the iwin32 subsystem, which provides a Win32 API for the<br />

INtime kernel. It is provided as a parallel API to the INtime API, and is intended to<br />

make porting of existing Win32 applications easier. A subset of the Win32 functions is<br />

implemented, and some extensions are defined to handle INtime features such as<br />

interrupt handling and shared memory. The functionality of the subset is broadly<br />

similar to the Windows CE version of the Win32 API, since Windows CE and INtime<br />

have similar goals. Some groups of functions have been omitted where INtime does not<br />

require the functionality, such as with the GUI functions.<br />

The elements covered by the iwin32 API include the following:<br />

• Processes and threads<br />

• Mutexes, critical sections, semaphores and events<br />

• I/O handling<br />

• Registry handling<br />

• Miscellaneous<br />

In addition a number of real-time extension (RTX) functions are provided where more<br />

real-time functionality is required; this includes functions for:<br />

• Interrupt handling<br />

• Shared memory<br />

• Timers<br />

This appendix also describes the iwin32x API, which gives access to real-time iwin32<br />

objects from a Windows application, much in the same way that the NTX API gives<br />

access to INtime objects from a Windows application.<br />

Handles<br />

Each object is identified by a handle. In INtime an object is uniquely identified by a<br />

single handle value (16 bits for INtime, 32 bits for NTX). This handle can be used in<br />

any INtime process and in Windows processes (using NTX). When the object is deleted<br />

with a type-specific deletion function such as DeleteRtSemaphore, the handle becomes<br />

invalid.<br />

Iwin32 has a different handle system: the Create and Open functions return a handle<br />

and different callers may receive different handles for the same object. A handle is<br />

stored in 32 bits; an iwin32 handle can be distinguished from an INtime handle<br />

141

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

Saved successfully!

Ooh no, something went wrong!