ponyprog/SrcPony/easyi2c_interf.h
Eduard Kalinowski e8d8efde4b comments for private/protected/public are removed
(cherry picked from commit 52dd2497d3045b69d4674fd27ec564580f28c89d)
2019-02-14 10:27:47 +01:00

56 lines
2.4 KiB
C++

//=========================================================================//
// //
// PonyProg - Serial Device Programmer //
// //
// Copyright (C) 1997-2019 Claudio Lanconelli //
// //
// http://ponyprog.sourceforge.net //
// //
//-------------------------------------------------------------------------//
// //
// This program is free software; you can redistribute it and/or //
// modify it under the terms of the GNU General Public License //
// as published by the Free Software Foundation; either version2 of //
// the License, or (at your option) any later version. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU //
// General Public License for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with this program (see LICENSE); if not, write to the //
// Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. //
// //
//=========================================================================//
#ifndef _EASYI2CINTERFACE_H
#define _EASYI2CINTERFACE_H
#include "lpt_ext_interf.h"
class EasyI2CInterface : public LptExtInterface
{
public:
EasyI2CInterface(bool use_io = false);
virtual int Open(int com_no);
virtual void Close();
virtual void SetDataOut(int sda = 1);
virtual void SetClock(int scl = 1);
virtual int GetDataIn() ;
virtual int GetClock() ;
virtual void SetClockData();
virtual int IsClockDataUP() ;
virtual int IsClockDataDOWN() ;
virtual int TestPort(int port);
protected:
private:
};
#endif