AcQuisition Technology Quad M-module Carrier i4000 User Manual Page 16

  • Download
  • Add to my manuals
  • Print
  • Page
    / 79
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 15
APIS - AcQ Platform Interface Software
Programmer’s Manual Version: 2.1
AcQuisition Technology bv
P.O. Box 627, 5340 AP
Oss, The Netherlands
Page 14 of 77
3.3.5. MULTI-PLATFORM SUPPORT
APIS must support multi-platform usage: An application must be able to access hardware on more
than one platform.
The macro APIS_MULTIPLATFORM is provided to use APIS in an environment that contains more
than one platform. When only one platform is used, the macro APIS_MULTIPLATFORM must NOT
be defined and APIS calls are made with apis_xxx. When more than one platform is used, the macro
APIS_MULTIPLATFORM must be defined and calls are made with _platform_xxx.
With multi-platform usage the application software must include both the platform dependent
definition files (platform_apis.h) and the general definition file apis.h.
Example of normal usage:
#include <apis.h>
apis_open(...);
Example of Multi-Platform usage:
OS-9 system consisting of a i6030 CPU board with 2 M-module sockets and an i4000
M-module carrier board.
#define APIS_MULTIPLATFORM
#include <apis.h>
#include <i4000os9_apis.h>
#include <i6030os9_apis.h>
_i4000os9_open(...);
_i6030os9_open(...);
The macro APIS_MULTIPLATFORM can be defined, either via a pre-processor definition provided at
compile time or via a macro-definition in the application source.
For details on multi-platform facilities refer to apis_i4000os9.h in the appendix.
Note: If the macro APIS_MULTIPLATFORM is defined, the previously described macro
PLATFORM must not be defined.
3.4. APIS FUNCTIONS DEFINITIONS
This section contains detailed information with respect to the APIS functions that can be used in APIS
based applications and that must be provided by the APIS platform support.
For an example of the functions described, refer to apis_i4000os9.c.
Page view 15
1 2 ... 11 12 13 14 15 16 17 18 19 20 21 ... 78 79

Comments to this Manuals

No comments