Update MSI Mystic Light 185-byte controller files to new standardized header comment

This commit is contained in:
Adam Honse
2024-06-01 00:30:04 -05:00
parent 1c32d819eb
commit eb5c9d91d3
4 changed files with 63 additions and 54 deletions

View File

@@ -1,22 +1,24 @@
/*---------------------------------------------*\
| MSIMysticLight185Controller.cpp |
| |
| Driver for MSI Mystic Light (185-byte) |
| USB lighting controller |
| |
| T-bond 3/4/2020 |
| Adam Honse 3/6/2021 |
| |
| The direct mode part has been implemented |
| based on the mystic-why project provided by |
| Aleksandr Garashchenko |
| (https://github.com/garashchenko/mystic-why) |
\*---------------------------------------------*/
/*---------------------------------------------------------*\
| MSIMysticLight185Controller.cpp |
| |
| Driver for MSI Mystic Light 185-byte motherboard |
| |
| Direct mode functionality has been implemented based on |
| the mystic-why project provided by Aleksandr |
| Garashchenko |
| (https://github.com/garashchenko/mystic-why) |
| |
| 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 "MSIMysticLight185Controller.h"
#include <algorithm>
#include <array>
#include <bitset>
#include "MSIMysticLight185Controller.h"
using namespace std::chrono_literals;
@@ -33,7 +35,6 @@ using namespace std::chrono_literals;
#define PER_LED_BASIC_SYNC_MODE (0x80 | SYNC_SETTING_ONBOARD | SYNC_SETTING_JPIPE1 | SYNC_SETTING_JPIPE2)
#define PER_LED_FULL_SYNC_MODE (PER_LED_BASIC_SYNC_MODE | SYNC_SETTING_JRAINBOW1 | SYNC_SETTING_JRAINBOW2 | SYNC_SETTING_JCORSAIR)
struct mystic_light_185_config
{
unsigned short pid; // PID of the board

View File

@@ -1,22 +1,28 @@
/*-----------------------------------------*\
| MSIMysticLight185Controller.h |
| |
| Definitions and types for MSI Mystic |
| Light (185-byte) USB lighting |
| controllers |
| |
| T-bond 3/4/2020 |
| Adam Honse 3/6/2021 |
\*-----------------------------------------*/
#include "MSIMysticLightCommon.h"
#include "RGBController.h"
#include <cstring>
#include <hidapi/hidapi.h>
#include <limits>
/*---------------------------------------------------------*\
| MSIMysticLight185Controller.h |
| |
| Driver for MSI Mystic Light 185-byte motherboard |
| |
| Direct mode functionality has been implemented based on |
| the mystic-why project provided by Aleksandr |
| Garashchenko |
| (https://github.com/garashchenko/mystic-why) |
| |
| 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 <cstring>
#include <limits>
#include <hidapi/hidapi.h>
#include "MSIMysticLightCommon.h"
#include "RGBController.h"
class MSIMysticLight185Controller
{
public:

View File

@@ -1,17 +1,18 @@
/*-----------------------------------------*\
| RGBController_MSIMysticLight185.cpp |
| |
| Generic RGB Interface for OpenRGB |
| MSI Mystic Light (185-byte) USB Driver |
| |
| T-bond 3/4/2020 |
| Adam Honse 3/6/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_MSIMysticLight185.cpp |
| |
| RGBController for MSI Mystic Light 185-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_MSIMysticLight185.h"
#include "LogManager.h"
struct ZoneDescription
{
std::string name;
@@ -33,7 +34,6 @@ const ZoneDescription led_zones[] =
ZoneDescription{ "ONBOARD", MSI_ZONE_ON_BOARD_LED_0 }
};
static std::vector<const ZoneDescription*> zone_description;
/*---------------------------------------------------------------------------------------------------------*\
@@ -53,7 +53,6 @@ static int IndexOfZoneForType(MSI_ZONE zone_type)
return -1;
}
/**------------------------------------------------------------------*\
@name MSI Mystic Light (185 Byte)
@category Motherboard

View File

@@ -1,17 +1,20 @@
/*-----------------------------------------*\
| RGBController_MSIMysticLight185.h |
| |
| Generic RGB Interface for OpenRGB |
| MSI Mystic Light (185-byte) USB Driver |
| |
| T-bond 3/4/2020 |
| Adam Honse 3/6/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_MSIMysticLight185.h |
| |
| RGBController for MSI Mystic Light 185-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 <vector>
#include "RGBController.h"
#include "MSIMysticLight185Controller.h"
#include <vector>
class RGBController_MSIMysticLight185: public RGBController
{