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
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
RetVal = SMADCSetSignal(0, 1, 0, 0x100);
|
|
|
|
Page | 5 - 48 | ©1996 PEP Modular Computers GmbH | March 12, 1996 |
|
|
|