#include <MioWin32.h>
Public Member Functions | |
virtual | ~MioWin32 () |
Destructor. | |
MioWin32 () | |
Constructor. | |
bool | OpenComPort (const char *port) |
Open communication port to MIO board. | |
void | CloseComPort () |
Close communication port to MIO board. | |
bool | IsOpen () const |
Check if the communication port is open. | |
virtual Mio_Rc | ResetCommunicationPort () |
Implemented for Mio parent class. | |
virtual Mio_Rc | SendRawDataToMio (const void *data, int data_len) |
Implemented for Mio parent class. | |
virtual Mio_Rc | ReceiveRawDataFromMio (void *data, int data_len, int &data_bytes_received, unsigned timeout_ms) |
Implemented for Mio parent class. | |
virtual unsigned | GetCurrentTimeMs () |
Implemented for Mio parent class. | |
virtual unsigned | GetElapsedTimeMs (unsigned start_time) |
Implemented for Mio parent class. |
This class derives from the Mio class and implements the low level communication using Win32 functions.
virtual MioWin32::~MioWin32 | ( | ) | [virtual] |
Destructor.
MioWin32::MioWin32 | ( | ) |
Constructor.
bool MioWin32::OpenComPort | ( | const char * | port | ) |
Open communication port to MIO board.
The MIO board uses an emulated serial port as communication channel. Specify the COM-port name of the serial port.
port | COM-port name, e.g. "COM1" |
void MioWin32::CloseComPort | ( | ) |
Close communication port to MIO board.
bool MioWin32::IsOpen | ( | ) | const [inline] |
Check if the communication port is open.
virtual Mio_Rc MioWin32::ResetCommunicationPort | ( | ) | [virtual] |
virtual Mio_Rc MioWin32::SendRawDataToMio | ( | const void * | data, | |
int | data_len | |||
) | [virtual] |
virtual Mio_Rc MioWin32::ReceiveRawDataFromMio | ( | void * | data, | |
int | data_len, | |||
int & | data_bytes_received, | |||
unsigned | timeout_ms | |||
) | [virtual] |
virtual unsigned MioWin32::GetCurrentTimeMs | ( | ) | [virtual] |
virtual unsigned MioWin32::GetElapsedTimeMs | ( | unsigned | start_time | ) | [virtual] |