18 #ifndef __igstkSerialCommunicationForPosix_h
19 #define __igstkSerialCommunicationForPosix_h
83 unsigned int numberOfBytes );
87 unsigned int &bytesRead );
95 virtual void PrintSelf( std::ostream& os, itk::Indent indent )
const;
100 itkStaticConstMacro( INVALID_HANDLE ,
int, -1 );
106 unsigned int m_OldTimeoutPeriod;
111 #endif // __igstkSerialCommunicationForPosix_h
virtual ResultType InternalSendBreak(void)
Send a serial break.
virtual ResultType InternalClosePort(void)
Closes serial port.
~SerialCommunicationForPosix()
Destructor.
SerialCommunicationForPosix()
Macro with standard traits declarations.
virtual void PrintSelf(std::ostream &os, itk::Indent indent) const
Print object information.
virtual ResultType InternalPurgeBuffers(void)
Purge the input and output buffers.
#define igstkStandardClassTraitsMacro(classname, superclassname)
Convenience macro for traits of a non-templated class.
This class implements Posix specific methods for 32-bit communication over a Serial Port(RS-232 conne...
Communication::ResultType ResultType
virtual ResultType InternalSetRTS(unsigned int signal)
Set the RTS (ready-to-send) value 0 : Clear the RTS (request-to-send) signal 1 : Sends the RTS signal...
virtual void InternalSleep(unsigned int milliseconds)
Sleep for the specified number of milliseconds.
virtual ResultType InternalWrite(const char *message, unsigned int numberOfBytes)
Write data.
This class implements communication over a serial port via RS-232.
virtual ResultType InternalOpenPort(void)
Opens serial port for communication;.
virtual ResultType InternalUpdateParameters(void)
Set communication on the open port as per the communication parameters.
virtual ResultType InternalRead(char *data, unsigned int numberOfBytes, unsigned int &bytesRead)
Read data.