/*-----------------------------------------*\
|  RGBController_AsusAuraHeadsetStand.h     |
|                                           |
|  Generic RGB Interface for Asus Aura      |
|  USB controller driver                    |
|                                           |
|  Mola19 06/04/2021                        |
\*-----------------------------------------*/

#pragma once
#include "RGBController.h"
#include "AsusAuraHeadsetStandController.h"

enum
{
    AURA_HEADSETSTAND_BRIGHTNESS_MIN     = 0,
    AURA_HEADSETSTAND_BRIGHTNESS_MAX     = 4,
    AURA_HEADSETSTAND_BRIGHTNESS_DEFAULT = 4,
    AURA_HEADSETSTAND_SPEED_MIN          = 0,
    AURA_HEADSETSTAND_SPEED_MAX          = 255,
    AURA_HEADSETSTAND_SPEED_DEFAULT      = 127,
};

class RGBController_AuraHeadsetStand : public RGBController
{
public:
    RGBController_AuraHeadsetStand(AuraHeadsetStandController* controller_ptr);
    ~RGBController_AuraHeadsetStand();

    void        SetupZones();

    void        ResizeZone(int zone, int new_size);

    void        DeviceUpdateLEDs();
    void        UpdateZoneLEDs(int zone);
    void        UpdateSingleLED(int led);

    void        SetCustomMode();
    void        DeviceUpdateMode();
    void        DeviceSaveMode();

private:
    AuraHeadsetStandController*  controller;
};
