SMART I/O User's Manual
5.5.8.2 SMDAC1Init
Syntax
error_code SMDAC1Init(u_int8 PortNr);
Description
This function initialises the SM-DAC1 Module on port PortNr, and:
- tests the module's ID
- reads the conversion table held in EEPROM
- allocates space for the fetched resources
Input
u_int8 PortNr
Output
error_code
Example
RetVal = SMDAC1Init(0);
Page 5 - 114
Port number of module to initialise
(from 0 to 10)
SUCCESS or
E_BMODE
E_MEMFUL
or standard OS-9 error code (refer to the OS-9
Technical Manual Error Codes Section).
©1996 PEP Modular Computers GmbH
Chapter 5 Analog Modules
if wrong or no module
if no memory resources available
October 01, 1996
Need help?
Do you have a question about the Modular Computers RS485 and is the answer not in the manual?