SapphireGPUController: reimplement configuration readback

Commit amended for code style by Adam Honse <calcprogrammer1@gmail.com>
This commit is contained in:
K900
2021-02-03 11:23:25 +03:00
committed by Adam Honse
parent bae1e08732
commit 267dfff247
9 changed files with 239 additions and 52 deletions

View File

@@ -52,7 +52,12 @@ void SapphireNitroGlowV1Controller::SetColor(unsigned char red, unsigned char gr
bus->i2c_smbus_write_byte_data(dev, SAPPHIRE_NITRO_GLOW_V1_REG_BLUE, blue);
}
void SapphireNitroGlowV1Controller::SetMode(unsigned char mode, unsigned char /*speed*/)
unsigned char SapphireNitroGlowV1Controller::GetMode()
{
return(bus->i2c_smbus_read_byte_data(dev, SAPPHIRE_NITRO_GLOW_V1_REG_MODE));
}
void SapphireNitroGlowV1Controller::SetMode(unsigned char mode)
{
bus->i2c_smbus_write_byte_data(dev, SAPPHIRE_NITRO_GLOW_V1_REG_MODE, mode);
}
}