Initial revision
This commit is contained in:
37
serial.tex
Normal file
37
serial.tex
Normal file
@ -0,0 +1,37 @@
|
||||
\subsection{Serial Connections}
|
||||
This object allows to send arbitrary strings to a serial port in the SINQ
|
||||
hardware setup system. This means a message is packaged and forwarded to to
|
||||
the Macintosh serving the port. And data is read back again from there. This
|
||||
facility has been devised in order to write environment device drivers in
|
||||
the macro language and as help for SICS instrument managers.
|
||||
|
||||
In contrast to the many SICS objects this object is defined for the Tcl
|
||||
interpreter. This is because it is in use within the psish Tcl interpreter
|
||||
as well. There is only one function, SerialInit, which adds the serial
|
||||
command to the SICS interpreter.
|
||||
|
||||
\begin{flushleft} \small
|
||||
\begin{minipage}{\linewidth} \label{scrap1}
|
||||
\verb@"serial.h"@ {\footnotesize ? }$\equiv$
|
||||
\vspace{-1ex}
|
||||
\begin{list}{}{} \item
|
||||
\mbox{}\verb@@\\
|
||||
\mbox{}\verb@/*--------------------------------------------------------------------------@\\
|
||||
\mbox{}\verb@ S I C S S E R I A L@\\
|
||||
\mbox{}\verb@@\\
|
||||
\mbox{}\verb@ This object adds the serial command to the Tcl-interpreter within SICS.@\\
|
||||
\mbox{}\verb@ Furthermore the commands sr1-sr6 are added as predefined names for @\\
|
||||
\mbox{}\verb@ possible connections. @\\
|
||||
\mbox{}\verb@@\\
|
||||
\mbox{}\verb@ Mark Koennecke, January 1998@\\
|
||||
\mbox{}\verb@----------------------------------------------------------------------------*/@\\
|
||||
\mbox{}\verb@#ifndef SICSERIAL@\\
|
||||
\mbox{}\verb@#define SICSERIAL@\\
|
||||
\mbox{}\verb@ int SerialInit(SConnection *pCon,SicsInterp *pSics, void *pData,@\\
|
||||
\mbox{}\verb@ int argc, char *argv[]);@\\
|
||||
\mbox{}\verb@#endif@\\
|
||||
\mbox{}\verb@@$\diamond$
|
||||
\end{list}
|
||||
\vspace{-2ex}
|
||||
\end{minipage}\\[4ex]
|
||||
\end{flushleft}
|
Reference in New Issue
Block a user