Update MSI Mystic Light 162-byte controller files to new standardized header comment
This commit is contained in:
parent
f95cfc9aeb
commit
1c32d819eb
4 changed files with 53 additions and 48 deletions
|
|
@ -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 <algorithm>
|
||||
#include <array>
|
||||
#include <bitset>
|
||||
|
||||
#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
|
||||
|
|
|
|||
|
|
@ -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 <cstring>
|
||||
#include <hidapi/hidapi.h>
|
||||
#include <limits>
|
||||
/*---------------------------------------------------------*\
|
||||
| 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 <cstring>
|
||||
#include <limits>
|
||||
#include <hidapi/hidapi.h>
|
||||
#include "MSIMysticLightCommon.h"
|
||||
#include "RGBController.h"
|
||||
|
||||
class MSIMysticLight162Controller
|
||||
{
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -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<const ZoneDescription*> zone_description;
|
||||
|
||||
|
||||
|
||||
/**------------------------------------------------------------------*\
|
||||
@name MSI Mystic Light (162 Byte)
|
||||
@category Motherboard
|
||||
|
|
|
|||
|
|
@ -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 <vector>
|
||||
#include "RGBController.h"
|
||||
#include "MSIMysticLight162Controller.h"
|
||||
#include <vector>
|
||||
|
||||
class RGBController_MSIMysticLight162: public RGBController
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue