rllib
1
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
lib
rlhilschercif.h
Go to the documentation of this file.
1
/***************************************************************************
2
rlhilschercif.h - description
3
-------------------
4
begin : Tue Feb 13 2007
5
copyright : (C) 2007 by R. Lehrig
6
email : lehrig@t-online.de
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This library is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as *
13
* published by the Free Software Foundation *
14
* *
15
***************************************************************************/
16
#ifndef _RL_HILSCHER_CIF_H_
17
#define _RL_HILSCHER_CIF_H_
18
19
#include "
rldefine.h
"
20
#include "
rlthread.h
"
21
#ifdef RLUNIX
22
#include "cif_user.h"
/* Include file for device driver API */
23
#else
24
#include "CIFUSER.h"
25
#endif
26
#include "rcs_user.h"
/* Include file for RCS definition */
27
#include "asc_user.h"
/* Include file for ASCII protocols */
28
#include "nvr_user.h"
/* Include file for 3964R protocol */
29
38
class
rlHilscherCIF
39
{
40
public
:
41
rlHilscherCIF
();
42
virtual
~rlHilscherCIF
();
43
int
debug
;
44
45
int
open
();
// convenience method
46
int
close
();
// convenience method
47
48
int
devGetMessage
(
int
timeout);
// use mailbox, uses tMessage
49
int
devPutMessage
(
int
timeout);
// use mailbox, please set tMessage
50
int
devExchangeIO
(
int
sendOffset,
int
sendSize,
unsigned
char
*sendData,
51
int
receiveOffset,
int
receiveSize,
unsigned
char
*receiveData,
52
int
timeout);
53
54
int
devOpenDriver
();
55
int
devInitBoard
();
56
int
devGetInfo
(
int
info);
// info = GET_FIRMWARE_INFO | GET_IO_INFO
57
int
devSetHostState
(
int
mode);
// mode = HOST_READY | HOST_NOT_READY
58
int
devPutTaskParameter
();
59
int
devReset
();
60
int
devExitBoard
();
61
int
devCloseDriver
();
62
void
printFirmwareInfo
();
63
64
unsigned
short
usBoardNumber
;
// Board number, 0-3
65
unsigned
short
usDevState
,
usHostState
;
66
unsigned
char
abInfo
[300];
// Buffer for various information
67
ASC_PARAMETER
aParameter
;
// Parameters for ASCII protocolls
68
IOINFO
tIoInfo
;
// IO information structure
69
RCS_MESSAGETELEGRAM_10
tMessage
;
70
71
rlMutex
mutex
;
72
73
private
:
74
int
isOpen
;
75
};
76
#endif
Generated by
1.8.2