OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.74/] [tools/] [src/] [librlink/] [RlinkPort.cpp] - Diff between revs 29 and 30

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 29 Rev 30
Line 1... Line 1...
// $Id: RlinkPort.cpp 632 2015-01-11 12:30:03Z mueller $
// $Id: RlinkPort.cpp 666 2015-04-12 21:17:54Z mueller $
//
//
// Copyright 2011-2014 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
// Copyright 2011-2015 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
// Software Foundation, either version 2, or at your option any later version.
// Software Foundation, either version 2, or at your option any later version.
//
//
Line 11... Line 11...
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
// for complete details.
// for complete details.
// 
// 
// Revision History: 
// Revision History: 
// Date         Rev Version  Comment
// Date         Rev Version  Comment
 
// 2015-04-11   666   1.3    add fXon, XonEnable()
// 2014-12-10   611   1.2.4  add time stamps for Read/Write for logs
// 2014-12-10   611   1.2.4  add time stamps for Read/Write for logs
// 2014-11-29   607   1.2.3  BUGFIX: fix time handling on RawRead()
// 2014-11-29   607   1.2.3  BUGFIX: fix time handling on RawRead()
// 2014-11-23   606   1.2.2  use Rtools::TimeOfDayAsDouble()
// 2014-11-23   606   1.2.2  use Rtools::TimeOfDayAsDouble()
// 2014-08-22   584   1.2.1  use nullptr
// 2014-08-22   584   1.2.1  use nullptr
// 2013-02-23   492   1.2    use RparseUrl
// 2013-02-23   492   1.2    use RparseUrl
Line 28... Line 29...
// 2011-01-15   356   0.1    First draft
// 2011-01-15   356   0.1    First draft
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
 
 
/*!
/*!
  \file
  \file
  \version $Id: RlinkPort.cpp 632 2015-01-11 12:30:03Z mueller $
  \version $Id: RlinkPort.cpp 666 2015-04-12 21:17:54Z mueller $
  \brief   Implemenation of RlinkPort.
  \brief   Implemenation of RlinkPort.
*/
*/
 
 
#include <errno.h>
#include <errno.h>
#include <unistd.h>
#include <unistd.h>
Line 70... Line 71...
//! Default constructor
//! Default constructor
 
 
RlinkPort::RlinkPort()
RlinkPort::RlinkPort()
  : fIsOpen(false),
  : fIsOpen(false),
    fUrl(),
    fUrl(),
 
    fXon(false),
    fFdRead(-1),
    fFdRead(-1),
    fFdWrite(-1),
    fFdWrite(-1),
    fspLog(),
    fspLog(),
    fTraceLevel(0),
    fTraceLevel(0),
    fTsLastRead(-1.),
    fTsLastRead(-1.),
Line 293... Line 295...
  RosFill bl(ind);
  RosFill bl(ind);
  os << bl << (text?text:"--") << "RlinkPort @ " << this << endl;
  os << bl << (text?text:"--") << "RlinkPort @ " << this << endl;
 
 
  os << bl << "  fIsOpen:         " << (int)fIsOpen << endl;
  os << bl << "  fIsOpen:         " << (int)fIsOpen << endl;
  fUrl.Dump(os, ind+2, "fUrl: ");
  fUrl.Dump(os, ind+2, "fUrl: ");
 
  os << bl << "  fXon:            " << fXon << endl;
  os << bl << "  fFdRead:         " << fFdRead << endl;
  os << bl << "  fFdRead:         " << fFdRead << endl;
  os << bl << "  fFdWrite:        " << fFdWrite << endl;
  os << bl << "  fFdWrite:        " << fFdWrite << endl;
  os << bl << "  fspLog:          " << fspLog.get() << endl;
  os << bl << "  fspLog:          " << fspLog.get() << endl;
  os << bl << "  fTraceLevel:     " << fTraceLevel << endl;
  os << bl << "  fTraceLevel:     " << fTraceLevel << endl;
  //FIXME_code: fTsLastRead, fTsLastWrite not yet in Dump (get formatter...)
  //FIXME_code: fTsLastRead, fTsLastWrite not yet in Dump (get formatter...)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.