5#ifndef NSUKIT_PCIE_INTERFACE_H
6#define NSUKIT_PCIE_INTERFACE_H
46 double onceTimeout = 0;
133 const uint8_t byteWidth = 4;
134 const uint8_t maxChnl = 4;
143 std::map<nsuMemory_p, StreamProcess> uploadProcess{};
145 std::map<nsuMemory_p, StreamProcess> downloadProcess{};
247 bool(*stop_event) () =
nullptr,
float timeout = 5.,
int flag = 1)
override;
262 bool(*stop_event) () =
nullptr,
float timeout = 5.,
int flag = 1)
override;
268 const uint8_t byteWidth = 4;
269 const uint8_t maxChnl = 4;
270 std::map<nsuChnlNum_t, nsuSize_t> ring_chnl_size= {
271 {0, 512 * 1024 * 1024},
272 {1, 512 * 1024 * 1024},
273 {2, 512 * 1024 * 1024},
274 {3, 512 * 1024 * 1024},
279 std::string error_msg{};
287 std::map<unsigned int, Memory *> memory_dict{};
288 unsigned int memory_index = 0;
290 std::map<uint32_t, HANDLE> ringCache{
static unsigned int irqNum
~PCIERingUItf() override=default
~PCIEStreamUItf() override=default
nsukitStatus_t close_xdma_board(int board)
nsukitStatus_t open_xdma_board(int board)
std::map< int, int > openedBoard
ThreadSafeEvent finish_event
DLLEXTERN typedef nsuSize_t nsuStreamLen_t
DLLEXTERN typedef size_t nsuSize_t
DLLEXTERN typedef void * nsuVoidBuf_p
DLLEXTERN typedef void * nsuMemory_p
DLLEXTERN typedef char * nsuCharBuf_p
DLLEXTERN typedef std::vector< char > nsuBytes_t
DLLEXTERN typedef uint32_t nsuRegValue_t
DLLEXTERN typedef uint8_t nsuChnlNum_t
DLLEXTERN typedef uint32_t nsuRegAddr_t
DLLEXTERN typedef uint8_t nsuBoardNum_t