Update all Corsair controller files to use new standardized file header comment

This commit is contained in:
Adam Honse 2024-05-14 19:14:09 -05:00
parent fc97d6130b
commit da8469f478
77 changed files with 831 additions and 551 deletions

View file

@ -1,17 +1,19 @@
/*---------------------------------------------------------*\
| CorsairCommanderCoreController.cpp |
| |
| Processing Code for Corsair Commander Core |
| Driver for Corsair Commander Core |
| |
| Jeff P. |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "CorsairCommanderCoreController.h"
#include "CorsairDeviceGuard.h"
#include <cstring>
#include <iomanip>
#include <iostream>
#include "CorsairCommanderCoreController.h"
#include "CorsairDeviceGuard.h"
using namespace std::chrono_literals;

View file

@ -1,22 +1,22 @@
/*---------------------------------------------------------*\
| CorsairCommanderCoreController.h |
| |
| Definitions for Corsair Commander Core |
| Based on code by: |
| Adam Honse (calcprogrammer1@gmail.com), 8/17/2020 |
| Driver for Corsair Commander Core |
| |
| Jeff P. |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <chrono>
#include <vector>
#include <hidapi/hidapi.h>
#include "RGBController.h"
#include "DeviceGuardManager.h"
#include <vector>
#include <chrono>
#include <hidapi/hidapi.h>
#pragma once
#define CORSAIR_COMMANDER_CORE_PACKET_SIZE_V1 1025 // First bit is the report bit
#define CORSAIR_COMMANDER_CORE_PACKET_SIZE_V2 97 // First bit is the report bit
#define CORSAIR_COMMANDER_CORE_PACKET_SIZE_V3 65 // First bit is the report bit

View file

@ -1,9 +1,20 @@
/*---------------------------------------------------------*\
| CorsairCommanderCoreControllerDetect.cpp |
| |
| Detector for Corsair Commander Core |
| |
| Jeff P. |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <vector>
#include <hidapi/hidapi.h>
#include "Detector.h"
#include "CorsairCommanderCoreController.h"
#include "RGBController.h"
#include "RGBController_CorsairCommanderCore.h"
#include <vector>
#include <hidapi/hidapi.h>
/*-----------------------------------------------------*\
| Corsair vendor ID |

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| RGBController_CorsairCapellix.cpp |
/*---------------------------------------------------------*\
| RGBController_CorsairCCommanderCore.cpp |
| |
| Generic RGB Interface for Corsair |
| Commander Core |
| RGBController for Corsair Commander Core |
| |
| Jeff P. |
\*-----------------------------------------*/
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_CorsairCommanderCore.h"

View file

@ -1,13 +1,16 @@
/*-----------------------------------------*\
| RGBController_CorsairCapellix.h |
/*---------------------------------------------------------*\
| RGBController_CorsairCCommanderCore.h |
| |
| Generic RGB Interface for Corsair |
| Commander Core |
| RGBController for Corsair Commander Core |
| |
| Jeff P. |
\*-----------------------------------------*/
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "CorsairCommanderCoreController.h"

View file

@ -1,12 +1,12 @@
/*---------------------------------------------------------*\
| CorsairDeviceGuard.h |
| CorsairDeviceGuard.cpp |
| |
| A DeviceGuard implementation for Corsair devices. |
| DeviceGuard for Corsair devices |
| |
| On Windows platforms, a global mutex is used. |
| |
| Evan Mulawski, 2023-09-04 |
| Evan Mulawski 04 Sep 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "CorsairDeviceGuard.h"

View file

@ -1,12 +1,12 @@
/*---------------------------------------------------------*\
| CorsairDeviceGuard.h |
| CorsairDeviceGuard.cpp |
| |
| A DeviceGuard implementation for Corsair devices. |
| DeviceGuard for Corsair devices |
| |
| On Windows platforms, a global mutex is used. |
| |
| Evan Mulawski, 2023-09-04 |
| Evan Mulawski 04 Sep 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,15 +1,16 @@
/*------------------------------------------*\
/*---------------------------------------------------------*\
| CorsairDominatorPlatinumController.cpp |
| |
| Drover for Corsair Domintator Platinum |
| RGB RAM lighting controller |
| Driver for Corsair Dominator Platinum RAM |
| |
| Erik Gilling (konkers) 9/25/2020 |
\*------------------------------------------*/
#include "CorsairDominatorPlatinumController.h"
| Erik Gilling (konkers) 25 Sep 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "CorsairDominatorPlatinumController.h"
using namespace std::chrono_literals;

View file

@ -1,18 +1,20 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| CorsairDominatorPlatinumController.h |
| |
| Definitions and types for Corsair |
| Domintator Platinum RGB RAM lighting |
| controller |
| Driver for Corsair Dominator Platinum RAM |
| |
| Erik Gilling (konkers) 9/25/2020 |
\*-----------------------------------------*/
| Erik Gilling (konkers) 25 Sep 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <string>
#include "i2c_smbus.h"
#define CORSAIR_DOMINATOR_PLATINUM_DATA_SIZE 38
#pragma once
#define CORSAIR_DOMINATOR_PLATINUM_DATA_SIZE 38
typedef unsigned char corsair_dev_id;

