28 lines
475 B
C
28 lines
475 B
C
#ifndef LINUXSMARTIE_AIO_H
|
|
#define LINUXSMARTIE_AIO_H
|
|
|
|
#include <libusb-1.0/libusb.h>
|
|
|
|
#define AIO_USB_VID 0x1b1c
|
|
#define AIO_USB_PID 0x0c13
|
|
|
|
enum aio_pump_mode_t : uint8_t {
|
|
QUIET,
|
|
BALANCED,
|
|
EXTREME
|
|
};
|
|
|
|
struct aio_t{
|
|
libusb_device_handle* handle;
|
|
enum aio_pump_mode_t pump_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
|