Update Razer Kraken controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-06-07 11:29:57 -05:00
parent d2d342ade7
commit 7c1cb2e4e0
4 changed files with 49 additions and 32 deletions

View file

@ -1,3 +1,14 @@
/*---------------------------------------------------------*\
| RGBController_RazerKraken.cpp |
| |
| RGBController for Razer Kraken |
| |
| Adam Honse (CalcProgrammer1) 28 Feb 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_RazerKraken.h"
#include "RazerDevices.h"

View file

@ -1,13 +1,16 @@
/*-----------------------------------------*\
| RGBController_RazerKraken.h |
| |
| Generic RGB Interface for Razer Kraken |
| devices |
| |
| Adam Honse (CalcProgrammer1) 2/28/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_RazerKraken.h |
| |
| RGBController for Razer Kraken |
| |
| Adam Honse (CalcProgrammer1) 28 Feb 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "RazerKrakenController.h"
@ -29,7 +32,7 @@ public:
void SetupZones();
void ResizeZone(int zone, int new_size);
void DeviceUpdateLEDs();
void UpdateZoneLEDs(int zone);
void UpdateSingleLED(int led);

View file

@ -1,15 +1,17 @@
/*-----------------------------------------*\
| RazerKrakenController.cpp |
| |
| Driver for Razer Kraken devices |
| |
| Adam Honse (CalcProgrammer1) 2/28/2021 |
\*-----------------------------------------*/
#include "RazerKrakenController.h"
#include "RazerDevices.h"
/*---------------------------------------------------------*\
| RazerKrakenController.cpp |
| |
| Driver for Razer Kraken |
| |
| Adam Honse (CalcProgrammer1) 28 Feb 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <string.h>
#include "RazerKrakenController.h"
#include "RazerDevices.h"
using namespace std::chrono_literals;

View file

@ -1,18 +1,19 @@
/*-----------------------------------------*\
| RazerKrakenController.h |
| |
| Definitions and types for Razer Kraken |
| devices |
| |
| Adam Honse (CalcProgrammer1) 2/28/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RazerKrakenController.h |
| |
| Driver for Razer Kraken |
| |
| Adam Honse (CalcProgrammer1) 28 Feb 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"
/*---------------------------------------------------------*\
| Struct packing macro for GCC and MSVC |
@ -115,10 +116,10 @@ private:
\*---------------------------------------------------------*/
razer_kraken_request_report razer_kraken_create_report(unsigned char report_id, unsigned char destination, unsigned char length, unsigned short address);
razer_kraken_effect_byte razer_kraken_create_effect_byte();
std::string razer_get_firmware();
std::string razer_get_serial();
void razer_set_mode_breathing_one_color(unsigned char red, unsigned char grn, unsigned char blu);
void razer_set_mode_breathing_two_colors(unsigned char r1, unsigned char g1, unsigned char b1, unsigned char r2, unsigned char g2, unsigned char b2);
void razer_set_mode_breathing_three_colors(unsigned char r1, unsigned char g1, unsigned char b1, unsigned char r2, unsigned char g2, unsigned char b2, unsigned char r3, unsigned char g3, unsigned char b3);