mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-09-25 10:19:46 +02:00
Message: Validate PHY register batches
This commit is contained in:
committed by
Kyle Schwarz
parent
f0b1341cdf
commit
f310938684
@@ -17,13 +17,13 @@ namespace icsneo {
|
||||
#endif
|
||||
|
||||
struct PhyMessage {
|
||||
bool Enabled;
|
||||
bool WriteEnable;
|
||||
bool Clause45Enable;
|
||||
uint8_t BusIndex;
|
||||
uint8_t Version;
|
||||
bool Enabled = false;
|
||||
bool WriteEnable = false;
|
||||
bool Clause45Enable = false;
|
||||
uint8_t BusIndex = 0;
|
||||
uint8_t Version = PhyPacketVersion;
|
||||
union {
|
||||
Clause22Message Clause22;
|
||||
Clause22Message Clause22{};
|
||||
Clause45Message Clause45;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -65,7 +65,7 @@ struct PhyRegisterPacket_t {
|
||||
#pragma pack(pop)
|
||||
|
||||
static constexpr size_t MaxPhyEntries = 128u;
|
||||
static constexpr size_t MaxBytesPhyEntries = MaxPhyEntries * sizeof(PhyRegisterHeader_t);
|
||||
static constexpr size_t MaxBytesPhyEntries = MaxPhyEntries * sizeof(PhyRegisterPacket_t);
|
||||
static constexpr uint8_t PhyPacketVersion = 1u;
|
||||
static constexpr uint8_t FiveBits = 0x1Fu;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user