Store name in HyperXDRAMController to avoid setting it in detector

This commit is contained in:
Adam Honse 2025-08-10 16:22:38 -05:00
parent aa31e21868
commit 6c8a46cc7d
4 changed files with 92 additions and 81 deletions

View file

@ -12,10 +12,11 @@
#include <cstring>
#include "HyperXDRAMController.h"
HyperXDRAMController::HyperXDRAMController(i2c_smbus_interface* bus, hyperx_dev_id dev, unsigned char slots)
HyperXDRAMController::HyperXDRAMController(i2c_smbus_interface* bus, hyperx_dev_id dev, unsigned char slots, std::string dev_name)
{
this->bus = bus;
this->dev = dev;
this->name = dev_name;
slots_valid = slots;
led_count = 0;
@ -47,6 +48,11 @@ std::string HyperXDRAMController::GetDeviceLocation()
return("I2C: " + return_string);
}
std::string HyperXDRAMController::GetDeviceName()
{
return(name);
}
unsigned int HyperXDRAMController::GetLEDCount()
{
return(led_count);