From ef48039a1b26a949ff602d1ca5471fa8af259cec Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Tue, 23 Jul 2024 20:57:07 -0500 Subject: [PATCH] Update SteelSeriesSiberiaController files to new standardized header format --- .../RGBController_SteelSeriesSiberia.cpp | 18 +++++++----- .../RGBController_SteelSeriesSiberia.h | 18 +++++++----- .../SteelSeriesSiberiaController.cpp | 29 ++++++++++--------- .../SteelSeriesSiberiaController.h | 22 +++++++------- 4 files changed, 47 insertions(+), 40 deletions(-) diff --git a/Controllers/SteelSeriesController/SteelSeriesSiberiaController/RGBController_SteelSeriesSiberia.cpp b/Controllers/SteelSeriesController/SteelSeriesSiberiaController/RGBController_SteelSeriesSiberia.cpp index 6626a86a..3cb40c0c 100644 --- a/Controllers/SteelSeriesController/SteelSeriesSiberiaController/RGBController_SteelSeriesSiberia.cpp +++ b/Controllers/SteelSeriesController/SteelSeriesSiberiaController/RGBController_SteelSeriesSiberia.cpp @@ -1,11 +1,13 @@ -/*-----------------------------------------*\ -| RGBController_SteelSeriesSiberia.cpp | -| | -| Generic RGB Interface SteelSeriesSiberia | -| Class | -| | -| E Karlsson (pilophae) 18/06/2020 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_SteelSeriesSiberia.cpp | +| | +| RGBController for SteelSeries Siberia | +| | +| E Karlsson (pilophae) 18 Jun 2020 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #include "RGBController_SteelSeriesSiberia.h" diff --git a/Controllers/SteelSeriesController/SteelSeriesSiberiaController/RGBController_SteelSeriesSiberia.h b/Controllers/SteelSeriesController/SteelSeriesSiberiaController/RGBController_SteelSeriesSiberia.h index 9cfeeb90..a17d566d 100644 --- a/Controllers/SteelSeriesController/SteelSeriesSiberiaController/RGBController_SteelSeriesSiberia.h +++ b/Controllers/SteelSeriesController/SteelSeriesSiberiaController/RGBController_SteelSeriesSiberia.h @@ -1,11 +1,13 @@ -/*-----------------------------------------*\ -| RGBController_SteelSeriesSiberia.h | -| | -| Generic RGB Interface SteelSeriesSiberia | -| Class | -| | -| E Karlsson (pilophae) 18/06/2020 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_SteelSeriesSiberia.h | +| | +| RGBController for SteelSeries Siberia | +| | +| E Karlsson (pilophae) 18 Jun 2020 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #pragma once diff --git a/Controllers/SteelSeriesController/SteelSeriesSiberiaController/SteelSeriesSiberiaController.cpp b/Controllers/SteelSeriesController/SteelSeriesSiberiaController/SteelSeriesSiberiaController.cpp index cca454ae..97a24f18 100644 --- a/Controllers/SteelSeriesController/SteelSeriesSiberiaController/SteelSeriesSiberiaController.cpp +++ b/Controllers/SteelSeriesController/SteelSeriesSiberiaController/SteelSeriesSiberiaController.cpp @@ -1,21 +1,22 @@ -/*-----------------------------------------*\ -| SteelSeriesSiberiaController.cpp | -| | -| Definitions and types for SteelSeries | -| Siberia lighting controller | -| | -| E Karlsson (pilophae) 18/6/2020 | -| -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| SteelSeriesSiberiaController.cpp | +| | +| Driver for SteelSeries Siberia | +| | +| E Karlsson (pilophae) 18 Jun 2020 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ -#include "SteelSeriesSiberiaController.h" #include +#include "SteelSeriesSiberiaController.h" static void send_usb_msg(hid_device* dev, char * data_pkt, unsigned int size) { unsigned char usb_pkt[16]; memset(usb_pkt, 0x00, sizeof(usb_pkt)); - + // Report number usb_pkt[0] = 0x01; // Magic @@ -29,7 +30,7 @@ static void send_usb_msg(hid_device* dev, char * data_pkt, unsigned int size) { usb_pkt[4 + i] = data_pkt[1 + i]; } - + hid_write(dev, usb_pkt, 16); } @@ -62,7 +63,7 @@ std::string SteelSeriesSiberiaController::GetSerialString() { wchar_t serial_string[128]; int ret = hid_get_serial_number_string(dev, serial_string, 128); - + if (ret != 0) { return(""); @@ -83,7 +84,7 @@ void SteelSeriesSiberiaController::SetColor { char usb_buf[4]; memset(usb_buf, 0x00, sizeof(usb_buf)); - + // Command 1 usb_buf[0] = 0x95; usb_buf[1] = 0x80; diff --git a/Controllers/SteelSeriesController/SteelSeriesSiberiaController/SteelSeriesSiberiaController.h b/Controllers/SteelSeriesController/SteelSeriesSiberiaController/SteelSeriesSiberiaController.h index 8b872b85..f18db7b6 100644 --- a/Controllers/SteelSeriesController/SteelSeriesSiberiaController/SteelSeriesSiberiaController.h +++ b/Controllers/SteelSeriesController/SteelSeriesSiberiaController/SteelSeriesSiberiaController.h @@ -1,17 +1,19 @@ -/*-----------------------------------------*\ -| SteelSeriesSiberiaController.h | -| | -| Definitions and types for SteelSeries | -| Siberia lighting controller | -| | -| E Karlsson (pilophae) 18/6/2020 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| SteelSeriesSiberiaController.h | +| | +| Driver for SteelSeries Siberia | +| | +| E Karlsson (pilophae) 18 Jun 2020 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once #include #include -#pragma once - class SteelSeriesSiberiaController { public: