2andnot

SerialPort_com_port_h

Sep 15th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #ifndef SERIALPORT__H
  2. #define SERIALPORT__H
  3.     enum{byteStop1, byteStop1_5,  byteStop2};
  4.     struct SerialSetSimple;
  5.     HANDLE initSerial(short int port, DWORD baudrate, BYTE byteSize, BYTE stopbit, BYTE parrity);
  6.     DWORD sendData(HANDLE uPort, PCVOID data, unsigned int size);
  7.     DWORD getData(HANDLE uPort, LPVOID  data, unsigned int size);
  8. #endif
  9.  
Add Comment
Please, Sign In to add comment