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

@ -590,6 +590,7 @@ uint16_t Protocol::DecodeBuffer(uint8_t *buf, uint16_t len, PacketInfo *info) {
case PacketType::RequestDeviceInfo:
case PacketType::RequestReceiverCal:
case PacketType::RequestSourceCal:
case PacketType::SetIdle:
// no payload, nothing to do
break;
case PacketType::None:
@ -643,6 +644,7 @@ uint16_t Protocol::EncodePacket(const PacketInfo &packet, uint8_t *dest, uint16_
case PacketType::RequestDeviceInfo:
case PacketType::RequestSourceCal:
case PacketType::RequestReceiverCal:
case PacketType::SetIdle:
// no payload, nothing to do
break;
case PacketType::None:

View file

@ -4,7 +4,7 @@
namespace Protocol {
static constexpr uint16_t Version = 2;
static constexpr uint16_t Version = 3;
// When changing/adding/removing variables from these structs also adjust the decode/encode functions in Protocol.cpp
@ -171,6 +171,7 @@ enum class PacketType : uint8_t {
RequestReceiverCal = 17,
SourceCalPoint = 18,
ReceiverCalPoint = 19,
SetIdle = 20,
};
using PacketInfo = struct _packetinfo {