PSI sics-cvs-psi-2006
This commit is contained in:
@@ -67,8 +67,11 @@ The following interface functions are provided:
|
||||
|
||||
void getRS232Error(int iCode, char *errorBuffer,
|
||||
int errorBufferLen);
|
||||
|
||||
int getRS232Timeout(prs232 self);
|
||||
int initRS232(prs232 self);
|
||||
int initRS232WithFlags(prs232 self, int flags);
|
||||
int initRS232Finished(prs232 self);
|
||||
void closeRS232(prs232 self);
|
||||
prs232 createRS232(char *host, int iPort);
|
||||
void KillRS232(void *pData);
|
||||
@}
|
||||
@@ -102,6 +105,13 @@ directly followed by a read.
|
||||
iCode.
|
||||
\item[initRS232] tries to close and reopen the RS232 connection. This is
|
||||
useful for the automatic fixing of communication problems encountered.
|
||||
\item[initRS232WithFlags] the same as initRS232, but with flags. flags = 1:
|
||||
do not block on connect (use initRS232Finished to check success).
|
||||
flags=2: wait 1000 ms after last close or restart (workaround for a bug
|
||||
in Lantronix terminal server). flags=3: both options. flags=0: no opitons.
|
||||
\item[initRS232Finished] returns 0 when connect in progress, 1 when finished,
|
||||
FAILEDCONNECT on failure.
|
||||
\item[closeRS232] closes a network connection but does not delete the datastructure.
|
||||
\item[createRS232] creates a new rs232 data structure with all
|
||||
parameters at default values. The connection is NOT opened.
|
||||
\end{description}
|
||||
@@ -130,6 +140,8 @@ parameters at default values. The connection is NOT opened.
|
||||
#define TIMEOUT -2702
|
||||
#define FAILEDCONNECT -2703
|
||||
#define INCOMPLETE -2704
|
||||
#define BADREAD -2705
|
||||
#define BADSEND -2706
|
||||
|
||||
/*----------------------- a data structure ----------------------------*/
|
||||
@<rs232dat@>
|
||||
|
||||
Reference in New Issue
Block a user