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 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 Andrewski
/*
2 12 Andrewski
*This file is part of fpga_gpib_controller.
3
*
4
* Fpga_gpib_controller is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* Fpga_gpib_controller is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with Fpga_gpib_controller.  If not, see <http://www.gnu.org/licenses/>.
16
*/
17
/*
18 3 Andrewski
 * GpibRegAccess.h
19
 *
20
 *  Created on: 2012-01-28
21
 *      Author: Andrzej Paluch
22
 */
23
 
24
#ifndef GPIB_REGACCESS_H_
25
#define GPIB_REGACCESS_H_
26
 
27
#include "GpibTypes.h"
28
 
29
/** Register access structure. */
30
struct GpibRegAccess
31
{
32
        HandleType portHandle;
33
        bool isBurstMode;
34
};
35
 
36
/** Initializes register access. */
37
bool GpibRegAccess_init(struct GpibRegAccess *ra);
38
 
39
/** Releases register access. */
40
void GpibRegAccess_release(struct GpibRegAccess *ra);
41
 
42
/** Reads register. */
43
bool GpibRegAccess_readReg(struct GpibRegAccess *ra, SizeType addr, RegType *pValue);
44
 
45
/** Reads register repeatedly. */
46
bool GpibRegAccess_repeatedlyRead(struct GpibRegAccess *ra, SizeType addr,
47
                char *buf, SizeType bufLen);
48
 
49
/** Writes register. */
50
bool GpibRegAccess_writeReg(struct GpibRegAccess *ra, SizeType addr, RegType value);
51
 
52
/** Writes register repeatedly. */
53
bool GpibRegAccess_repeatedlyWrite(struct GpibRegAccess *ra, SizeType addr,
54
                char *buf, SizeType bufLen);
55
 
56
#endif /* GPIB_REGACCESS_H_ */

powered by: WebSVN 2.1.0

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