equal
deleted
inserted
replaced
63 |
63 |
64 public: |
64 public: |
65 cSerialPort(); |
65 cSerialPort(); |
66 ~cSerialPort(); |
66 ~cSerialPort(); |
67 |
67 |
68 int Open(const char * device); |
68 int Open(const char * device, void (*FP)(int)); |
69 int Close(); |
69 int Close(); |
70 |
70 |
71 int ReadData(unsigned char * data); |
71 int ReadData(unsigned char * data, int num); |
72 void WriteData(unsigned char data); |
72 void WriteData(unsigned char data); |
73 void WriteData(unsigned char * data, unsigned short length); |
73 void WriteData(unsigned char * data, unsigned short length); |
74 }; |
74 }; |
75 |
75 |
76 } // end of namespace |
76 } // end of namespace |