Chapter 4 Digital Modules

SMART I/O User’s Manual

 

 

 

 

 

 

 

 

 

 

Note

If the same SM-DOUT1 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.

4.2.8.2 SMDOUT1Init

Syntax

error_code SMDOUT1Init(u_int8 PortNr);

Description

 

 

This function initializes the SM-DOUT1 Module on port PortNr and sets all

4

output lines to OFF.

SM-Port number to initialize

Input

 

u_int8 PortNr

 

 

(from 0 to 10)

 

Output

If the module is unknown

 

error_code SUCCESS

 

E_BMODE

 

or standard OS-9 error code (refer to the OS-9 Technical

 

Manual Error Codes Section).

 

Example

RetVal = SMDOUT1Init(0);

 

 

 

 

March 12, 1996

©1996 PEP Modular Computers GmbH

Page 4 - 25

 

 

Page 113
Image 113
Pepper Computer RS232, RS485 user manual SMDOUT1Init Syntax, Description