Formatting and organizational cleanup for controllers beginning with A

This commit is contained in:
Adam Honse 2024-04-30 23:37:19 -05:00
parent 89645dff38
commit b6d5c64c5b
78 changed files with 356 additions and 379 deletions

View file

@ -1,5 +1,5 @@
/*-----------------------------------------*\
| ASRockASRRGBSMBusController.h |
| ASRockASRRGBSMBusController.h |
| |
| Definitions and types for ASRock |
| ASR LED and Polychrome RGB lighting |
@ -8,11 +8,11 @@
| Adam Honse (CalcProgrammer1) 12/13/2019 |
\*-----------------------------------------*/
#include "i2c_smbus.h"
#include <string>
#pragma once
#include <string>
#include "i2c_smbus.h"
typedef uint8_t polychrome_dev_id;
#define ASROCK_ASR_CONTROLLER_NAME "ASRock ASR RGB SMBus Controller"
@ -63,7 +63,7 @@ public:
uint8_t GetMode();
void SetColorsAndSpeed(uint8_t led, uint8_t red, uint8_t green, uint8_t blue);
void SetMode(uint8_t zone, uint8_t mode, uint8_t speed);
uint16_t fw_version;
private:

View file

@ -8,11 +8,11 @@
| Adam Honse (CalcProgrammer1) 12/13/2019 |
\*-----------------------------------------*/
#pragma once
#include <string>
#include "i2c_smbus.h"
#include "RGBController.h"
#include <string>
#pragma once
typedef uint8_t polychrome_dev_id;

View file

@ -7,8 +7,8 @@
| Adam Honse (CalcProgrammer1) 12/14/2019 |
\*-----------------------------------------*/
#include "ASRockPolychromeV2SMBusController.h"
#include <cstring>
#include "ASRockPolychromeV2SMBusController.h"
#include "dependencies/dmiinfo.h"
#include "LogManager.h"

View file

@ -8,11 +8,11 @@
| Adam Honse (CalcProgrammer1) 12/13/2019 |
\*-----------------------------------------*/
#include "i2c_smbus.h"
#include <string>
#pragma once
#include <string>
#include "i2c_smbus.h"
typedef uint8_t polychrome_dev_id;
#define ASROCK_V2_CONTROLLER_NAME "ASRock Polychrome v2 SMBus Controller"
@ -132,7 +132,7 @@ public:
uint8_t zone_led_count[6];
uint16_t fw_version;
private:
std::string device_name;
uint8_t active_zone;

View file

@ -1,3 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include "Detector.h"
#include "ASRockASRRGBSMBusController.h"
#include "ASRockPolychromeV1SMBusController.h"
@ -9,9 +12,6 @@
#include "RGBController_ASRockPolychromeV2SMBus.h"
#include "i2c_smbus.h"
#include "pci_ids.h"
#include <vector>
#include <stdio.h>
#include <stdlib.h>
/*******************************************************************************************\
* *