Skip to content
Snippets Groups Projects
Commit 106998f8 authored by Josh Siegle's avatar Josh Siegle
Browse files

Added Windows and Linux Opal Kelly drivers

parent bbaba673
Branches
Tags
No related merge requests found
No preview for this file type
File added
File added
File added
No preview for this file type
......@@ -294,18 +294,18 @@ bool FPGAThread::updateBuffer() {
// std::cout << "End time: " << timestamp << std::endl;
// std::cout << return_code << " " << i << std::endl; // number of samples found
std::cout << return_code << " " << i << std::endl; // number of samples found
// std::cout << "TTL out:" << ttl_out << std::endl;
if (ttlOutputVal == 1 && accumulator > 100)
{
dev->SetWireInValue(0x01, 0x00, 0x06);
dev->SetWireInValue(0x01, 0x00); //, 0x06);
ttlOutputVal = 0;
accumulator = 0;
dev->UpdateWireIns();
} else if (ttlOutputVal == 0 && accumulator > 100) {
dev->SetWireInValue(0x01, 0x06, 0x06);
dev->SetWireInValue(0x01, 0x08);//, 0x06);
ttlOutputVal = 1;
accumulator = 0;
dev->UpdateWireIns();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment