Last change
on this file since 3537 was 3537, checked in by ansari, 17 years ago |
Ajout du module AddOn/TAcq (programmes test pour acquisition BAORadio) ds cvs sophya (sous-repertoire AddOn/) , Reza 22/10/2008
|
File size:
864 bytes
|
Rev | Line | |
---|
[3537] | 1 | #ifndef PCIEWRAP_H_SEEN
|
---|
| 2 | #define PCIEWRAP_H_SEEN
|
---|
| 3 |
|
---|
| 4 | #include "machdefs.h"
|
---|
| 5 | #include <string>
|
---|
| 6 |
|
---|
| 7 | /*
|
---|
| 8 | Classe interface aux fonctions d'I/O PCIExpress
|
---|
| 9 | pour la carte de reception optique BAORadio
|
---|
| 10 | R. Ansari Juin 2008
|
---|
| 11 | */
|
---|
| 12 |
|
---|
| 13 | using namespace std;
|
---|
| 14 |
|
---|
| 15 | class PCIEWException {
|
---|
| 16 | public:
|
---|
| 17 | explicit PCIEWException(const char * m) { msg = m; }
|
---|
| 18 | explicit PCIEWException(const string& m) { msg = m; }
|
---|
| 19 | virtual string const& Msg() const {return msg;}
|
---|
| 20 | virtual const char* what() {return msg.c_str(); }
|
---|
| 21 | private:
|
---|
| 22 | string msg;
|
---|
| 23 | };
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 | class PCIEWrapper {
|
---|
| 27 | public:
|
---|
| 28 | // Constructeur - fait l'initialisation
|
---|
| 29 | PCIEWrapper();
|
---|
| 30 | // destructeur - libere la memoire allouee
|
---|
| 31 | virtual ~PCIEWrapper();
|
---|
| 32 |
|
---|
| 33 | // Retourne le nombre d'octets a lire
|
---|
| 34 | uint_4 NBytesToRead();
|
---|
| 35 |
|
---|
| 36 | // Lecture du buffer de la carte
|
---|
| 37 | uint_4 Read(uint_1* buff, uint_4 nbytes);
|
---|
| 38 | };
|
---|
| 39 |
|
---|
| 40 |
|
---|
| 41 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.