Main Page   Compound List   File List   Compound Members   File Members  

serapi.h

Go to the documentation of this file.
00001 
00024 
00025 #ifndef _SERAPI_H__
00026 #define _SERAPI_H__
00027 
00028 #include "serapi_t.h"
00029 
00036 unsigned int initSerial(int port);
00037 
00042 void deinitSerial(int port);
00043 
00060 void setParam(int port,
00061             unsigned long baudrate,
00062             unsigned int databits,
00063             char parity,
00064             unsigned int stopbits,
00065             unsigned int flowCtrl);
00066 
00072 void enableRS485(int port, unsigned int activityMode);
00073 
00083 byte blockedSend(int port, byte b);
00084 
00092 bool unblockedSend(int port, byte b);
00093 
00102 unsigned int sendBlock(int port, byte far* dataBlock, unsigned int length);
00103 
00110 byte blockedReceive(int port);
00111 
00121 byte unblockedReceive(int port);
00122 
00130 bool byteAvail();
00131 
00140 unsigned int receiveBlock(int port, byte far* dataBlock, unsigned int length);
00141 
00146 void flushOutBuffer(int port);
00147 
00152 void deleteOutBuffer(int port);
00153 
00158 void deleteInBuffer(int port);
00159 
00171 statusPtr getStatus(int port, byte statByte);
00172 
00173 #endif /* _SERAPI_H__ */

Generated at Fri Oct 26 12:43:45 2001 for SerialAPI by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001