![]() |
NSUKit
1.4.0
板卡级统一交互接口
|
#include <iostream>#include <queue>#include <thread>#include <condition_variable>#include "NSUKit.h"类 | |
| class | ThreadSafeQueue< T > |
| struct | Deque |
宏定义 | |
| #define | STREAM_WITH_PCIE |
| #define | SocType nsukit::NSUSoc <nsukit::SimCmdUItf, nsukit::SimCmdUItf, nsukit::SimStreamUItf> |
| #define | SocType nsukit::NSUSoc <nsukit::PCIECmdUItf, nsukit::PCIECmdUItf, nsukit::PCIEStreamUItf> |
类型定义 | |
| typedef ThreadSafeQueue< void > | memQueue |
函数 | |
| void | upload_thread (nsukit::BaseKit *_kit, int stream_chnl, Deque *q, nsuSize_t block, nsuSize_t total, std::mutex *mu) |
| void | write_file_thread (nsukit::BaseKit *_kit, Deque *q, nsuSize_t block, const std::string &path, std::mutex *mu) |
| int | aurora_reset (nsukit::BaseKit *kit) |
| int | ddr_reset (nsukit::BaseKit *kit) |
| int | source_reset (nsukit::BaseKit *kit) |
| int | source_select (nsukit::BaseKit *kit) |
| int | start_chnl (nsukit::BaseKit *kit, Deque *q, uint32_t stream_chnl, uint32_t ds_block, uint32_t total_len, std::string file_name, std::mutex *mu) |
| int | main (int argc, char *argv[]) |
在文件 multi_chnl_upload.cpp 第 42 行定义.
在文件 multi_chnl_upload.cpp 第 42 行定义.
| #define STREAM_WITH_PCIE |
在文件 multi_chnl_upload.cpp 第 37 行定义.
| typedef ThreadSafeQueue<void> memQueue |
在文件 multi_chnl_upload.cpp 第 83 行定义.
| int aurora_reset | ( | nsukit::BaseKit * | kit | ) |
在文件 multi_chnl_upload.cpp 第 171 行定义.
| int ddr_reset | ( | nsukit::BaseKit * | kit | ) |
在文件 multi_chnl_upload.cpp 第 186 行定义.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
在文件 multi_chnl_upload.cpp 第 289 行定义.
| int source_reset | ( | nsukit::BaseKit * | kit | ) |
在文件 multi_chnl_upload.cpp 第 217 行定义.
| int source_select | ( | nsukit::BaseKit * | kit | ) |
在文件 multi_chnl_upload.cpp 第 234 行定义.
| int start_chnl | ( | nsukit::BaseKit * | kit, |
| Deque * | q, | ||
| uint32_t | stream_chnl, | ||
| uint32_t | ds_block, | ||
| uint32_t | total_len, | ||
| std::string | file_name, | ||
| std::mutex * | mu | ||
| ) |
在文件 multi_chnl_upload.cpp 第 271 行定义.
| void upload_thread | ( | nsukit::BaseKit * | _kit, |
| int | stream_chnl, | ||
| Deque * | q, | ||
| nsuSize_t | block, | ||
| nsuSize_t | total, | ||
| std::mutex * | mu | ||
| ) |
Data upstream thread retrieves data from the board at a granular level and pushes it into the full queue.
| _kit | |
| q | |
| block | |
| total | |
| mu |
在文件 multi_chnl_upload.cpp 第 101 行定义.
| void write_file_thread | ( | nsukit::BaseKit * | _kit, |
| Deque * | q, | ||
| nsuSize_t | block, | ||
| const std::string & | path, | ||
| std::mutex * | mu | ||
| ) |
| _kit | |
| q | |
| block | |
| path | |
| mu |
在文件 multi_chnl_upload.cpp 第 137 行定义.