Update Thermaltake Riing Quad controller files to new standardized header comment
This commit is contained in:
parent
49b6ba0303
commit
5e9a180c79
4 changed files with 46 additions and 38 deletions
|
|
@ -1,11 +1,13 @@
|
|||
/*-------------------------------------------------------------------*\
|
||||
| RGBController_ThermaltakeRiingQuad.cpp |
|
||||
| |
|
||||
| Driver for Thermaltake Riing Quad Controller |
|
||||
| |
|
||||
| Chris M (Dr_No) 15th Feb 2021 |
|
||||
| |
|
||||
\*-------------------------------------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_ThermaltakeRiingQuad.cpp |
|
||||
| |
|
||||
| RGBController for Thermaltake Riing Quad |
|
||||
| |
|
||||
| Chris M (Dr_No) 15 Feb 2021 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBController_ThermaltakeRiingQuad.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,16 @@
|
|||
/*-------------------------------------------------------------------*\
|
||||
| RGBController_ThermaltakeRiingQuad.cpp |
|
||||
| |
|
||||
| Driver for Thermaltake Riing Quad Controller |
|
||||
| |
|
||||
| Chris M (Dr_No) 15th Feb 2021 |
|
||||
| |
|
||||
\*-------------------------------------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_ThermaltakeRiingQuad.h |
|
||||
| |
|
||||
| RGBController for Thermaltake Riing Quad |
|
||||
| |
|
||||
| Chris M (Dr_No) 15 Feb 2021 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "RGBController.h"
|
||||
#include "ThermaltakeRiingQuadController.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,15 +1,16 @@
|
|||
/*-------------------------------------------------------------------*\
|
||||
| ThermaltakeRiingQuadController.cpp |
|
||||
| |
|
||||
| Driver for Thermaltake Riing Quad Controller |
|
||||
| |
|
||||
| Chris M (Dr_No) 15th Feb 2021 |
|
||||
| |
|
||||
\*-------------------------------------------------------------------*/
|
||||
|
||||
#include "ThermaltakeRiingQuadController.h"
|
||||
/*---------------------------------------------------------*\
|
||||
| ThermaltakeRiingQuadController.cpp |
|
||||
| |
|
||||
| Driver for Thermaltake Riing Quad |
|
||||
| |
|
||||
| Chris M (Dr_No) 15 Feb 2021 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <cstring>
|
||||
#include "ThermaltakeRiingQuadController.h"
|
||||
|
||||
ThermaltakeRiingQuadController::ThermaltakeRiingQuadController(hid_device* dev_handle, const char* path)
|
||||
{
|
||||
|
|
@ -104,7 +105,7 @@ void ThermaltakeRiingQuadController::SetChannelLEDs(unsigned char channel, RGBCo
|
|||
tt_quad_buffer[channel][THERMALTAKE_QUAD_ZONE_BYTE] = channel + 1;
|
||||
tt_quad_buffer[channel][THERMALTAKE_QUAD_MODE_BYTE] = current_mode + ( current_speed & 0x03 );
|
||||
memcpy(&tt_quad_buffer[channel][THERMALTAKE_QUAD_DATA_BYTE], color_data, (num_colors * 3));
|
||||
|
||||
|
||||
hid_write(dev, tt_quad_buffer[channel], THERMALTAKE_QUAD_PACKET_SIZE);
|
||||
|
||||
delete[] color_data;
|
||||
|
|
|
|||
|
|
@ -1,18 +1,20 @@
|
|||
/*-------------------------------------------------------------------*\
|
||||
| ThermaltakeRiingQuadController.h |
|
||||
| |
|
||||
| Driver for Thermaltake Riing Quad Controller |
|
||||
| |
|
||||
| Chris M (Dr_No) 15th Feb 2021 |
|
||||
| |
|
||||
\*-------------------------------------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| ThermaltakeRiingQuadController.h |
|
||||
| |
|
||||
| Driver for Thermaltake Riing Quad |
|
||||
| |
|
||||
| Chris M (Dr_No) 15 Feb 2021 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "RGBController.h"
|
||||
#include <chrono>
|
||||
#include <vector>
|
||||
#include <hidapi/hidapi.h>
|
||||
|
||||
#pragma once
|
||||
#include "RGBController.h"
|
||||
|
||||
#define THERMALTAKE_QUAD_PACKET_SIZE 193
|
||||
#define THERMALTAKE_QUAD_INTERRUPT_TIMEOUT 250
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue