Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __RS232_HPP__
- #define __RS232_HPP__
- #include <iostream>
- #include <windows.h>
- #include <string> //為了使用string,注意一定要加using std::string;
- #include <stdio.h>//為了顯示printf
- #include <cstring>
- //using namespace std;
- class RS232
- {
- private:
- HANDLE RS232::RS232_open();
- void RS232::RS232_write(char* buf);
- void RS232::RS232_read();
- int RS232::RS232_close();
- int COM_flg;
- public:
- RS232();
- ~RS232();
- int RS232::Write(double* joints);
- int RS232::Read();
- };
- //HANDLE RS232_open();
- //void RS232_write(char* buf);
- //void RS232_read();
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement