Pepper Computer RS232, RS485 user manual SMADCSetSignal Syntax

Models: RS485 RS232

1 320
Download 320 pages 36.43 Kb
Page 233
Image 233
SUCCESS E_MNF
E_PARAM E_SIGNAL

Chapter 5 Analog Modules

SMART I/O User’s Manual

 

 

 

 

 

 

 

 

 

 

5.3.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-THERM 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

5

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);

 

 

 

 

March 12, 1996

©1996 PEP Modular Computers GmbH

Page 5 - 77

 

 

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