SMART I/O User’s Manual
©1996 PEP Modular Computers GmbH
March 12, 1996
Page 4 - 15
4
Chapter 4 Digital Modules
4.1.8.4 SMDIN1Get
Syntax
error_code SMDIN1Get(u_int8 PortNr, u_int8 *buffer);
Description
This function fetches the status of ALL 8 input lines of the port
PortNr
and
writes it to the address pointed to by
buffer
with bit 0 of the buffer represent-
ing input 0 of the module.
Input
u_int8 PortNr
SM-Port number to fetch data
u_int8 *buffer
Pointer to Buffer where data is to be
stored
Output
error_code
SUCCESS
or OS-9 error code (refer to the OS-9 Technical
Manual Error Codes Section).
Example
RetVal = SMDIN1Get(0, buffer);
Buffer Explanation:
D7
D0
Ch.7 Ch.6 Ch.5 Ch.4 Ch.3 Ch.2 Ch.1 Ch.0
Bit Value :
0 = No input or not connected
1 = Input Active
Содержание Modular Computers RS232
Страница 2: ...This page was intentionally left blank ...
Страница 12: ...This page was intentionally left blank ...
Страница 18: ...SMART I O User s Manual March 12 1996 1996 PEP Modular Computers GmbH Page 1 6 Introduction ...
Страница 89: ...Digital Modules 08 Jan 98 SMART I O User s Manual Page 4 1 Manual ID 09901 Rev Index 0500 Digital Modules ...
Страница 92: ...This page was intentionally left blank ...
Страница 143: ...Digital Modules 08 Jan 98 SMART I O User s Manual Page 4 57 Manual ID 09901 Rev Index 0500 Figure 4 3 Solder Side ...
Страница 149: ...Digital Modules 08 Jan 98 SMART I O User s Manual Page 4 63 Manual ID 09901 Rev Index 0500 Figure 4 7 Connection ...