add aio reading

This commit is contained in:
2026-05-23 18:08:36 +00:00
parent 4777d51107
commit a247e8ecf6
3 changed files with 118 additions and 1 deletions

27
include/aio.h Normal file
View File

@@ -0,0 +1,27 @@
#ifndef LINUXSMARTIE_AIO_H
#define LINUXSMARTIE_AIO_H
#include <libusb-1.0/libusb.h>
#define CORSAIR_VID 0x1b1c
#define AIO_PID 0x0c13
enum aio_pump_mode_t : uint8_t {
QUIET,
BALANCED,
EXTREME
};
struct aio_t{
libusb_device_handle* handle;
enum aio_pump_mode_t mode;
float water_temp;
uint16_t pump_speed;
uint16_t fan_speed[2];
};
void aio_detect(struct aio_t *aio);
void aio_update(struct aio_t *aio);
void aio_close(const struct aio_t *aio);
#endif