diff --git a/Controllers/MSIGPUController/MSIGPUv2Controller/MSIGPUv2Controller.cpp b/Controllers/MSIGPUController/MSIGPUv2Controller/MSIGPUv2Controller.cpp index 7c73e697..ad76b122 100644 --- a/Controllers/MSIGPUController/MSIGPUv2Controller/MSIGPUv2Controller.cpp +++ b/Controllers/MSIGPUController/MSIGPUv2Controller/MSIGPUv2Controller.cpp @@ -1,13 +1,16 @@ -/*-----------------------------------------*\ -| MSIGPUController.cpp | -| | -| Driver for MSI GPUs | -| Wojciech Lazarski 03/Jan/2023 | -| | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| MSIGPUv2Controller.cpp | +| | +| Driver for MSI V2 GPU (ITE9) | +| | +| Wojciech Lazarski 03 Jan 2023 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ -#include "MSIGPUv2Controller.h" #include +#include "MSIGPUv2Controller.h" using namespace std::chrono_literals; diff --git a/Controllers/MSIGPUController/MSIGPUv2Controller/MSIGPUv2Controller.h b/Controllers/MSIGPUController/MSIGPUv2Controller/MSIGPUv2Controller.h index 26f35239..fac10970 100644 --- a/Controllers/MSIGPUController/MSIGPUv2Controller/MSIGPUv2Controller.h +++ b/Controllers/MSIGPUController/MSIGPUv2Controller/MSIGPUv2Controller.h @@ -1,16 +1,19 @@ -/*-------------------------------------------------*\ -| MSIGPUControllerv2.h | -| | -| Definitions for MSI GPUs for new ITE9 controller | -| Wojciech Lazarski 03/Jan/2023 | -| | -\*-------------------------------------------------*/ +/*---------------------------------------------------------*\ +| MSIGPUv2Controller.h | +| | +| Driver for MSI V2 GPU (ITE9) | +| | +| Wojciech Lazarski 03 Jan 2023 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once #include #include "i2c_smbus.h" -#pragma once - typedef unsigned char msi_gpu_dev_id; #define MSI_GPU_V2_SPEED_MIN 0 diff --git a/Controllers/MSIGPUController/MSIGPUv2Controller/MSIGPUv2ControllerDetect.cpp b/Controllers/MSIGPUController/MSIGPUv2Controller/MSIGPUv2ControllerDetect.cpp index 0a0cc1b3..918119e8 100644 --- a/Controllers/MSIGPUController/MSIGPUv2Controller/MSIGPUv2ControllerDetect.cpp +++ b/Controllers/MSIGPUController/MSIGPUv2Controller/MSIGPUv2ControllerDetect.cpp @@ -1,14 +1,17 @@ -/*-----------------------------------------*\ -| MSIGPUControllerDetect.cpp | -| | -| Driver for MSI GPUs | -| | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| MSIGPUv2ControllerDetect.cpp | +| | +| Detector for MSI V2 GPU (ITE9) | +| | +| Wojciech Lazarski 03 Jan 2023 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #include "Detector.h" #include "LogManager.h" #include "i2c_smbus.h" - #include "RGBController_MSIGPUv2.h" #include "MSIGPUv2Controller.h" diff --git a/Controllers/MSIGPUController/MSIGPUv2Controller/RGBController_MSIGPUv2.cpp b/Controllers/MSIGPUController/MSIGPUv2Controller/RGBController_MSIGPUv2.cpp index 25f45c88..2c977269 100644 --- a/Controllers/MSIGPUController/MSIGPUv2Controller/RGBController_MSIGPUv2.cpp +++ b/Controllers/MSIGPUController/MSIGPUv2Controller/RGBController_MSIGPUv2.cpp @@ -1,13 +1,16 @@ -/*-----------------------------------------*\ -| RGBController_MSIGPUv2.cpp | -| | -| ITE9 RGB Interface for MSI GPU | -| Wojciech Lazarski 03/Jan/2023 | -| | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_MSIGPUv2.cpp | +| | +| RGBController for MSI V2 GPU (ITE9) | +| | +| Wojciech Lazarski 03 Jan 2023 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ -#include "RGBController_MSIGPUv2.h" #include +#include "RGBController_MSIGPUv2.h" static const unsigned char speed_values[3] = { 0x04, 0x02, 0x01 }; @@ -210,7 +213,7 @@ RGBController_MSIGPUv2::RGBController_MSIGPUv2(MSIGPUv2Controller * msi_gpu_ptr, Flowing.brightness_max = MSI_GPU_V2_BRIGHTNESS_MAX; Flowing.color_mode = MODE_COLORS_PER_LED; modes.push_back(Flowing); - + mode Whirling; Whirling.name = "Whirling"; Whirling.value = MSI_GPU_V2_MODE_WHIRLING; diff --git a/Controllers/MSIGPUController/MSIGPUv2Controller/RGBController_MSIGPUv2.h b/Controllers/MSIGPUController/MSIGPUv2Controller/RGBController_MSIGPUv2.h index f17e8d6c..dbe952cc 100644 --- a/Controllers/MSIGPUController/MSIGPUv2Controller/RGBController_MSIGPUv2.h +++ b/Controllers/MSIGPUController/MSIGPUv2Controller/RGBController_MSIGPUv2.h @@ -1,10 +1,13 @@ -/*-----------------------------------------*\ -| RGBController_MSIGPUv2.h | -| | -| ITE9 RGB Interface for MSI GPU | -| Wojciech Lazarski 03/Jan/2023 | -| | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_MSIGPUv2.h | +| | +| RGBController for MSI V2 GPU (ITE9) | +| | +| Wojciech Lazarski 03 Jan 2023 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #pragma once