#include <igstkSerialCommunicationForWindows.h>
Protected Types | |
typedef HANDLE | HandleType |
Macro with standard traits declarations. | |
Protected Member Functions | |
SerialCommunicationForWindows () | |
Constructor. | |
~SerialCommunicationForWindows () | |
Destructor. | |
virtual ResultType | InternalOpenPort (void) |
Opens serial port for communication;. | |
virtual ResultType | InternalUpdateParameters (void) |
Sets up communication on the open port as per the communication parameters. | |
virtual ResultType | InternalClosePort (void) |
Closes serial port. | |
virtual ResultType | InternalSendBreak (void) |
Send a serial break. | |
virtual void | InternalSleep (int milliseconds) |
Sleep for the number of milliseconds specified. | |
virtual ResultType | InternalPurgeBuffers (void) |
Purge the input and output buffers. | |
virtual ResultType | InternalWrite (const char *message, unsigned int numberOfBytes) |
Write data. | |
virtual ResultType | InternalRead (char *data, unsigned int numberOfBytes, unsigned int &bytesRead) |
Read data. | |
virtual ResultType | InternalSetRTS (unsigned int signal) |
Set the RTS value 0 : Clear the RTS (request-to-send) signal 1 : Sends the RTS signal. | |
virtual ResultType | InternalSetTimeout (unsigned int timeoutPeriod) |
Set the timeout. | |
virtual void | PrintSelf (std::ostream &os, itk::Indent indent) const |
Print object information. |
Definition at line 44 of file igstkSerialCommunicationForWindows.h.
typedef HANDLE igstk::SerialCommunicationForWindows::HandleType [protected] |
Macro with standard traits declarations.
Return value type for interface functions Windows file handle type
Definition at line 49 of file igstkSerialCommunicationForWindows.h.
igstk::SerialCommunicationForWindows::SerialCommunicationForWindows | ( | ) | [protected] |
Constructor.
igstk::SerialCommunicationForWindows::~SerialCommunicationForWindows | ( | ) | [protected] |
Destructor.
virtual ResultType igstk::SerialCommunicationForWindows::InternalOpenPort | ( | void | ) | [protected, virtual] |
virtual ResultType igstk::SerialCommunicationForWindows::InternalUpdateParameters | ( | void | ) | [protected, virtual] |
Sets up communication on the open port as per the communication parameters.
Reimplemented from igstk::SerialCommunication.
virtual ResultType igstk::SerialCommunicationForWindows::InternalClosePort | ( | void | ) | [protected, virtual] |
virtual ResultType igstk::SerialCommunicationForWindows::InternalSendBreak | ( | void | ) | [protected, virtual] |
virtual void igstk::SerialCommunicationForWindows::InternalSleep | ( | int | milliseconds | ) | [protected, virtual] |
Sleep for the number of milliseconds specified.
virtual ResultType igstk::SerialCommunicationForWindows::InternalPurgeBuffers | ( | void | ) | [protected, virtual] |
virtual ResultType igstk::SerialCommunicationForWindows::InternalWrite | ( | const char * | message, | |
unsigned int | numberOfBytes | |||
) | [protected, virtual] |
virtual ResultType igstk::SerialCommunicationForWindows::InternalRead | ( | char * | data, | |
unsigned int | numberOfBytes, | |||
unsigned int & | bytesRead | |||
) | [protected, virtual] |
virtual ResultType igstk::SerialCommunicationForWindows::InternalSetRTS | ( | unsigned int | signal | ) | [protected, virtual] |
Set the RTS value 0 : Clear the RTS (request-to-send) signal 1 : Sends the RTS signal.
Reimplemented from igstk::SerialCommunication.
virtual ResultType igstk::SerialCommunicationForWindows::InternalSetTimeout | ( | unsigned int | timeoutPeriod | ) | [protected, virtual] |
Set the timeout.
virtual void igstk::SerialCommunicationForWindows::PrintSelf | ( | std::ostream & | os, | |
itk::Indent | indent | |||
) | const [protected, virtual] |