1 typedef void (*sigcallback)(char);
2 typedef void (*keepalive)();
4 int OpenConnection(char *szPort, sigcallback fn, keepalive ka);
6 int WriteCommBlock(LPSTR lpByte, DWORD dwBytesToWrite);
8 int ReadCommBlock(LPSTR lpszBlock, int nMaxLength);
9 void device_changespeed(int speed);
10 void device_setdtrrts(int dtr, int rts);