Timeout handling in FPGA communication (better recovery from missing reference)

This commit is contained in:
Jan Käberich 2020-12-15 18:03:29 +01:00
parent f0c5962878
commit 00f0de43f2
9 changed files with 58 additions and 9 deletions

View file

@ -373,11 +373,19 @@ void SA::Work() {
pointCnt += DFTpoints;
} else {
pointCnt = 0;
// sweep finished, extract device info
FPGA::Enable(FPGA::Periphery::SourceChip); // needs to enable the chip to get a valid temperature reading
Protocol::PacketInfo packet;
packet.type = Protocol::PacketType::DeviceInfo;
HW::fillDeviceInfo(&packet.info, true);
FPGA::Disable(FPGA::Periphery::SourceChip);
Communication::Send(packet);
}
} else {
// more measurements required for signal ID
signalIDstep++;
}
HW::Ref::update();
StartNextSample();
}