rllib
1
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
rlHilscherCIF::devCloseDriver
int devCloseDriver()
Definition:
rlhilschercif.cpp:198
rlHilscherCIF::devGetInfo
int devGetInfo(int info)
Definition:
rlhilschercif.cpp:113
rlHilscherCIF::usDevState
unsigned short usDevState
Definition:
rlhilschercif.h:65
rlHilscherCIF::usBoardNumber
unsigned short usBoardNumber
Definition:
rlhilschercif.h:64
rlHilscherCIF::tIoInfo
IOINFO tIoInfo
Definition:
rlhilschercif.h:68
rlHilscherCIF::open
int open()
Definition:
rlhilschercif.cpp:66
rlHilscherCIF::~rlHilscherCIF
virtual ~rlHilscherCIF()
Definition:
rlhilschercif.cpp:61
rlHilscherCIF::printFirmwareInfo
void printFirmwareInfo()
Definition:
rlhilschercif.cpp:298
rlHilscherCIF::close
int close()
Definition:
rlhilschercif.cpp:81
rlHilscherCIF::debug
int debug
Definition:
rlhilschercif.h:43
rlMutex
Definition:
rlthread.h:118
rlHilscherCIF::aParameter
ASC_PARAMETER aParameter
Definition:
rlhilschercif.h:67
rlHilscherCIF::devGetMessage
int devGetMessage(int timeout)
Definition:
rlhilschercif.cpp:210
rlHilscherCIF::rlHilscherCIF
rlHilscherCIF()
Definition:
rlhilschercif.cpp:24
rlHilscherCIF::devReset
int devReset()
Definition:
rlhilschercif.cpp:181
rlHilscherCIF
Definition:
rlhilschercif.h:38
rlHilscherCIF::mutex
rlMutex mutex
Definition:
rlhilschercif.h:71
rlHilscherCIF::devExchangeIO
int devExchangeIO(int sendOffset, int sendSize, unsigned char *sendData, int receiveOffset, int receiveSize, unsigned char *receiveData, int timeout)
Definition:
rlhilschercif.cpp:260
rlHilscherCIF::usHostState
unsigned short usHostState
Definition:
rlhilschercif.h:65
rlHilscherCIF::devInitBoard
int devInitBoard()
Definition:
rlhilschercif.cpp:102
rlthread.h
rlHilscherCIF::devSetHostState
int devSetHostState(int mode)
Definition:
rlhilschercif.cpp:161
rlHilscherCIF::devExitBoard
int devExitBoard()
Definition:
rlhilschercif.cpp:191
rlHilscherCIF::tMessage
RCS_MESSAGETELEGRAM_10 tMessage
Definition:
rlhilschercif.h:69
rlHilscherCIF::isOpen
int isOpen
Definition:
rlhilschercif.h:74
rldefine.h
rlHilscherCIF::devOpenDriver
int devOpenDriver()
Definition:
rlhilschercif.cpp:90
rlHilscherCIF::devPutMessage
int devPutMessage(int timeout)
Definition:
rlhilschercif.cpp:245
rlHilscherCIF::abInfo
unsigned char abInfo[300]
Definition:
rlhilschercif.h:66
rlHilscherCIF::devPutTaskParameter
int devPutTaskParameter()
Definition:
rlhilschercif.cpp:170
Generated by
1.8.14