Update Trust GXT 114 controller files to new standardized header comment
This commit is contained in:
parent
15c3d8591c
commit
0227864ae3
4 changed files with 50 additions and 41 deletions
|
|
@ -1,16 +1,17 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_TrustGXT114.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for OpenRGB |
|
||||
| Trust GXT 114 USB Driver |
|
||||
| |
|
||||
| Guimard Morgan (morg) 1/24/2022 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_TrustGXT114.cpp |
|
||||
| |
|
||||
| RGBController for Trust GXT 114 |
|
||||
| |
|
||||
| Morgan Guimard (morg) 24 Jan 2022 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBController_TrustGXT114.h"
|
||||
|
||||
#include <thread>
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
#include "RGBController_TrustGXT114.h"
|
||||
|
||||
/**------------------------------------------------------------------*\
|
||||
@name Trust GXT 114
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_TrustGXT114.h |
|
||||
| |
|
||||
| Generic RGB Interface for OpenRGB |
|
||||
| Trust GXT 114 USB Driver |
|
||||
| |
|
||||
| Guimard Morgan (morg) 1/24/2022 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_TrustGXT114.h |
|
||||
| |
|
||||
| RGBController for Trust GXT 114 |
|
||||
| |
|
||||
| Morgan Guimard (morg) 24 Jan 2022 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
|
|
@ -20,7 +22,7 @@ public:
|
|||
|
||||
void SetupZones();
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
|
|
|||
|
|
@ -1,12 +1,16 @@
|
|||
/*-----------------------------------------*\
|
||||
| TrustGXT114Controller.cpp |
|
||||
| |
|
||||
| Driver for Trust GXT 114 controller |
|
||||
| |
|
||||
| Guimard Morgan (morg) 1/24/2022 |
|
||||
\*-----------------------------------------*/
|
||||
#include "TrustGXT114Controller.h"
|
||||
/*---------------------------------------------------------*\
|
||||
| TrustGXT114Controller.cpp |
|
||||
| |
|
||||
| Driver for Trust GXT 114 |
|
||||
| |
|
||||
| Morgan Guimard (morg) 24 Jan 2022 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <string.h>
|
||||
#include "TrustGXT114Controller.h"
|
||||
|
||||
TrustGXT114Controller::TrustGXT114Controller(hid_device* dev_handle, const hid_device_info& info)
|
||||
{
|
||||
|
|
@ -61,7 +65,7 @@ bool TrustGXT114Controller::Test()
|
|||
|
||||
void TrustGXT114Controller::SetMode(RGBColor color, unsigned char brightness, unsigned char speed, unsigned char mode_value)
|
||||
{
|
||||
unsigned char speed_bright = mode_value == STATIC_MODE_VALUE ? brightness : speed;
|
||||
unsigned char speed_bright = mode_value == STATIC_MODE_VALUE ? brightness : speed;
|
||||
|
||||
/*-----------------------------------------*\
|
||||
| Create and zero out the buffer |
|
||||
|
|
|
|||
|
|
@ -1,18 +1,20 @@
|
|||
/*-----------------------------------------*\
|
||||
| TrustGXT114Controller.h |
|
||||
| |
|
||||
| Driver for Trust GXT 114 |
|
||||
| controller - header file |
|
||||
| |
|
||||
| Guimard Morgan (morg) 1/24/2022 |
|
||||
\*-----------------------------------------*/
|
||||
|
||||
#include "RGBController.h"
|
||||
#include <string>
|
||||
#include <hidapi/hidapi.h>
|
||||
/*---------------------------------------------------------*\
|
||||
| TrustGXT114Controller.h |
|
||||
| |
|
||||
| Driver for Trust GXT 114 |
|
||||
| |
|
||||
| Morgan Guimard (morg) 24 Jan 2022 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <hidapi/hidapi.h>
|
||||
#include "RGBController.h"
|
||||
|
||||
#define TRUST_GXT_114_REPORT_SIZE 154
|
||||
#define TRUST_GXT_114_NUMBER_OF_LEDS 1
|
||||
#define TRUST_GXT_114_REPORT_ID 0x04
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue