mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-27 01:07:49 -05:00
* Created FORMS macro list dynamically * Added GUI_H and CONTROLLERS_H list to HEADERS * Added GUI_CPP and CONTROLLERS_CPP list to SOURCES * Added unique list of GUI_INCLUDES and CONTROLLER_INCLUDES to INCLUDES * Adjusted platform specific builds to align build targets
31 lines
1.0 KiB
C++
31 lines
1.0 KiB
C++
/*-----------------------------------------*\
|
|
| ENESMBusInterface_SpectrixS40G.h |
|
|
| |
|
|
| Definitions and types for ENE XPG |
|
|
| Spectrix S40G NVMe interface |
|
|
| |
|
|
| Adam Honse (CalcProgrammer1) 11/21/2021 |
|
|
\*-----------------------------------------*/
|
|
|
|
#include "ENESMBusInterface.h"
|
|
|
|
#pragma once
|
|
|
|
class ENESMBusInterface_SpectrixS40G : public ENESMBusInterface
|
|
{
|
|
public:
|
|
ENESMBusInterface_SpectrixS40G(int fd, char* path);
|
|
~ENESMBusInterface_SpectrixS40G();
|
|
|
|
ene_interface_type GetInterfaceType();
|
|
std::string GetLocation();
|
|
int GetMaxBlock();
|
|
unsigned char ENERegisterRead(ene_dev_id dev, ene_register reg);
|
|
void ENERegisterWrite(ene_dev_id dev, ene_register reg, unsigned char val);
|
|
void ENERegisterWriteBlock(ene_dev_id dev, ene_register reg, unsigned char * data, unsigned char sz);
|
|
|
|
private:
|
|
int nvme_fd;
|
|
std::string path;
|
|
};
|