Publish curated LumaOps source from c85ee9ef8f1454f5c305398902afbb9e6738de40
Managed validation / full (push) Failing after 8s

This commit is contained in:
Public Source Publisher committed 2026-09-30 00:26:45 +00:00
1 parent 91f8b3e3c1
commit def7920856
2271 files changed
+501225 -501178

No files matched your search

+54 -54
View File
@@ -1,54 +1,54 @@
/*---------------------------------------------------------*\
| FanBusInterface.h |
| |
| Interface for FanBus devices |
| |
| Adam Honse (calcprogrammer1@gmail.com) 12 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#include <string>
#include <vector>
#include "serial_port.h"
class FanBusInterface
{
public:
FanBusInterface(const char* portname);
~FanBusInterface();
std::vector<unsigned char> DetectControllers();
std::string GetPort();
int read
(
unsigned char dev_addr,
unsigned char int_addr
);
int write
(
unsigned char dev_addr,
unsigned char int_addr,
unsigned char val
);
void write_queue
(
unsigned char dev_addr,
unsigned char int_addr,
unsigned char val
);
int process_queue();
private:
serial_port * serialport;
std::string port_name;
bool half_duplex;
std::vector<unsigned char> fanbus_msg_queued;
};
/*---------------------------------------------------------*\
| FanBusInterface.h |
| |
| Interface for FanBus devices |
| |
| Adam Honse (calcprogrammer1@gmail.com) 12 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#include <string>
#include <vector>
#include "serial_port.h"
class FanBusInterface
{
public:
FanBusInterface(const char* portname);
~FanBusInterface();
std::vector<unsigned char> DetectControllers();
std::string GetPort();
int read
(
unsigned char dev_addr,
unsigned char int_addr
);
int write
(
unsigned char dev_addr,
unsigned char int_addr,
unsigned char val
);
void write_queue
(
unsigned char dev_addr,
unsigned char int_addr,
unsigned char val
);
int process_queue();
private:
serial_port * serialport;
std::string port_name;
bool half_duplex;
std::vector<unsigned char> fanbus_msg_queued;
};