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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.74/] [tools/] [src/] [librlink/] [RlinkCommand.ipp] - Diff between revs 27 and 30

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

Rev 27 Rev 30
Line 1... Line 1...
// $Id: RlinkCommand.ipp 600 2014-11-02 22:33:02Z mueller $
// $Id: RlinkCommand.ipp 661 2015-04-03 18:28:41Z mueller $
//
//
// Copyright 2011-2014 by Walter F.J. Mueller 
// Copyright 2011-2015 by Walter F.J. Mueller 
//
//
// 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-02   661   1.3    expect logic: add stat check, Print() without cntx
// 2014-11-02   600   1.2    new rlink v4 iface
// 2014-11-02   600   1.2    new rlink v4 iface
// 2013-05-06   495   1.0.1  add RlinkContext to Print() args; drop oper<<()
// 2013-05-06   495   1.0.1  add RlinkContext to Print() args; drop oper<<()
// 2011-03-27   374   1.0    Initial version
// 2011-03-27   374   1.0    Initial version
// 2011-01-15   355   0.1    First draft
// 2011-01-15   355   0.1    First draft
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
 
 
/*!
/*!
  \file
  \file
  \version $Id: RlinkCommand.ipp 600 2014-11-02 22:33:02Z mueller $
  \version $Id: RlinkCommand.ipp 661 2015-04-03 18:28:41Z mueller $
  \brief   Implemenation (inline) of class RlinkCommand.
  \brief   Implemenation (inline) of class RlinkCommand.
*/
*/
 
 
// all method definitions in namespace Retro
// all method definitions in namespace Retro
namespace Retro {
namespace Retro {
Line 137... Line 138...
}
}
 
 
//------------------------------------------+-----------------------------------
//------------------------------------------+-----------------------------------
//! FIXME_docs
//! FIXME_docs
 
 
 
inline void RlinkCommand::SetExpectStatus(uint8_t stat, uint8_t statmsk)
 
{
 
  fExpectStatusSet = true;
 
  fExpectStatusVal = stat;
 
  fExpectStatusMsk = statmsk;
 
  return;
 
}
 
 
 
//------------------------------------------+-----------------------------------
 
//! FIXME_docs
 
 
 
inline void RlinkCommand::SetExpectStatusDefault(uint8_t stat, uint8_t statmsk)
 
{
 
  fExpectStatusSet = false;
 
  fExpectStatusVal = stat;
 
  fExpectStatusMsk = statmsk;
 
  return;
 
}
 
 
 
//------------------------------------------+-----------------------------------
 
//! FIXME_docs
 
 
inline uint8_t RlinkCommand::Request() const
inline uint8_t RlinkCommand::Request() const
{
{
  return fRequest;
  return fRequest;
}
}
 
 
Line 270... Line 293...
inline RlinkCommandExpect* RlinkCommand::Expect() const
inline RlinkCommandExpect* RlinkCommand::Expect() const
{
{
  return fpExpect;
  return fpExpect;
}
}
 
 
 
//------------------------------------------+-----------------------------------
 
//! FIXME_docs
 
 
 
inline uint8_t RlinkCommand::ExpectStatusValue() const
 
{
 
  return fExpectStatusVal;
 
}
 
 
 
//------------------------------------------+-----------------------------------
 
//! FIXME_docs
 
 
 
inline uint8_t RlinkCommand::ExpectStatusMask() const
 
{
 
  return fExpectStatusMsk;
 
}
 
 
 
//------------------------------------------+-----------------------------------
 
//! FIXME_docs
 
 
 
inline bool RlinkCommand::ExpectStatusSet() const
 
{
 
  return fExpectStatusSet;
 
}
 
 
 
//------------------------------------------+-----------------------------------
 
//! FIXME_docs
 
 
 
inline bool RlinkCommand::StatusCheck() const
 
{
 
  return (fStatus & fExpectStatusMsk) == fExpectStatusVal;
 
}
 
 
 
//------------------------------------------+-----------------------------------
 
//! FIXME_docs
 
 
 
inline bool RlinkCommand::StatusIsChecked() const
 
{
 
  return fExpectStatusMsk != 0x0;
 
}
 
 
} // end namespace Retro
} // end namespace Retro
 
 

powered by: WebSVN 2.1.0

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