ChimeraTK-DeviceAccess  03.18.00
testPcieBackend.cpp File Reference
#include "boost_dynamic_init_test.h"
#include "BackendFactory.h"
#include "Device.h"
#include "Exception.h"
#include "NumericAddress.h"
#include "PcieBackend.h"
#include <sys/file.h>
#include <sys/stat.h>
#include <sys/types.h>
+ Include dependency graph for testPcieBackend.cpp:

Go to the source code of this file.

Classes

struct  TestLocker
 
class  PcieBackendTest
 
class  PcieBackendTestSuite
 

Namespaces

 ChimeraTK
 

Macros

#define PCIEDEV_TEST_SLOT   0
 
#define LLRFDRV_TEST_SLOT   4
 
#define PCIEUNI_TEST_SLOT   6
 
#define WORD_FIRMWARE_OFFSET   0x0
 
#define WORD_COMPILATION_OFFSET   0x4
 
#define WORD_USER_OFFSET   0xC
 
#define WORD_CLK_CNT_OFFSET   0x10
 
#define WORD_DUMMY_OFFSET   0x3C
 
#define DMMY_AS_ASCII   0x444D4D59
 
#define WORD_ADC_ENA_OFFSET   0x44
 
#define N_WORDS_DMA   25
 
#define PCIE_DEVICE   "PCIE6"
 
#define LLRF_DEVICE   "LLRF10"
 
#define PCIE_UNI_DEVICE   "PCIE0"
 
#define NON_EXISTING_DEVICE   "DUMMY9"
 

Functions

bool init_unit_test ()
 

Macro Definition Documentation

◆ DMMY_AS_ASCII

#define DMMY_AS_ASCII   0x444D4D59

Definition at line 35 of file testPcieBackend.cpp.

◆ LLRF_DEVICE

#define LLRF_DEVICE   "LLRF10"

Definition at line 39 of file testPcieBackend.cpp.

◆ LLRFDRV_TEST_SLOT

#define LLRFDRV_TEST_SLOT   4

Definition at line 10 of file testPcieBackend.cpp.

◆ N_WORDS_DMA

#define N_WORDS_DMA   25

Definition at line 37 of file testPcieBackend.cpp.

◆ NON_EXISTING_DEVICE

#define NON_EXISTING_DEVICE   "DUMMY9"

Definition at line 42 of file testPcieBackend.cpp.

◆ PCIE_DEVICE

#define PCIE_DEVICE   "PCIE6"

Definition at line 38 of file testPcieBackend.cpp.

◆ PCIE_UNI_DEVICE

#define PCIE_UNI_DEVICE   "PCIE0"

Definition at line 41 of file testPcieBackend.cpp.

◆ PCIEDEV_TEST_SLOT

#define PCIEDEV_TEST_SLOT   0

Definition at line 9 of file testPcieBackend.cpp.

◆ PCIEUNI_TEST_SLOT

#define PCIEUNI_TEST_SLOT   6

Definition at line 11 of file testPcieBackend.cpp.

◆ WORD_ADC_ENA_OFFSET

#define WORD_ADC_ENA_OFFSET   0x44

Definition at line 36 of file testPcieBackend.cpp.

◆ WORD_CLK_CNT_OFFSET

#define WORD_CLK_CNT_OFFSET   0x10

Definition at line 33 of file testPcieBackend.cpp.

◆ WORD_COMPILATION_OFFSET

#define WORD_COMPILATION_OFFSET   0x4

Definition at line 31 of file testPcieBackend.cpp.

◆ WORD_DUMMY_OFFSET

#define WORD_DUMMY_OFFSET   0x3C

Definition at line 34 of file testPcieBackend.cpp.

◆ WORD_FIRMWARE_OFFSET

#define WORD_FIRMWARE_OFFSET   0x0

Definition at line 30 of file testPcieBackend.cpp.

◆ WORD_USER_OFFSET

#define WORD_USER_OFFSET   0xC

Definition at line 32 of file testPcieBackend.cpp.

Function Documentation

◆ init_unit_test()

bool init_unit_test ( )

Definition at line 210 of file testPcieBackend.cpp.