Skip to content
Snippets Groups Projects
Commit c5af88b6 authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #3696: Implemented bitmode/clock auto-sense, and avoid working with Hz clocks

parent 82831b21
No related branches found
No related tags found
No related merge requests found
......@@ -33,15 +33,14 @@ int main( int, char **argv ) {
vector<string> streamDescs(1, "tcp:localhost:54321");
unsigned clock = 200 * 1000 * 1000;
struct StationID stationID("RS106", "LBA", clock, 16);
struct StationID stationID("RS106", "LBA", 200, 16);
struct BufferSettings settings;
settings.station = stationID;
settings.nrBeamlets = 61;
settings.nrBoards = 1;
settings.nrSamples = (2 * stationID.clock / 1024);// & ~0xFL;
settings.nrSamples = (2 * stationID.clockMHz * 1000000 / 1024);// & ~0xFL;
settings.nrFlagRanges = 64;
settings.dataKey = stationID.hash();
......
......@@ -36,15 +36,14 @@ int main( int, char **argv ) {
OMPThread::init();
unsigned clock = 200 * 1000 * 1000;
struct StationID stationID("RS106", "LBA", clock, 16);
struct StationID stationID("RS106", "LBA", 200, 16);
struct BufferSettings settings;
settings.station = stationID;
settings.nrBeamlets = 61;
settings.nrBoards = 1;
settings.nrSamples = (2 * stationID.clock / 1024);// & ~0xFL;
settings.nrSamples = (2 * stationID.clockMHz * 1000000 / 1024);// & ~0xFL;
settings.nrFlagRanges = 64;
settings.dataKey = 0x12345678;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment