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

Subversion Repositories gpib_controller

[/] [gpib_controller/] [trunk/] [prototype_1/] [PC_software/] [gpib_src/] [GpibRegAccess.h] - Diff between revs 3 and 12

Only display areas with differences | Details | Blame | View Log

Rev 3 Rev 12
/*
/*
 
*This file is part of fpga_gpib_controller.
 
*
 
* Fpga_gpib_controller 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 version 3 of the License, or
 
* (at your option) any later version.
 
*
 
* Fpga_gpib_controller 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 Fpga_gpib_controller.  If not, see <http://www.gnu.org/licenses/>.
 
*/
 
/*
 * GpibRegAccess.h
 * GpibRegAccess.h
 *
 *
 *  Created on: 2012-01-28
 *  Created on: 2012-01-28
 *      Author: Andrzej Paluch
 *      Author: Andrzej Paluch
 */
 */
 
 
#ifndef GPIB_REGACCESS_H_
#ifndef GPIB_REGACCESS_H_
#define GPIB_REGACCESS_H_
#define GPIB_REGACCESS_H_
 
 
#include "GpibTypes.h"
#include "GpibTypes.h"
 
 
/** Register access structure. */
/** Register access structure. */
struct GpibRegAccess
struct GpibRegAccess
{
{
        HandleType portHandle;
        HandleType portHandle;
        bool isBurstMode;
        bool isBurstMode;
};
};
 
 
/** Initializes register access. */
/** Initializes register access. */
bool GpibRegAccess_init(struct GpibRegAccess *ra);
bool GpibRegAccess_init(struct GpibRegAccess *ra);
 
 
/** Releases register access. */
/** Releases register access. */
void GpibRegAccess_release(struct GpibRegAccess *ra);
void GpibRegAccess_release(struct GpibRegAccess *ra);
 
 
/** Reads register. */
/** Reads register. */
bool GpibRegAccess_readReg(struct GpibRegAccess *ra, SizeType addr, RegType *pValue);
bool GpibRegAccess_readReg(struct GpibRegAccess *ra, SizeType addr, RegType *pValue);
 
 
/** Reads register repeatedly. */
/** Reads register repeatedly. */
bool GpibRegAccess_repeatedlyRead(struct GpibRegAccess *ra, SizeType addr,
bool GpibRegAccess_repeatedlyRead(struct GpibRegAccess *ra, SizeType addr,
                char *buf, SizeType bufLen);
                char *buf, SizeType bufLen);
 
 
/** Writes register. */
/** Writes register. */
bool GpibRegAccess_writeReg(struct GpibRegAccess *ra, SizeType addr, RegType value);
bool GpibRegAccess_writeReg(struct GpibRegAccess *ra, SizeType addr, RegType value);
 
 
/** Writes register repeatedly. */
/** Writes register repeatedly. */
bool GpibRegAccess_repeatedlyWrite(struct GpibRegAccess *ra, SizeType addr,
bool GpibRegAccess_repeatedlyWrite(struct GpibRegAccess *ra, SizeType addr,
                char *buf, SizeType bufLen);
                char *buf, SizeType bufLen);
 
 
#endif /* GPIB_REGACCESS_H_ */
#endif /* GPIB_REGACCESS_H_ */
 
 

powered by: WebSVN 2.1.0

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