Line 1... |
Line 1... |
// $Id: RlinkPortCuff.hpp 467 2013-01-02 19:49:05Z mueller $
|
// $Id: RlinkPortCuff.hpp 502 2013-04-02 19:29:30Z mueller $
|
//
|
//
|
// Copyright 2012-2013 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
// Copyright 2012-2013 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
//
|
//
|
// This program is free software; you may redistribute and/or modify it under
|
// This program is free software; you may redistribute and/or modify it under
|
// the terms of the GNU General Public License as published by the Free
|
// the terms of the GNU General Public License as published by the Free
|
Line 18... |
Line 18... |
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
|
|
|
|
/*!
|
/*!
|
\file
|
\file
|
\version $Id: RlinkPortCuff.hpp 467 2013-01-02 19:49:05Z mueller $
|
\version $Id: RlinkPortCuff.hpp 502 2013-04-02 19:29:30Z mueller $
|
\brief Declaration of class RlinkPortCuff.
|
\brief Declaration of class RlinkPortCuff.
|
*/
|
*/
|
|
|
#ifndef included_Retro_RlinkPortCuff
|
#ifndef included_Retro_RlinkPortCuff
|
#define included_Retro_RlinkPortCuff 1
|
#define included_Retro_RlinkPortCuff 1
|
|
|
#include "RlinkPort.hpp"
|
#include "RlinkPort.hpp"
|
|
|
#include <poll.h>
|
#include <poll.h>
|
|
#include <libusb-1.0/libusb.h>
|
|
|
#include <vector>
|
#include <vector>
|
#include "boost/thread.hpp"
|
#include <deque>
|
#include <libusb-1.0/libusb.h>
|
|
|
#include "boost/thread/thread.hpp"
|
|
|
namespace Retro {
|
namespace Retro {
|
|
|
class RlinkPortCuff : public RlinkPort {
|
class RlinkPortCuff : public RlinkPort {
|
public:
|
public:
|
Line 44... |
Line 46... |
virtual ~RlinkPortCuff();
|
virtual ~RlinkPortCuff();
|
|
|
virtual bool Open(const std::string& url, RerrMsg& emsg);
|
virtual bool Open(const std::string& url, RerrMsg& emsg);
|
virtual void Close();
|
virtual void Close();
|
|
|
// some constants
|
// some constants (also defined in cpp)
|
static const size_t kUSBBufferSize = 4096; //!< USB buffer size
|
static const size_t kUSBBufferSize = 4096; //!< USB buffer size
|
static const int kUSBWriteEP = 4 ; //!< USB write endpoint
|
static const int kUSBWriteEP = 4 ; //!< USB write endpoint
|
static const int kUSBReadEP = 6 ; //!< USB read endpoint
|
static const int kUSBReadEP = 6 ; //!< USB read endpoint
|
static const size_t kUSBReadQueue = 2 ; //!< USB read queue length
|
static const size_t kUSBReadQueue = 2 ; //!< USB read queue length
|
|
|
Line 107... |
Line 109... |
|
|
};
|
};
|
|
|
} // end namespace Retro
|
} // end namespace Retro
|
|
|
#if !(defined(Retro_NoInline) || defined(Retro_RlinkPortCuff_NoInline))
|
|
//#include "RlinkPortCuff.ipp"
|
//#include "RlinkPortCuff.ipp"
|
#endif
|
|
|
|
#endif
|
#endif
|
|
|
No newline at end of file
|
No newline at end of file
|