KeganHollern / MemStream

Efficient DMA Library
44 stars 12 forks source link

MemStream (v2)

MemStream is a wrapper for MemProcFS providing a simplified C++ interface for FPGA-based DMA application development.

Usage

// connect to FPGA device
auto fpga = new memstream::v2::FPGA();

// print device information (version, configspace ect)
std::cout << fpga->getConfiguration()->to_string() << std::endl;
std::cout << "config space: " << std::endl;
memstream::v2::log::buffer(fpga->getConfiguration()->configSpace, 0x1000);
std::cout << std::endl;

// initialize v2 memstream input (more stable!)
input = new memstream::v2::Input(fpga);
input->OnKeyStateChange(victim_key_change);
input->OnMouseMove(victim_mouse_move);

Also see the example directory.

TODO List