MioWin32 Class Reference

Win32 low level communication implementation of the Mio API. More...

#include <MioWin32.h>

Inheritance diagram for MioWin32:

Mio

List of all members.

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.


Detailed Description

Win32 low level communication implementation of the Mio API.

This class derives from the Mio class and implements the low level communication using Win32 functions.


Constructor & Destructor Documentation

virtual MioWin32::~MioWin32 (  )  [virtual]

Destructor.

MioWin32::MioWin32 (  ) 

Constructor.


Member Function Documentation

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.

Parameters:
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]

Implemented for Mio parent class.

Implements Mio.

virtual Mio_Rc MioWin32::SendRawDataToMio ( const void *  data,
int  data_len 
) [virtual]

Implemented for Mio parent class.

Implements Mio.

virtual Mio_Rc MioWin32::ReceiveRawDataFromMio ( void *  data,
int  data_len,
int &  data_bytes_received,
unsigned  timeout_ms 
) [virtual]

Implemented for Mio parent class.

Implements Mio.

virtual unsigned MioWin32::GetCurrentTimeMs (  )  [virtual]

Implemented for Mio parent class.

Implements Mio.

virtual unsigned MioWin32::GetElapsedTimeMs ( unsigned  start_time  )  [virtual]

Implemented for Mio parent class.

Implements Mio.


The documentation for this class was generated from the following file:

USB-MIO v1.0 C++ API     Copyright (C) 2009 by Mats Byggmastar Consulting Ab