Update N5312A controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-06-01 01:03:08 -05:00
parent 75f895799c
commit feefc79757
5 changed files with 59 additions and 38 deletions

View file

@ -1,13 +1,16 @@
/*-----------------------------------------*\
| N5312AController.cpp |
| |
| Driver for N5312A lighting |
| controller |
| |
| Guimard Morgan (morg) 4/02/2022 |
\*-----------------------------------------*/
#include "N5312AController.h"
/*---------------------------------------------------------*\
| N5312AController.cpp |
| |
| Driver for N5312A |
| |
| Morgan Guimard (morg) 02 Apr 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <string.h>
#include "N5312AController.h"
#include "LogManager.h"
N5312AController::N5312AController(hid_device* dev_handle, const hid_device_info& info)

View file

@ -1,16 +1,19 @@
/*-----------------------------------------*\
| N5312AController.h |
| |
| Driver for N5312A lighting |
| controller - header file |
| |
| Guimard Morgan (morg) 4/02/2022 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| N5312AController.h |
| |
| Driver for N5312A |
| |
| Morgan Guimard (morg) 02 Apr 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include <string>
#include <hidapi/hidapi.h>
#include "RGBController.h"
#define N5312A_REPORT_ID 0x07
#define N5312A_PACKET_DATA_LENGTH 8

View file

@ -1,3 +1,14 @@
/*---------------------------------------------------------*\
| N5312AControllerDetect.cpp |
| |
| Detector for N5312A |
| |
| Morgan Guimard (morg) 02 Apr 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "Detector.h"
#include "N5312AController.h"
#include "RGBController.h"

View file

@ -1,16 +1,17 @@
/*-----------------------------------------*\
| RGBController_N5312A.cpp |
| |
| Generic RGB Interface for OpenRGB |
| N5312A RGB USB Driver |
| |
| Guimard Morgan (morg) 4/02/2022 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_N5312A.cpp |
| |
| RGBController for N5312A |
| |
| Morgan Guimard (morg) 02 Apr 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_N5312A.h"
#include <thread>
#include <chrono>
#include <thread>
#include "RGBController_N5312A.h"
/**------------------------------------------------------------------*\
@name N5312A mouse
@ -24,6 +25,7 @@
Identified devices that work with this controller: ANT Esports KM540 Mouse,
Marvo M115
\*-------------------------------------------------------------------*/
RGBController_N5312A::RGBController_N5312A(N5312AController* controller_ptr)
{
controller = controller_ptr;
@ -132,7 +134,7 @@ void RGBController_N5312A::UpdateSingleLED(int led)
}
void RGBController_N5312A::DeviceUpdateMode()
{
{
const RGBColor& color = modes[active_mode].value == N5312A_OFF_MODE_VALUE ? 0 : colors[0];
controller->SetMode(color, modes[active_mode].value, modes[active_mode].brightness, modes[active_mode].speed);
}

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| RGBController_N5312A.h |
| |
| Generic RGB Interface for OpenRGB |
| N5312A RGB USB Driver |
| |
| Guimard Morgan (morg) 4/02/2022 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_N5312A.h |
| |
| RGBController for N5312A |
| |
| Morgan Guimard (morg) 02 Apr 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once