From 1c32d819eb8b1fdbc8c45b5f439638e1e16e9cd3 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Sat, 1 Jun 2024 00:23:47 -0500 Subject: [PATCH] Update MSI Mystic Light 162-byte controller files to new standardized header comment --- .../MSIMysticLight162Controller.cpp | 24 +++++++------- .../MSIMysticLight162Controller.h | 32 ++++++++++--------- .../RGBController_MSIMysticLight162.cpp | 23 +++++++------ .../RGBController_MSIMysticLight162.h | 22 +++++++------ 4 files changed, 53 insertions(+), 48 deletions(-) diff --git a/Controllers/MSIMysticLightController/MSIMysticLight162Controller/MSIMysticLight162Controller.cpp b/Controllers/MSIMysticLightController/MSIMysticLight162Controller/MSIMysticLight162Controller.cpp index 2bfe0d56..15a99345 100644 --- a/Controllers/MSIMysticLightController/MSIMysticLight162Controller/MSIMysticLight162Controller.cpp +++ b/Controllers/MSIMysticLightController/MSIMysticLight162Controller/MSIMysticLight162Controller.cpp @@ -1,22 +1,22 @@ -/*-----------------------------------------*\ -| MSIMysticLight162Controller.cpp | -| | -| Driver for MSI Mystic Light (162-byte) | -| USB lighting controller | -| | -| T-bond 3/4/2020 | -| Adam Honse 3/6/2021 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| MSIMysticLight162Controller.cpp | +| | +| Driver for MSI Mystic Light 162-byte motherboard | +| | +| T-bond 03 Apr 2020 | +| Adam Honse 06 Mar 2021 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ -#include "MSIMysticLight162Controller.h" #include #include #include - +#include "MSIMysticLight162Controller.h" #define BITSET(val, bit, pos) ((unsigned char)std::bitset<8>(val).set((pos), (bit)).to_ulong()) - struct mystic_light_162_config { unsigned short pid; // PID of the board diff --git a/Controllers/MSIMysticLightController/MSIMysticLight162Controller/MSIMysticLight162Controller.h b/Controllers/MSIMysticLightController/MSIMysticLight162Controller/MSIMysticLight162Controller.h index d1af140f..978a3932 100644 --- a/Controllers/MSIMysticLightController/MSIMysticLight162Controller/MSIMysticLight162Controller.h +++ b/Controllers/MSIMysticLightController/MSIMysticLight162Controller/MSIMysticLight162Controller.h @@ -1,21 +1,23 @@ -/*-----------------------------------------*\ -| MSIMysticLight162Controller.h | -| | -| Definitions and types for MSI Mystic | -| Light (162-byte) USB lighting controllers| -| | -| T-bond 3/4/2020 | -| Adam Honse 3/6/2021 | -\*-----------------------------------------*/ - -#include "MSIMysticLightCommon.h" -#include "RGBController.h" -#include -#include -#include +/*---------------------------------------------------------*\ +| MSIMysticLight162Controller.h | +| | +| Driver for MSI Mystic Light 162-byte motherboard | +| | +| T-bond 03 Apr 2020 | +| Adam Honse 06 Mar 2021 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #pragma once +#include +#include +#include +#include "MSIMysticLightCommon.h" +#include "RGBController.h" + class MSIMysticLight162Controller { public: diff --git a/Controllers/MSIMysticLightController/MSIMysticLight162Controller/RGBController_MSIMysticLight162.cpp b/Controllers/MSIMysticLightController/MSIMysticLight162Controller/RGBController_MSIMysticLight162.cpp index e1374a40..1fe7a652 100644 --- a/Controllers/MSIMysticLightController/MSIMysticLight162Controller/RGBController_MSIMysticLight162.cpp +++ b/Controllers/MSIMysticLightController/MSIMysticLight162Controller/RGBController_MSIMysticLight162.cpp @@ -1,15 +1,17 @@ -/*-----------------------------------------*\ -| RGBController_MSIMysticLight162.cpp | -| | -| Generic RGB Interface for OpenRGB | -| MSI Mystic Light (162-byte) USB Driver | -| | -| T-bond 3/4/2020 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_MSIMysticLight162.cpp | +| | +| RGBController for MSI Mystic Light 162-byte motherboard | +| | +| T-bond 03 Apr 2020 | +| Adam Honse 06 Mar 2021 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #include "RGBController_MSIMysticLight162.h" - struct ZoneDescription { std::string name; @@ -28,11 +30,8 @@ const ZoneDescription led_zones[] = ZoneDescription{ "Onboard LEDs", MSI_ZONE_ON_BOARD_LED_0 } }; - static std::vector zone_description; - - /**------------------------------------------------------------------*\ @name MSI Mystic Light (162 Byte) @category Motherboard diff --git a/Controllers/MSIMysticLightController/MSIMysticLight162Controller/RGBController_MSIMysticLight162.h b/Controllers/MSIMysticLightController/MSIMysticLight162Controller/RGBController_MSIMysticLight162.h index dddd4d54..9e2c1b38 100644 --- a/Controllers/MSIMysticLightController/MSIMysticLight162Controller/RGBController_MSIMysticLight162.h +++ b/Controllers/MSIMysticLightController/MSIMysticLight162Controller/RGBController_MSIMysticLight162.h @@ -1,16 +1,20 @@ -/*-----------------------------------------*\ -| RGBController_MSIMysticLight162.h | -| | -| Generic RGB Interface for OpenRGB | -| MSI Mystic Light (162-byte) USB Driver | -| | -| T-bond 3/4/2020 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_MSIMysticLight162.h | +| | +| RGBController for MSI Mystic Light 162-byte motherboard | +| | +| T-bond 03 Apr 2020 | +| Adam Honse 06 Mar 2021 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #pragma once + +#include #include "RGBController.h" #include "MSIMysticLight162Controller.h" -#include class RGBController_MSIMysticLight162: public RGBController {