18 #ifndef __igstkSerialCommunicationForWindows_h
19 #define __igstkSerialCommunicationForWindows_h
89 unsigned int numberOfBytes );
92 virtual ResultType
InternalRead(
char *data,
unsigned int numberOfBytes,
93 unsigned int &bytesRead );
104 virtual
void PrintSelf( std::ostream& os, itk::Indent indent ) const;
108 unsigned int m_OldTimeoutPeriod;
110 HandleType m_PortHandle;
115 #endif // __igstkSerialCommunicationForWindows_h
virtual void InternalSleep(int milliseconds)
Sleep for the number of milliseconds specified.
virtual ResultType InternalClosePort(void)
Closes serial port.
virtual ResultType InternalRead(char *data, unsigned int numberOfBytes, unsigned int &bytesRead)
Read data.
This class implements Windows specific methods for 32-bit communication over a Serial Port(RS-232 con...
virtual ResultType InternalSendBreak(void)
Send a serial break.
#define igstkStandardClassTraitsMacro(classname, superclassname)
Convenience macro for traits of a non-templated class.
virtual ResultType InternalOpenPort(void)
Opens serial port for communication;.
virtual void PrintSelf(std::ostream &os, itk::Indent indent) const
Print object information.
HANDLE HandleType
Macro with standard traits declarations.
Communication::ResultType ResultType
virtual ResultType InternalUpdateParameters(void)
Sets up communication on the open port as per the communication parameters.
virtual ResultType InternalWrite(const char *message, unsigned int numberOfBytes)
Write data.
virtual ResultType InternalSetTimeout(unsigned int timeoutPeriod)
Set the timeout.
virtual ResultType InternalPurgeBuffers(void)
Purge the input and output buffers.
virtual ResultType InternalSetRTS(unsigned int signal)
Set the RTS value 0 : Clear the RTS (request-to-send) signal 1 : Sends the RTS signal.
This class implements communication over a serial port via RS-232.