mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-01-19 12:37:52 -05:00
44 lines
1014 B
C++
44 lines
1014 B
C++
/*-----------------------------------------*\
|
|
| SeagateController.h |
|
|
| |
|
|
| Definitions for Seagate Firecuda |
|
|
| External HDD RGB controller |
|
|
| |
|
|
| Adam Honse (CalcProgrammer1) 6/15/2023 |
|
|
\*-----------------------------------------*/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <windows.h>
|
|
#include <fileapi.h>
|
|
#include "ntddscsi.h"
|
|
|
|
class SeagateController
|
|
{
|
|
public:
|
|
SeagateController(HANDLE fd, wchar_t* path);
|
|
~SeagateController();
|
|
|
|
std::string GetLocation();
|
|
|
|
void SetLED
|
|
(
|
|
unsigned char led_id,
|
|
unsigned char r,
|
|
unsigned char g,
|
|
unsigned char b,
|
|
bool save
|
|
);
|
|
|
|
private:
|
|
HANDLE fd;
|
|
std::wstring path;
|
|
|
|
void SeagateController::SendPacket
|
|
(
|
|
void * packet,
|
|
unsigned char packet_sz
|
|
);
|
|
};
|