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] - Blame information for rev 3

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

Line No. Rev Author Line
1 3 Andrewski
/*
2
 * GpibRegAccess.h
3
 *
4
 *  Created on: 2012-01-28
5
 *      Author: Andrzej Paluch
6
 */
7
 
8
#ifndef GPIB_REGACCESS_H_
9
#define GPIB_REGACCESS_H_
10
 
11
#include "GpibTypes.h"
12
 
13
/** Register access structure. */
14
struct GpibRegAccess
15
{
16
        HandleType portHandle;
17
        bool isBurstMode;
18
};
19
 
20
/** Initializes register access. */
21
bool GpibRegAccess_init(struct GpibRegAccess *ra);
22
 
23
/** Releases register access. */
24
void GpibRegAccess_release(struct GpibRegAccess *ra);
25
 
26
/** Reads register. */
27
bool GpibRegAccess_readReg(struct GpibRegAccess *ra, SizeType addr, RegType *pValue);
28
 
29
/** Reads register repeatedly. */
30
bool GpibRegAccess_repeatedlyRead(struct GpibRegAccess *ra, SizeType addr,
31
                char *buf, SizeType bufLen);
32
 
33
/** Writes register. */
34
bool GpibRegAccess_writeReg(struct GpibRegAccess *ra, SizeType addr, RegType value);
35
 
36
/** Writes register repeatedly. */
37
bool GpibRegAccess_repeatedlyWrite(struct GpibRegAccess *ra, SizeType addr,
38
                char *buf, SizeType bufLen);
39
 
40
#endif /* GPIB_REGACCESS_H_ */

powered by: WebSVN 2.1.0

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