View file

@ -1,15 +1,25 @@
/*---------------------------------------------------------*\
| CorsairDominatorPlatinumControllerDetect.cpp |
| |
| Detector for Corsair Dominator Platinum RAM |
| |
| Erik Gilling (konkers) 25 Sep 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include "Detector.h"
#include "CorsairDominatorPlatinumController.h"
#include "RGBController.h"
#include "RGBController_CorsairDominatorPlatinum.h"
#include "SettingsManager.h"
#include "LogManager.h"
#include "i2c_smbus.h"
#include "pci_ids.h"
#include <vector>
#include <stdio.h>
#include <stdlib.h>
using namespace std::chrono_literals;

View file

@ -1,10 +1,13 @@
/*-------------------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairDominatorPlatinum.cpp |
| |
| Corsair Vengeance Pro RGB driver |
| RGBController for Corsair Dominator Platinum RAM |
| |
| Erik Gilling (konkers) 9/25/2020 |
\*-------------------------------------------------*/
| Erik Gilling (konkers) 25 Sep 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_CorsairDominatorPlatinum.h"

View file

@ -1,10 +1,13 @@
/*--------------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairDominatorPlatinum.h |
| |
| Corsair Dominator Platinum RGB driver |
| RGBController for Corsair Dominator Platinum RAM |
| |
| Erik Gilling (konkers) 9/25/2020 |
\*--------------------------------------------*/
| Erik Gilling (konkers) 25 Sep 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,15 +1,18 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| CorsairHydro2Controller.cpp |
| |
| Controller for Corsair H100i v2 |
| Driver for Corsair H100i v2 |
| |
| Tim Demand (tim.dmd) 1/10/2023 |
\*-----------------------------------------*/
| Tim Demand (tim.dmd) 10 Jan 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "CorsairHydro2Controller.h"
#include <cstring>
#include <iomanip>
#include <sstream>
#include "CorsairHydro2Controller.h"
CorsairHydro2Controller::CorsairHydro2Controller(libusb_device_handle* dev_handle)
{

View file

@ -1,20 +1,23 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| CorsairHydro2Controller.h |
| |
| Controller for Corsair H100i v2 |
| Driver for Corsair H100i v2 |
| |
| Tim Demand (tim.dmd) 1/10/2023 |
\*-----------------------------------------*/
| Tim Demand (tim.dmd) 10 Jan 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include <vector>
#ifdef __FreeBSD__
#include <libusb.h>
#else
#include <libusb-1.0/libusb.h>
#endif
#pragma once
#include "RGBController.h"
class CorsairHydro2Controller
{

View file

@ -1,21 +1,24 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| CorsairHydro2ControllerDetect.cpp |
| |
| Detector for Corsair H100i v2 |
| |
| Tim Demand (tim.dmd) 1/10/2023 |
\*-----------------------------------------*/
| Tim Demand (tim.dmd) 10 Jan 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "Detector.h"
#include "CorsairHydro2Controller.h"
#include "RGBController.h"
#include "RGBController_CorsairHydro2.h"
#include <vector>
#ifdef __FreeBSD__
#include <libusb.h>
#else
#include <libusb-1.0/libusb.h>
#endif
#include "Detector.h"
#include "CorsairHydro2Controller.h"
#include "RGBController.h"
#include "RGBController_CorsairHydro2.h"
#define CORSAIR_VID 0x1B1C
#define H100I_V2_PID 0x0C09

View file

@ -1,10 +1,13 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairHydro2.cpp |
| |
| RGB Controller for Corsair H100i v2 |
| RGBController for Corsair H100i v2 |
| |
| Tim Demand (tim.dmd) 1/10/2023 |
\*-----------------------------------------*/
| Tim Demand (tim.dmd) 10 Jan 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_CorsairHydro2.h"

View file

@ -1,12 +1,16 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairHydro2.h |
| |
| RGB Controller for Corsair H100i v2 |
| RGBController for Corsair H100i v2 |
| |
| Tim Demand (tim.dmd) 1/10/2023 |
\*-----------------------------------------*/
| Tim Demand (tim.dmd) 10 Jan 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "CorsairHydro2Controller.h"

View file

@ -1,14 +1,18 @@
/*---------------------------------------------------------*\
| Processing Code for Corsair Hydro Series |
| CorsairHydroController.cpp |
| |
| Adam Honse (calcprogrammer1@gmail.com), 8/17/2020 |
| Driver for Corsair Hydro Series coolers |
| |
| Adam Honse (calcprogrammer1@gmail.com) 17 Aug 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "CorsairHydroController.h"
#include <cstring>
#include <iomanip>
#include <sstream>
#include "CorsairHydroController.h"
CorsairHydroController::CorsairHydroController(libusb_device_handle* dev_handle)
{

View file

@ -1,18 +1,23 @@
/*---------------------------------------------------------*\
| Definitions for Corsair Hydro Series |
| CorsairHydroController.h |
| |
| Adam Honse (calcprogrammer1@gmail.com), 8/17/2020 |
| Driver for Corsair Hydro Series coolers |
| |
| Adam Honse (calcprogrammer1@gmail.com) 17 Aug 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController.h"
#pragma once
#include <vector>
#ifdef __FreeBSD__
#include <libusb.h>
#else
#include <libusb-1.0/libusb.h>
#endif
#pragma once
#include "RGBController.h"
enum
{

View file

@ -1,13 +1,24 @@
#include "Detector.h"
#include "CorsairHydroController.h"
#include "RGBController.h"
#include "RGBController_CorsairHydro.h"
/*---------------------------------------------------------*\
| CorsairHydroControllerDetect.cpp |
| |
| Detector for Corsair Hydro Series coolers |
| |
| Adam Honse (calcprogrammer1@gmail.com) 17 Aug 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <vector>
#ifdef __FreeBSD__
#include <libusb.h>
#else
#include <libusb-1.0/libusb.h>
#endif
#include "Detector.h"
#include "CorsairHydroController.h"
#include "RGBController.h"
#include "RGBController_CorsairHydro.h"
/*-----------------------------------------------------*\
| Corsair vendor ID |

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairHydro.cpp |
| |
| Generic RGB Interface for Corsair |
| Hydro Series |
| RGBController for Corsair Hydro Series coolers |
| |
| Adam Honse (CalcProgrammer1) 8/18/2020 |
\*-----------------------------------------*/
| Adam Honse (calcprogrammer1@gmail.com) 18 Aug 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_CorsairHydro.h"

View file

@ -1,13 +1,16 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairHydro.h |
| |
| Generic RGB Interface for Corsair |
| Hydro Series |
| RGBController for Corsair Hydro Series coolers |
| |
| Adam Honse (CalcProgrammer1) 8/17/2020 |
\*-----------------------------------------*/
| Adam Honse (calcprogrammer1@gmail.com) 17 Aug 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "CorsairHydroController.h"

View file

@ -1,15 +1,17 @@
/*-------------------------------------------------------------------*\
/*---------------------------------------------------------*\
| CorsairHydroPlatinumController.cpp |
| |
| Driver for Corsair Hydro Platinum AIO Coolers |
| Driver for Corsair Hydro Platinum coolers |
| |
| Kasper 28th March 2021 |
| Kasper 28 Mar 2021 |
| |
\*-------------------------------------------------------------------*/
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "CorsairHydroPlatinumController.h"
#include "CorsairDeviceGuard.h"
#include <cstring>
static const uint8_t CRC_TABLE[256] =
{

View file

@ -1,21 +1,22 @@
/*-------------------------------------------------------------------*\
/*---------------------------------------------------------*\
| CorsairHydroPlatinumController.h |
| |
| Driver for Corsair Hydro Platinum AIO Coolers |
| Driver for Corsair Hydro Platinum coolers |
| |
| Kasper 28th March 2021 |
| Kasper 28 Mar 2021 |
| |
\*-------------------------------------------------------------------*/
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <string>
#include <vector>
#include <hidapi/hidapi.h>
#include "RGBController.h"
#include "DeviceGuardManager.h"
#include <vector>
#include <string>
#include <hidapi/hidapi.h>
#define CORSAIR_HYDRO_PLATINUM_PACKET_SIZE 65
#define CORSAIR_HYDRO_PLATINUM_PACKET_DELAY 5

View file

@ -1,17 +1,19 @@
/*-------------------------------------------------------------------*\
/*---------------------------------------------------------*\
| CorsairHydroPlatinumControllerDetect.cpp |
| |
| Driver for Corsair Hydro Platinum AIO Coolers |
| Detector for Corsair Hydro Platinum coolers |
| |
| Kasper 28th March 2021 |
| Kasper 28 Mar 2021 |
| |
\*-------------------------------------------------------------------*/
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <hidapi/hidapi.h>
#include "Detector.h"
#include "CorsairHydroPlatinumController.h"
#include "RGBController.h"
#include "RGBController_CorsairHydroPlatinum.h"
#include <hidapi/hidapi.h>
/*-----------------------------------------------------*\
| Corsair vendor ID |

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairHydroPlatinum.cpp |
| |
| Driver for Corsair Hydro Platinum AIO Coolers |
| RGBController for Corsair Hydro Platinum coolers |
| |
| Kasper 28th March 2021 |
| Kasper 28 Mar 2021 |
| |
\*-------------------------------------------------------------------*/
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_CorsairHydroPlatinum.h"

View file

@ -1,13 +1,16 @@
/*-------------------------------------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairHydroPlatinum.h |
| |
| Driver for Corsair Hydro Platinum AIO Coolers |
| RGBController for Corsair Hydro Platinum coolers |
| |
| Kasper 28th March 2021 |
| Kasper 28 Mar 2021 |
| |
\*-------------------------------------------------------------------*/
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "CorsairHydroPlatinumController.h"

View file

@ -1,16 +1,20 @@
/*---------------------------------------------------------*\
| Processing Code for Corsair Lighting Node Pro |
| CorsairLightingNodeController.cpp |
| |
| Adam Honse (calcprogrammer1@gmail.com), 1/12/2020 |
| Driver for Corsair Lighting Node devices |
| |
| Adam Honse (calcprogrammer1@gmail.com) 12 Jan 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "CorsairLightingNodeController.h"
#include "CorsairDeviceGuard.h"
#include <cstring>
#include <fstream>
#include <iostream>
#include <string>
#include <cstring>
#include "CorsairLightingNodeController.h"
#include "CorsairDeviceGuard.h"
using namespace std::chrono_literals;

View file

@ -1,17 +1,21 @@
/*---------------------------------------------------------*\
| Definitions for Corsair Lighting Node Pro |
| CorsairLightingNodeController.h |
| |
| Adam Honse (calcprogrammer1@gmail.com), 1/12/2020 |
| Driver for Corsair Lighting Node devices |
| |
| Adam Honse (calcprogrammer1@gmail.com) 12 Jan 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "DeviceGuardManager.h"
#include "RGBController.h"
#pragma once
#include <chrono>
#include <vector>
#include <hidapi/hidapi.h>
#pragma once
#include "DeviceGuardManager.h"
#include "RGBController.h"
#define CORSAIR_LIGHTING_NODE_WRITE_PACKET_SIZE 65 /* First byte is the report number */
#define CORSAIR_LIGHTING_NODE_READ_PACKET_SIZE 17 /* First byte is the report number */

View file

@ -1,9 +1,20 @@
/*---------------------------------------------------------*\
| CorsairLightingNodeControllerDetect.cpp |
| |
| Detector for Corsair Lighting Node devices |
| |
| Adam Honse (calcprogrammer1@gmail.com) 12 Jan 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <vector>
#include <hidapi/hidapi.h>
#include "Detector.h"
#include "CorsairLightingNodeController.h"
#include "RGBController.h"
#include "RGBController_CorsairLightingNode.h"
#include <vector>
#include <hidapi/hidapi.h>
#define CORSAIR_VID 0x1B1C
#define CORSAIR_LIGHTING_NODE_CORE_PID 0x0C1A

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairLightingNode.cpp |
| |
| Generic RGB Interface for Corsair |
| Lighting Node Pro |
| RGBController for Corsair Lighting Node devices |
| |
| Adam Honse (CalcProgrammer1) 1/12/2020 |
\*-----------------------------------------*/
| Adam Honse (calcprogrammer1@gmail.com) 12 Jan 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_CorsairLightingNode.h"

View file

@ -1,13 +1,16 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairLightingNode.h |
| |
| Generic RGB Interface for Corsair |
| Lighting Node Pro |
| RGBController for Corsair Lighting Node devices |
| |
| Adam Honse (CalcProgrammer1) 1/12/2020 |
\*-----------------------------------------*/
| Adam Honse (calcprogrammer1@gmail.com) 12 Jan 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "CorsairLightingNodeController.h"

View file

@ -1,19 +1,20 @@
/*--------------------------------------------*\
/*---------------------------------------------------------*\
| CorsairK55RGBPROXTController.cpp |
| |
| Driver for Corsair K55 RGB PRO XT Keyboard |
\*--------------------------------------------*/
| Driver for Corsair K55 RGB PRO XT keyboard |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "CorsairK55RGBPROXTController.h"
#include "LogManager.h"
#define COLOR_BANK_SIZE 137
#define HID_PACKET_LENGTH 65
#define HID_PAYLOAD_SIZE1 (HID_PACKET_LENGTH - 12)
#define HID_PAYLOAD_SIZE2 (HID_PACKET_LENGTH - 4)
static const unsigned int keys[] =
{ 127, 128, 129, 130, 131, 132, 37, 49, 39, 53, 102, 101, 26, 96, 104, 54, 27, 16, 0, 25,
103, 55, 28, 22, 18, 23, 56, 29, 4, 3, 2, 57, 30, 17, 5, 21, 31, 58, 32, 19,

View file

@ -1,17 +1,17 @@
/*--------------------------------------------*\
/*---------------------------------------------------------*\
| CorsairK55RGBPROXTController.h |
| |
| Driver for Corsair K55 RGB PRO XT Keyboard |
\*--------------------------------------------*/
| Driver for Corsair K55 RGB PRO XT keyboard |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#ifndef CORSAIRK55RGBPROXTCONTROLLER_H
#define CORSAIRK55RGBPROXTCONTROLLER_H
#include "RGBController.h"
#pragma once
#include <string>
#include <hidapi/hidapi.h>
#include "RGBController.h"
class CorsairK55RGBPROXTController
{
@ -86,5 +86,3 @@ private:
void LightingControl();
};
#endif // CORSAIRK55RGBPROXTCONTROLLER_H

View file

@ -1,10 +1,13 @@
#include "CorsairK65MiniController.h"
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| CorsairK65MiniController.cpp |
| |
| Driver for Corsair K65 Mini Keyboard |
\*-----------------------------------------*/
| Driver for Corsair K65 Mini keyboard |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "CorsairK65MiniController.h"
#include "LogManager.h"
CorsairK65MiniController::CorsairK65MiniController(hid_device* dev_handle, const char* path)

View file

@ -1,9 +1,17 @@
#pragma once
/*---------------------------------------------------------*\
| CorsairK65MiniController.cpp |
| |
| Driver for Corsair K65 Mini keyboard |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController.h"
#pragma once
#include <string>
#include <hidapi/hidapi.h>
#include "RGBController.h"
#define PACKET_LENGTH 1025
#define K65_WRITE_COMMAND 0x08

View file

@ -1,10 +1,14 @@
/*-----------------------------------------*\
| CorsairK195PlatinumXTController.h |
/*---------------------------------------------------------*\
| CorsairK95PlatinumXTController.cpp |
| |
| Driver for Corsair K95 Platinum XT |
| Keyboard |
| Guimard Morgan (morg) 6/07/2022 |
\*-----------------------------------------*/
| Driver for Corsair K95 Platinum XT keyboard |
| |
| Morgan Guimard (morg) 07 Jun 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "CorsairK95PlatinumXTController.h"
CorsairK95PlatinumXTController::CorsairK95PlatinumXTController(hid_device* dev_handle, const char* path)

View file

@ -1,16 +1,19 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| CorsairK95PlatinumXTController.h |
| |
| Driver for Corsair K95 Platinum XT |
| Keyboard |
| Driver for Corsair K95 Platinum XT keyboard |
| |
| Guimard Morgan (morg) 6/07/2022 |
\*-----------------------------------------*/
| Morgan Guimard (morg) 07 Jun 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include <string.h>
#include <hidapi/hidapi.h>
#include "RGBController.h"
#define K95_PLATINUM_XT_REPORT_LENGTH 65
#define K95_PLATINUM_XT_COLOR_DATA_LENGTH 488

View file

@ -1,16 +1,17 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| CorsairPeripheralController.cpp |
| |
| Driver for Corsair RGB keyboard, mouse, |
| and mousemat lighting controller |
| Driver for Corsair peripherals |
| |
| Adam Honse (CalcProgrammer1) 1/9/2020 |
\*-----------------------------------------*/
#include "CorsairPeripheralController.h"
#include "LogManager.h"
| Adam Honse (CalcProgrammer1) 09 Jan 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "CorsairPeripheralController.h"
#include "LogManager.h"
using namespace std::chrono_literals;

View file

@ -1,19 +1,19 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| CorsairPeripheralController.h |
| |
| Definitions and types for Corsair RGB |
| keyboard, mouse, and mousemat lighting |
| controller |
| Driver for Corsair peripherals |
| |
| Adam Honse (CalcProgrammer1) 1/9/2020 |
\*-----------------------------------------*/
| Adam Honse (CalcProgrammer1) 09 Jan 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController.h"
#pragma once
#include <string>
#include <hidapi/hidapi.h>
#pragma once
#include "RGBController.h"
#define CORSAIR_PERIPHERAL_PACKET_LENGTH 65

View file

@ -1,3 +1,12 @@
/*---------------------------------------------------------*\
| CorsairPeripheralControllerDetect.cpp |
| |
| Driver for Corsair peripherals |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
/*-----------------------------------------------------*\
| OpenRGB includes |
\*-----------------------------------------------------*/

View file

@ -1,8 +1,11 @@
/*--------------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairK55RGBPROXT.cpp |
| |
| Driver for Corsair K55 RGB PRO XT Keyboard |
\*--------------------------------------------*/
| RGBController for Corsair K55 RGB PRO XT keyboard |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_CorsairK55RGBPROXT.h"
#include "RGBControllerKeyNames.h"

View file

@ -1,11 +1,13 @@
/*--------------------------------------------*\
| RGBController_CorsairK55RGBPROXT.cpp |
/*---------------------------------------------------------*\
| CorsairK55RGBPROXTController.h |
| |
| Driver for Corsair K55 RGB PRO XT Keyboard |
\*--------------------------------------------*/
| Driver for Corsair K55 RGB PRO XT keyboard |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#ifndef RGBCONTROLLER_CORSAIRK55RGBPROXT_H
#define RGBCONTROLLER_CORSAIRK55RGBPROXT_H
#pragma once
#include "RGBController.h"
#include "CorsairK55RGBPROXTController.h"
@ -33,5 +35,3 @@ private:
std::atomic<bool> keepalive_thread_run;
std::chrono::time_point<std::chrono::steady_clock> last_update_time;
};
#endif // RGBCONTROLLER_CORSAIRK55RGBPROXT_H

View file

@ -1,10 +1,13 @@
#include "RGBController_CorsairK65Mini.h"
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairK65Mini.cpp |
| |
| Driver for Corsair K65 Mini Keyboard |
\*-----------------------------------------*/
| RGBController for Corsair K65 Mini keyboard |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_CorsairK65Mini.h"
#include "LogManager.h"
#include "RGBControllerKeyNames.h"

View file

@ -1,3 +1,12 @@
/*---------------------------------------------------------*\
| RGBController_CorsairK65Mini.h |
| |
| RGBController for Corsair K65 Mini keyboard |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"

View file

@ -1,9 +1,13 @@
/*-----------------------------------------*\
| RGBController_CorsairK95PlatinumXT.h |
/*---------------------------------------------------------*\
| RGBController_CorsairK95PlatinumXT.cpp |
| |
| RGBController for Corsair K95 Platinum XT keyboard |
| |
| Guimard Morgan (morg) 6/07/2022 |
\*-----------------------------------------*/
| Morgan Guimard (morg) 07 Jun 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBControllerKeyNames.h"
#include "RGBController_CorsairK95PlatinumXT.h"

View file

@ -1,9 +1,14 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairK95PlatinumXT.h |
| |
| RGBController for Corsair K95 Platinum XT keyboard |
| |
| Guimard Morgan (morg) 6/07/2022 |
\*-----------------------------------------*/
| Morgan Guimard (morg) 07 Jun 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairPeripheral.cpp |
| |
| Generic RGB Interface for Corsair RGB |
| keyboard, mouse, and mousemat devices |
| RGBController for Corsair peripherals |
| |
| Adam Honse (CalcProgrammer1) 1/9/2020 |
\*-----------------------------------------*/
| Adam Honse (CalcProgrammer1) 09 Jan 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBControllerKeyNames.h"
#include "RGBController_CorsairPeripheral.h"

View file

@ -1,13 +1,16 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairPeripheral.h |
| |
| Generic RGB Interface for Corsair RGB |
| keyboard, mouse, and mousemat devices |
| RGBController for Corsair peripherals |
| |
| Adam Honse (CalcProgrammer1) 1/9/2020 |
\*-----------------------------------------*/
| Adam Honse (CalcProgrammer1) 09 Jan 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "CorsairPeripheralController.h"

View file

@ -1,11 +1,13 @@
/*---------------------------------------------------------------------*\
/*---------------------------------------------------------*\
| CorsairPeripheralV2Controller.cpp |
| |
| Base class for the 08 based Corsair protocol |
| Driver for Corsair V2 peripherals |
| |
| Chris M (Dr_No) 07 Aug 2022 |
| |
\*---------------------------------------------------------------------*/
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "CorsairPeripheralV2Controller.h"

View file

@ -1,11 +1,13 @@
/*---------------------------------------------------------------------*\
/*---------------------------------------------------------*\
| CorsairPeripheralV2Controller.h |
| |
| Base class for the 08 based Corsair protocol |
| Driver for Corsair V2 peripherals |
| |
| Chris M (Dr_No) 07 Aug 2022 |
| |
\*---------------------------------------------------------------------*/
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,3 +1,12 @@
/*---------------------------------------------------------*\
| CorsairPeripheralV2ControllerDetect.cpp |
| |
| Detector for Corsair V2 peripherals |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
/*-----------------------------------------------------*\
| OpenRGB includes |
\*-----------------------------------------------------*/

View file

@ -1,3 +1,12 @@
/*---------------------------------------------------------*\
| CorsairPeripheralV2Devices.cpp |
| |
| Device list for Corsair V2 peripherals |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "CorsairPeripheralV2Devices.h"
/*-------------------------------------------------------------------------*\

View file

@ -1,3 +1,12 @@
/*---------------------------------------------------------*\
| CorsairPeripheralV2Devices.h |
| |
| Device list for Corsair V2 peripherals |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <string>

View file

@ -1,11 +1,13 @@
/*---------------------------------------------------------------------*\
/*---------------------------------------------------------*\
| CorsairPeripheralV2HardwareController.cpp |
| |
| Driver for the newer Corsair peripherals that use the '08' |
| based USB protocol and support hardware lighting modes. |
| Driver for Corsair V2 peripherals - hardware modes |
| |
| Chris M (Dr_No) 07 Dec 2022 |
\*---------------------------------------------------------------------*/
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "LogManager.h"
#include "CorsairPeripheralV2HardwareController.h"

View file

@ -1,11 +1,14 @@
/*---------------------------------------------------------------------*\
/*---------------------------------------------------------*\
| CorsairPeripheralV2HardwareController.h |
| |
| Driver for the newer Corsair peripherals that use the '08' |
| based USB protocol and support hardware lighting modes. |
| Driver for Corsair V2 peripherals - hardware modes |
| |
| Chris M (Dr_No) 07 Dec 2022 |
\*---------------------------------------------------------------------*/
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"

View file

@ -1,11 +1,13 @@
/*---------------------------------------------------------------------*\
/*---------------------------------------------------------*\
| CorsairPeripheralV2SoftwareController.cpp |
| |
| Common driver for the newer Corsair peripherals that use |
| the `08` based USB protocol |
| Driver for Corsair V2 peripherals - software modes |
| |
| Chris M (Dr_No) 11 Aug 2022 |
\*---------------------------------------------------------------------*/
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "LogManager.h"
#include "CorsairPeripheralV2SoftwareController.h"

View file

@ -1,11 +1,14 @@
/*---------------------------------------------------------------------*\
/*---------------------------------------------------------*\
| CorsairPeripheralV2SoftwareController.h |
| |
| Common driver for the newer Corsair peripherals that use |
| the `08` based USB protocol |
| Driver for Corsair V2 peripherals - software modes |
| |
| Chris M (Dr_No) 11 Aug 2022 |
\*---------------------------------------------------------------------*/
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"

View file

@ -1,11 +1,15 @@
/*---------------------------------------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairV2HardwareController.cpp |
| |
| Driver for the newer Corsair peripherals that use the '08' |
| based USB protocol and support hardware lighting modes. |
| RGBController for Corsair V2 peripherals - hardware |
| modes |
| |
| Chris M (Dr_No) 10 Dec 2022 |
\*---------------------------------------------------------------------*/
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "LogManager.h"
#include "RGBController_CorsairV2Hardware.h"

View file

@ -1,11 +1,15 @@
/*---------------------------------------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairV2HardwareController.h |
| |
| Driver for the newer Corsair peripherals that use the '08' |
| based USB protocol and support hardware lighting modes. |
| RGBController for Corsair V2 peripherals - hardware |
| modes |
| |
| Chris M (Dr_No) 10 Dec 2022 |
\*---------------------------------------------------------------------*/
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"

View file

@ -1,11 +1,14 @@
/*---------------------------------------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairV2SoftwareController.cpp |
| |
| Common driver for the newer Corsair peripherals that use |
| the `08` based USB protocol |
| RGBController for Corsair V2 peripherals - software |
| modes |
| |
| Chris M (Dr_No) 11 Aug 2022 |
\*---------------------------------------------------------------------*/
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "LogManager.h"
#include "RGBController_CorsairV2Software.h"

View file

@ -1,11 +1,15 @@
/*---------------------------------------------------------------------*\
| RGBController_CorsairV2SoftwareController.cpp |
/*---------------------------------------------------------*\
| RGBController_CorsairV2SoftwareController.h |
| |
| Common driver for the newer Corsair peripherals that use |
| the `08` based USB protocol |
| RGBController for Corsair V2 peripherals - software |
| modes |
| |
| Chris M (Dr_No) 11 Aug 2022 |
\*---------------------------------------------------------------------*/
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"

View file

@ -1,14 +1,16 @@
/*-----------------------------------------*\
| CorsairVengeanceController.h |
/*---------------------------------------------------------*\
| CorsairVengeanceController.cpp |
| |
| Driver for Corsair Vengeance RGB RAM |
| lighting controller |
| |
| Adam Honse (CalcProgrammer1) 3/8/2019 |
\*-----------------------------------------*/
| Adam Honse (CalcProgrammer1) 08 Mar 2019 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "CorsairVengeanceController.h"
#include <cstring>
#include "CorsairVengeanceController.h"
CorsairVengeanceController::CorsairVengeanceController(i2c_smbus_interface* bus, corsair_dev_id dev)
{

View file

@ -1,17 +1,19 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| CorsairVengeanceController.h |
| |
| Definitions and types for Corsair |
| Vengeance RGB RAM lighting controller |
| Driver for Corsair Vengeance RGB RAM |
| |
| Adam Honse (CalcProgrammer1) 3/8/2019 |
\*-----------------------------------------*/
| Adam Honse (CalcProgrammer1) 08 Mar 2019 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <string>
#include "i2c_smbus.h"
#pragma once
typedef unsigned char corsair_dev_id;
typedef unsigned char corsair_cmd;

View file

@ -1,12 +1,23 @@
/*---------------------------------------------------------*\
| CorsairVengeanceControllerDetect.cpp |
| |
| Detector for Corsair Vengeance RGB RAM |
| |
| Adam Honse (CalcProgrammer1) 08 Mar 2019 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include "Detector.h"
#include "CorsairVengeanceController.h"
#include "RGBController.h"
#include "RGBController_CorsairVengeance.h"
#include "i2c_smbus.h"
#include "pci_ids.h"
#include <vector>
#include <stdio.h>
#include <stdlib.h>
/******************************************************************************************\
* *

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairVengeance.cpp |
| |
| Generic RGB Interface for OpenAuraSDK |
| Corsair Vengeance RGB driver |
| RGBController for Corsair Vengeance RGB RAM |
| |
| Adam Honse (CalcProgrammer1) 6/13/2019 |
\*-----------------------------------------*/
| Adam Honse (CalcProgrammer1) 16 Jun 2019 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_CorsairVengeance.h"

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairVengeance.h |
| |
| Generic RGB Interface for OpenAuraSDK |
| Corsair Vengeance RGB driver |
| RGBController for Corsair Vengeance RGB RAM |
| |
| Adam Honse (CalcProgrammer1) 6/13/2019 |
\*-----------------------------------------*/
| Adam Honse (CalcProgrammer1) 16 Jun 2019 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,14 +1,16 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| CorsairVengeanceProController.cpp |
| |
| Definitions and types for Corsair |
| Vengeance Pro RGB RAM lighting controller|
| Driver for Corsair Vengeance Pro RGB RAM |
| |
| Adam Honse (CalcProgrammer1) 6/30/2019 |
\*-----------------------------------------*/
| Adam Honse (CalcProgrammer1) 30 Jun 2019 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "CorsairVengeanceProController.h"
#include <cstring>
#include "CorsairVengeanceProController.h"
using namespace std::chrono_literals;

View file

@ -1,18 +1,20 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| CorsairVengeanceProController.h |
| |
| Definitions and types for Corsair |
| Vengeance Pro RGB RAM lighting controller|
| Driver for Corsair Vengeance Pro RGB RAM |
| |
| Adam Honse (CalcProgrammer1) 6/30/2019 |
\*-----------------------------------------*/
| Adam Honse (CalcProgrammer1) 30 Jun 2019 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <string>
#include "i2c_smbus.h"
#include "CRC.h"
#pragma once
typedef unsigned char corsair_dev_id;
#define CORSAIR_PRO_LED_COUNT ( 10 )

View file

@ -1,3 +1,17 @@
/*---------------------------------------------------------*\
| CorsairVengeanceProControllerDetect.cpp |
| |
| Detector for Corsair Vengeance Pro RGB RAM |
| |
| Adam Honse (CalcProgrammer1) 30 Jun 2019 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include "Detector.h"
#include "CorsairVengeanceProController.h"
#include "RGBController.h"
@ -5,9 +19,6 @@
#include "i2c_smbus.h"
#include "pci_ids.h"
#include "LogManager.h"
#include <vector>
#include <stdio.h>
#include <stdlib.h>
using namespace std::chrono_literals;

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairVengeancePro.cpp |
| |
| Generic RGB Interface for OpenAuraSDK |
| Corsair Vengeance Pro RGB driver |
| RGBController for Corsair Vengeance Pro RGB RAM |
| |
| Adam Honse (CalcProgrammer1) 6/30/2019 |
\*-----------------------------------------*/
| Adam Honse (CalcProgrammer1) 30 Jun 2019 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_CorsairVengeancePro.h"

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairVengeancePro.h |
| |
| Generic RGB Interface for OpenAuraSDK |
| Corsair Vengeance Pro RGB driver |
| RGBController for Corsair Vengeance Pro RGB RAM |
| |
| Adam Honse (CalcProgrammer1) 6/30/2019 |
\*-----------------------------------------*/
| Adam Honse (CalcProgrammer1) 30 Jun 2019 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,15 +1,16 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| CorsairWirelessController.cpp |
| |
| Driver for Corsair RGB wireless keyboard |
| lighting controller |
| Driver for Corsair wireless keyboard |
| |
| Adam Honse (CalcProgrammer1) 5/8/2021 |
\*-----------------------------------------*/
#include "CorsairWirelessController.h"
| Adam Honse (CalcProgrammer1) 08 May 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "CorsairWirelessController.h"
using namespace std::chrono_literals;

View file

@ -1,18 +1,19 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| CorsairWirelessController.h |
| |
| Definitions and types for Corsair RGB |
| wireless keyboard lighting controller |
| Driver for Corsair wireless keyboard |
| |
| Adam Honse (CalcProgrammer1) 5/8/2021 |
\*-----------------------------------------*/
| Adam Honse (CalcProgrammer1) 08 May 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController.h"
#pragma once
#include <string>
#include <hidapi/hidapi.h>
#pragma once
#include "RGBController.h"
class CorsairWirelessController
{

View file

@ -1,8 +1,19 @@
/*---------------------------------------------------------*\
| CorsairWirelessControllerDetect.cpp |
| |
| Detector for Corsair wireless keyboard |
| |
| Adam Honse (CalcProgrammer1) 08 May 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <hidapi/hidapi.h>
#include "Detector.h"
#include "CorsairWirelessController.h"
#include "RGBController.h"
#include "RGBController_CorsairWireless.h"
#include <hidapi/hidapi.h>
/*-----------------------------------------------------*\
| Corsair vendor ID |

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairWireless.cpp |
| |
| Generic RGB Interface for Corsair RGB |
| wireless keyboard devices |
| RGBController for Corsair wireless keyboard |
| |
| Adam Honse (CalcProgrammer1) 5/8/2021 |
\*-----------------------------------------*/
| Adam Honse (CalcProgrammer1) 08 May 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBControllerKeyNames.h"
#include "RGBController_CorsairWireless.h"

View file

@ -1,13 +1,16 @@
/*-----------------------------------------*\
/*---------------------------------------------------------*\
| RGBController_CorsairWireless.h |
| |
| Generic RGB Interface for Corsair RGB |
| wireless keyboard devices |
| RGBController for Corsair wireless keyboard |
| |
| Adam Honse (CalcProgrammer1) 5/8/2021 |
\*-----------------------------------------*/
| Adam Honse (CalcProgrammer1) 08 May 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "CorsairWirelessController.h"