SMART I/O User’s Manual
©1996 PEP Modular Computers GmbH
March 12, 1996
Page 5 - 17
5
Chapter 5 Analog Modules
5.1.8.2 SMDAD1Init
Syntax
error_code SMDAD1Init(u_int8 PortNr);
Description
This function initializes the resources needed to use the SM-DAD1 on port
PortNr
, including:
- testing of the SM-Module ID;
- reading the factory-set conversion table held in the EEPROM;
- setting the ADC to bipolar mode and the DAC to unipolar mode;
- fetching the resources.
Input
u_int8 PortNr
SM-Port number to initialize
(from 0 to 10)
Output
error_code
SUCCESS
or
E_BMODE
if wrong or no module
E_MEMFUL
if no memory resources available
or standard OS-9 error code (refer to the OS-9
Technical Manual Error Codes Section).
Example
RetVal = SMDAD1Init(0);
Note
If the same SM-DAD1 Module is to be accessed from different tasks, the
user must make sure that the actual output status is ensured by using for
example, semaphores within OS-9.
Содержание Modular Computers RS232
Страница 2: ...This page was intentionally left blank ...
Страница 12: ...This page was intentionally left blank ...
Страница 18: ...SMART I O User s Manual March 12 1996 1996 PEP Modular Computers GmbH Page 1 6 Introduction ...
Страница 89: ...Digital Modules 08 Jan 98 SMART I O User s Manual Page 4 1 Manual ID 09901 Rev Index 0500 Digital Modules ...
Страница 92: ...This page was intentionally left blank ...
Страница 143: ...Digital Modules 08 Jan 98 SMART I O User s Manual Page 4 57 Manual ID 09901 Rev Index 0500 Figure 4 3 Solder Side ...
Страница 149: ...Digital Modules 08 Jan 98 SMART I O User s Manual Page 4 63 Manual ID 09901 Rev Index 0500 Figure 4 7 Connection ...