diff options
author | Pragya28 | 2018-06-18 20:02:04 +0530 |
---|---|---|
committer | Pragya28 | 2018-06-18 20:02:04 +0530 |
commit | 931fdbe021ec59e211ac13b807c18a9b2ca9a76c (patch) | |
tree | ef6915c0d0aae5911bc7a8b0e244c8c02873f75e /Source/serial.h | |
parent | b73fc99be96534b5b8e3db6240ab62e9293a9be7 (diff) | |
download | OpenModelicaEmbedded-1-931fdbe021ec59e211ac13b807c18a9b2ca9a76c.tar.gz OpenModelicaEmbedded-1-931fdbe021ec59e211ac13b807c18a9b2ca9a76c.tar.bz2 OpenModelicaEmbedded-1-931fdbe021ec59e211ac13b807c18a9b2ca9a76c.zip |
Removed duplicate source directory
Diffstat (limited to 'Source/serial.h')
-rwxr-xr-x | Source/serial.h | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/Source/serial.h b/Source/serial.h deleted file mode 100755 index e49b4a7..0000000 --- a/Source/serial.h +++ /dev/null @@ -1,57 +0,0 @@ -#ifndef __serial_h__ -#define __serial_h__ - -#include <stdint.h> - -#if defined(LINUX) -#include <termios.h> -#elif defined(MACOSX) -#include <termios.h> -#elif defined(WINDOWS) -#include <windows.h> -#endif - -#include <vector> -#include <string> -#include <sstream> -#include <algorithm> - -using namespace std; - -class Serial -{ -public: - Serial(); - ~Serial(); - vector<string> port_list(); - int Open(const string& name); - string error_message(); - int Set_baud(int baud); - int Set_baud(const string& baud_str); - int Read(void *ptr, int count); - int Write(const void *ptr, int len); - int Input_wait(int msec); - void Input_discard(void); - int Set_control(int dtr, int rts); - void Output_flush(); - void Close(void); - int Is_open(void); - string get_name(void); -private: - int port_is_open; - string port_name; - int baud_rate; - string error_msg; -private: -#if defined(LINUX) || defined(MACOSX) - int port_fd; - struct termios settings_orig; - struct termios settings; -#elif defined(WINDOWS) - HANDLE port_handle; - COMMCONFIG port_cfg_orig; - COMMCONFIG port_cfg; -#endif -}; - -#endif // __serial_h__ |