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] - Rev 3

Go to most recent revision | Compare with Previous | Blame | View Log

/*
 * GpibRegAccess.h
 *
 *  Created on: 2012-01-28
 *      Author: Andrzej Paluch
 */
 
#ifndef GPIB_REGACCESS_H_
#define GPIB_REGACCESS_H_
 
#include "GpibTypes.h"
 
/** Register access structure. */
struct GpibRegAccess
{
	HandleType portHandle;
	bool isBurstMode;
};
 
/** Initializes register access. */
bool GpibRegAccess_init(struct GpibRegAccess *ra);
 
/** Releases register access. */
void GpibRegAccess_release(struct GpibRegAccess *ra);
 
/** Reads register. */
bool GpibRegAccess_readReg(struct GpibRegAccess *ra, SizeType addr, RegType *pValue);
 
/** Reads register repeatedly. */
bool GpibRegAccess_repeatedlyRead(struct GpibRegAccess *ra, SizeType addr,
		char *buf, SizeType bufLen);
 
/** Writes register. */
bool GpibRegAccess_writeReg(struct GpibRegAccess *ra, SizeType addr, RegType value);
 
/** Writes register repeatedly. */
bool GpibRegAccess_repeatedlyWrite(struct GpibRegAccess *ra, SizeType addr,
		char *buf, SizeType bufLen);
 
#endif /* GPIB_REGACCESS_H_ */
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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