SUCCESS E_MNF
E_PARAM E_SIGNAL

SMART I/O User’s Manual

Chapter 5 Analog Modules

 

 

 

 

 

 

 

 

 

 

5.2.8.11SMADCSetSignal

Syntax

error_code SMADCSetSignal(u_int8 PortNr, u_int8 channel, process_id procID, signal_code sigCode);

Description

This function defines the code of the signal that is sent by the HW task when the conversion of the channel is ready. The signal is sent to the process with the ID procID. If sigCode is set to 0, no signal will be sent (disable sending of signals).

Input

u_int8 PortNr

u_int8 channel process_id procID signal_code sigCode

Port number of SM-PT100 to set the signal (from 0 to 10)

Number of specified channel (0 to 3) ID of the process to send the signal to Signal code to be sent

Output

error_code

Example

If wrong type of module or no module is fitted on the selected port

If wrong channel number is specified Illegal signal code used (it must be ⊕ 0x100)

or standard OS-9 error code (refer to the OS-9 Technical Manual Error Codes Section).

RetVal = SMADCSetSignal(0, 1, 0, 0x100);

 

 

 

 

Page

5 - 48

©1996 PEP Modular Computers GmbH

March 12, 1996

 

 

 

Page 204
Image 204
Pepper Computer RS485, RS232 user manual SMADCSetSignal Syntax