Pepper Computer Modular Computers RS232 User Manual

Page of 320
SMART I/O User’s Manual
©1996 PEP Modular Computers GmbH
March 12, 1996
Page 2 - 25
2
Chapter 2  SMART-BASE
2.6.7 SMTtin
Syntax
error_code SMTtin(u_int8 *value);
Description
This function reads the current level present on TIN/PC2.
Input
u_int8 *value
Pointer to a variable in which to place the read
value. 0 represents low, 1 represents high
Output
error_code
SUCCESS
or standard OS-9 error code (refer to the OS-9
Technical Manual Error Codes Section).
Example
RetVal = SMTin(buffer);