Update MSI Mystic Light 185-byte controller files to new standardized header comment
This commit is contained in:
parent
1c32d819eb
commit
eb5c9d91d3
4 changed files with 63 additions and 54 deletions
|
|
@ -1,22 +1,24 @@
|
||||||
/*---------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| MSIMysticLight185Controller.cpp |
|
| MSIMysticLight185Controller.cpp |
|
||||||
| |
|
| |
|
||||||
| Driver for MSI Mystic Light (185-byte) |
|
| Driver for MSI Mystic Light 185-byte motherboard |
|
||||||
| USB lighting controller |
|
| |
|
||||||
| |
|
| Direct mode functionality has been implemented based on |
|
||||||
| T-bond 3/4/2020 |
|
| the mystic-why project provided by Aleksandr |
|
||||||
| Adam Honse 3/6/2021 |
|
| Garashchenko |
|
||||||
| |
|
| (https://github.com/garashchenko/mystic-why) |
|
||||||
| The direct mode part has been implemented |
|
| |
|
||||||
| based on the mystic-why project provided by |
|
| T-bond 03 Apr 2020 |
|
||||||
| Aleksandr Garashchenko |
|
| Adam Honse 06 Mar 2021 |
|
||||||
| (https://github.com/garashchenko/mystic-why) |
|
| |
|
||||||
\*---------------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "MSIMysticLight185Controller.h"
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <bitset>
|
#include <bitset>
|
||||||
|
#include "MSIMysticLight185Controller.h"
|
||||||
|
|
||||||
using namespace std::chrono_literals;
|
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_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)
|
#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
|
struct mystic_light_185_config
|
||||||
{
|
{
|
||||||
unsigned short pid; // PID of the board
|
unsigned short pid; // PID of the board
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,28 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| MSIMysticLight185Controller.h |
|
| MSIMysticLight185Controller.h |
|
||||||
| |
|
| |
|
||||||
| Definitions and types for MSI Mystic |
|
| Driver for MSI Mystic Light 185-byte motherboard |
|
||||||
| Light (185-byte) USB lighting |
|
| |
|
||||||
| controllers |
|
| Direct mode functionality has been implemented based on |
|
||||||
| |
|
| the mystic-why project provided by Aleksandr |
|
||||||
| T-bond 3/4/2020 |
|
| Garashchenko |
|
||||||
| Adam Honse 3/6/2021 |
|
| (https://github.com/garashchenko/mystic-why) |
|
||||||
\*-----------------------------------------*/
|
| |
|
||||||
|
| T-bond 03 Apr 2020 |
|
||||||
#include "MSIMysticLightCommon.h"
|
| Adam Honse 06 Mar 2021 |
|
||||||
#include "RGBController.h"
|
| |
|
||||||
#include <cstring>
|
| This file is part of the OpenRGB project |
|
||||||
#include <hidapi/hidapi.h>
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
#include <limits>
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <cstring>
|
||||||
|
#include <limits>
|
||||||
|
#include <hidapi/hidapi.h>
|
||||||
|
#include "MSIMysticLightCommon.h"
|
||||||
|
#include "RGBController.h"
|
||||||
|
|
||||||
class MSIMysticLight185Controller
|
class MSIMysticLight185Controller
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,18 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_MSIMysticLight185.cpp |
|
| RGBController_MSIMysticLight185.cpp |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for OpenRGB |
|
| RGBController for MSI Mystic Light 185-byte motherboard |
|
||||||
| MSI Mystic Light (185-byte) USB Driver |
|
| |
|
||||||
| |
|
| T-bond 03 Apr 2020 |
|
||||||
| T-bond 3/4/2020 |
|
| Adam Honse 06 Mar 2021 |
|
||||||
| Adam Honse 3/6/2021 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "RGBController_MSIMysticLight185.h"
|
#include "RGBController_MSIMysticLight185.h"
|
||||||
#include "LogManager.h"
|
#include "LogManager.h"
|
||||||
|
|
||||||
|
|
||||||
struct ZoneDescription
|
struct ZoneDescription
|
||||||
{
|
{
|
||||||
std::string name;
|
std::string name;
|
||||||
|
|
@ -33,7 +34,6 @@ const ZoneDescription led_zones[] =
|
||||||
ZoneDescription{ "ONBOARD", MSI_ZONE_ON_BOARD_LED_0 }
|
ZoneDescription{ "ONBOARD", MSI_ZONE_ON_BOARD_LED_0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static std::vector<const ZoneDescription*> zone_description;
|
static std::vector<const ZoneDescription*> zone_description;
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------------------------------------*\
|
||||||
|
|
@ -53,7 +53,6 @@ static int IndexOfZoneForType(MSI_ZONE zone_type)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**------------------------------------------------------------------*\
|
/**------------------------------------------------------------------*\
|
||||||
@name MSI Mystic Light (185 Byte)
|
@name MSI Mystic Light (185 Byte)
|
||||||
@category Motherboard
|
@category Motherboard
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,20 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_MSIMysticLight185.h |
|
| RGBController_MSIMysticLight185.h |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for OpenRGB |
|
| RGBController for MSI Mystic Light 185-byte motherboard |
|
||||||
| MSI Mystic Light (185-byte) USB Driver |
|
| |
|
||||||
| |
|
| T-bond 03 Apr 2020 |
|
||||||
| T-bond 3/4/2020 |
|
| Adam Honse 06 Mar 2021 |
|
||||||
| Adam Honse 3/6/2021 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
#include "RGBController.h"
|
#include "RGBController.h"
|
||||||
#include "MSIMysticLight185Controller.h"
|
#include "MSIMysticLight185Controller.h"
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
class RGBController_MSIMysticLight185: public RGBController
|
class RGBController_MSIMysticLight185: public RGBController
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue