13 #include <lusb0_usb.h>
23 #define RGBLED_IDLETIME_DISABLE 0
25 typedef unsigned char byte;
57 #if defined(__cplusplus)
198 #if defined(__cplusplus)
202 #if defined(__cplusplus) || defined(DOXYGEN)
230 static bool sameDevice(usb_dev_handle* handle1, usb_dev_handle* handle2);
void getVersion(byte(&version)[2])
bool rgbledctrl_sameDevice(usb_dev_handle *handle1, usb_dev_handle *handle2)
byte blue
Definition: rgbledctrl.h:35
s_rgbled_device * rgbledctrl_open(void)
usb_dev_handle * handle
Definition: rgbledctrl.h:50
uint16_t eepAddr_t
Definition: rgbledctrl.h:27
bool eeprom_read(byte &data, eepAddr_t address)
bool rgbledctrl_setRGB(s_rgbled_device *device, s_rgbVal *colour)
bool eeprom_write(byte data, eepAddr_t address)
static bool sameDevice(usb_dev_handle *handle1, usb_dev_handle *handle2)
s_rgbled_deviceSettings settings
Definition: rgbledctrl.h:54
bool rgbledctrl_setG(s_rgbled_device *device, byte value)
unsigned char byte
Definition: rgbledctrl.h:25
bool setIdleTime(byte time)
s_rgbled_device * rgbledctrl_open_byEEPROM(byte value, eepAddr_t address)
C++ Wrapper class for C library.
Definition: rgbledctrl.h:206
s_rgbled_device * rgbledctrl_open_byIndex(uint idx)
byte green
Definition: rgbledctrl.h:34
bool rgbledctrl_reset(s_rgbled_device *device)
s_rgbVal rgb
Definition: rgbledctrl.h:53
RGB LED Device.
Definition: rgbledctrl.h:49
General device settings.
Definition: rgbledctrl.h:41
uint rgbledctrl_find(void)
void rgbledctrl_close(s_rgbled_device *device)
bool rgbledctrl_eeprom_write(s_rgbled_device *device, byte data, eepAddr_t address)
eepAddr_t getEepromSize()
byte red
Definition: rgbledctrl.h:33
bool rgbledctrl_setB(s_rgbled_device *device, byte value)
void getColour(s_rgbVal &colour)
bool rgbledctrl_eeprom_read(s_rgbled_device *device, byte *data, eepAddr_t address)
unsigned int uint
Definition: rgbledctrl.h:26
void rgbledctrl_init(void)
bool rgbledctrl_setR(s_rgbled_device *device, byte value)
byte idleTime
Definition: rgbledctrl.h:42
Structure for RGB values.
Definition: rgbledctrl.h:32
eepAddr_t eepromSize
Definition: rgbledctrl.h:52
bool setRGB(s_rgbVal &colour)
usb_dev_handle * getHandle()
bool rgbledctrl_setIdleTime(s_rgbled_device *device, byte time)
bool rgbledctrl_poke(s_rgbled_device *device)