Skip to content

Commit 29b98c4

Browse files
authored
Merge pull request #111 from Mu2e/sc/toMerge
ReadLinkEnabledData
2 parents 955d460 + ce9a542 commit 29b98c4

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

dtcInterfaceLib/DTC_Registers.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,6 +1225,10 @@ DTCLib::DTC_LinkEnableMode DTCLib::DTC_Registers::ReadLinkEnabled(DTC_Link_ID co
12251225
std::bitset<32> dataSet = val.has_value() ? *val : ReadRegister_(CFOandDTC_Register_LinkEnable);
12261226
return DTC_LinkEnableMode(dataSet[link], dataSet[link + 8]);
12271227
}
1228+
uint32_t DTCLib::DTC_Registers::ReadLinkEnabledData()
1229+
{
1230+
return ReadRegister_(CFOandDTC_Register_LinkEnable);
1231+
}
12281232

12291233
/// <summary>
12301234
/// Formats the register's current value for register dumps

dtcInterfaceLib/DTC_Registers.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ class DTC_Registers : public CFOandDTC_Registers
487487
void EnableLink(DTC_Link_ID const& link, const DTC_LinkEnableMode& mode = DTC_LinkEnableMode());
488488
void DisableLink(DTC_Link_ID const& link, const DTC_LinkEnableMode& mode = DTC_LinkEnableMode());
489489
DTC_LinkEnableMode ReadLinkEnabled(DTC_Link_ID const& link, std::optional<uint32_t> val = std::nullopt);
490+
uint32_t ReadLinkEnabledData();
490491
RegisterFormatter FormatLinkEnable();
491492

492493
// SERDES Reset Register

0 commit comments

Comments
 (0)