Update Crucial controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-05-15 11:38:36 -05:00
parent e9d7b6b103
commit 1eb2a68a16
5 changed files with 63 additions and 44 deletions

View file

@ -1,15 +1,17 @@
/*-----------------------------------------*\
| CrucialController.cpp |
| |
| Driver for Crucial Ballistix RGB lighting|
| controller |
| |
| Adam Honse (CalcProgrammer1) 1/19/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| CrucialController.cpp |
| |
| Driver for Crucial Ballistix RAM |
| |
| Adam Honse (CalcProgrammer1) 19 Jan 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "RGBController.h"
#include "CrucialController.h"
#include <cstring>
CrucialController::CrucialController(i2c_smbus_interface* bus, crucial_dev_id dev)
{
@ -94,7 +96,7 @@ void CrucialController::SendDirectColors(RGBColor* color_buf)
{
color_blk[led] = RGBGetGValue(color_buf[led]);
}
//Green Channels
CrucialRegisterWriteBlock(0x8340, color_blk, 8);
@ -102,7 +104,7 @@ void CrucialController::SendDirectColors(RGBColor* color_buf)
{
color_blk[led] = RGBGetBValue(color_buf[led]);
}
//Blue Channels
CrucialRegisterWriteBlock(0x8380, color_blk, 8);
}

View file

@ -1,18 +1,20 @@
/*-----------------------------------------*\
| CrucialController.h |
| |
| Definitions and types for Crucial |
| Ballistix RGB lighting controller |
| |
| Adam Honse (CalcProgrammer1) 1/19/2020 |
\*-----------------------------------------*/
#include "RGBController.h"
#include <string>
#include "i2c_smbus.h"
/*---------------------------------------------------------*\
| CrucialController.h |
| |
| Driver for Crucial Ballistix RAM |
| |
| Adam Honse (CalcProgrammer1) 19 Jan 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <string>
#include "RGBController.h"
#include "i2c_smbus.h"
typedef unsigned char crucial_dev_id;
typedef unsigned short crucial_register;
@ -68,7 +70,7 @@ private:
unsigned int green,
unsigned int blue
);
void SendDirectColors(RGBColor* color_buf);
void SendBrightness(unsigned char brightness);
void SendEffectMode(unsigned char mode, unsigned char speed);

View file

@ -1,3 +1,17 @@
/*---------------------------------------------------------*\
| CrucialControllerDetect.cpp |
| |
| Detector for Crucial Ballistix RAM |
| |
| Adam Honse (CalcProgrammer1) 19 Jan 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include "Detector.h"
#include "CrucialController.h"
#include "LogManager.h"
@ -5,9 +19,6 @@
#include "RGBController_Crucial.h"
#include "i2c_smbus.h"
#include "pci_ids.h"
#include <vector>
#include <stdio.h>
#include <stdlib.h>
using namespace std::chrono_literals;

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| RGBController_Crucial.cpp |
| |
| Generic RGB Interface for Crucial |
| Ballistix RGB controller |
| |
| Adam Honse (CalcProgrammer1) 1/19/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_Crucial.cpp |
| |
| RGBController for Crucial Ballistix RAM |
| |
| Adam Honse (CalcProgrammer1) 19 Jan 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_Crucial.h"

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| RGBController_Crucial.h |
| |
| Generic RGB Interface for Crucial |
| Ballistix RGB controller |
| |
| Adam Honse (CalcProgrammer1) 1/19/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_Crucial.h |
| |
| RGBController for Crucial Ballistix RAM |
| |
| Adam Honse (CalcProgrammer1) 19 Jan 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
@ -21,7 +23,7 @@ public:
void SetupZones();
void ResizeZone(int zone, int new_size);
void DeviceUpdateLEDs();
void UpdateZoneLEDs(int zone);
void UpdateSingleLED(int led);