|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
29 #ifndef _DS_FRONTPANELINDICATOR_HPP_
30 #define _DS_FRONTPANELINDICATOR_HPP_
101 Blink(
int interval = 0,
int iteration = 0);
142 static const char * kPropertyBrightness;
143 static const char * kPropertyColor;
182 void setBrightness(
const int &brightness,
const bool toPersist =
true);
183 void setColor(
const Color & newColor,
const bool toPersist =
true);
187 void setColor(
const uint32_t color,
const bool toPersist =
true);
195 FrontPanelIndicator(
int id,
int maxBrightness,
int maxCycleRate,
int levels,
int colorMode);
static const int kPower
Indicates id of power LED.
Blink(int interval=0, int iteration=0)
This API is a parameterized constructor for the nested class Blink.
int _maxBrightness
Indicates maximum brightness value for the FP indicators.
virtual ~FrontPanelIndicator()
This function is the default constructor for FrontPanelIndicator.
static const int kRecord
Indicates id of record LED.
Blink _blink
A Blink instance to control blink iterations and intervals of the LED.
This class is implemented using templates and it is used to maintain a container with the list of sup...
void setColor(const Color &newColor, const bool toPersist=true)
This API sets the color of the front panel indicator.
void getBrightnessLevels(int &levels, int &min, int &max)
This function gets the maximum brightness, minimum brightness and the brightness level set for the fr...
static const int kMax
Indicates the maximum number of LEDS supported.
This file defines DSConstant class which is inherited by most of the device settings classes.
int getColorMode()
This function is used to get the color mode of the front panel indicator. The color mode is device sp...
Device Settings HAL types.
const Blink getBlink() const
This API gets the blink parameters of the front panel display like iterations and interval.
int _state
Indicates the FP indicator is enabled if true.
This class supports to manage front panel indicator blink sequence.
static const int kRemote
Indicates id of remote LED.
This class is used to store and manage the names and id's. It is derived by many classes like VideoRe...
Structures and classes for front panel indicator are defined here.
void setBrightness(const int &brightness, const bool toPersist=true)
This API sets the brightness or intensity of the front panel indicators.
Device Settings HAL utilities.
void enable()
This function is used to indicate that the port or port attribute calling this function are enabled.
int getInterval() const
This API is used to get the blink intervals of front panel indicator.
virtual ~Color()
This function is the default destructor of class Color.
static const int kBlue
Indicates RGB value of blue color.
int _brightness
Indicates the brightness of the LED indicator.
static const int kGreen
Indicates RGB value of green color.
int _maxCycleRate
Indicates maximum cycle rate for scrolling of LED.
const List< Color > getSupportedColors() const
This API gets the list of supported colors for front panel indicator.
int _interval
Indicates the blink interval for front panel indicators.
bool getState()
This API gets the State of the specified LED indicators.
static const int kWhite
Indicates RGB value of white color.
uint32_t getColor()
This API gets the color of the front panel indicator/LED.
static const int kRFBypass
Indicates id of RF bypass LED.
void setBlink(const Blink &blink)
This API sets the blink iteration and blink interval for the LED.
static const Color & getInstance(int id)
This function gets an instance of the Color with the specified id, only if the id passed is valid.
static const int kYellow
Indicates RGB value of yellow color.
int getIteration() const
This API is used to get the blink iterations of front panel indicator.
int _levels
Indicates the brightness level.
static const int kRed
Indicates RGB value of red color.
static const int kMax
Indicates maximum number of pre-defined colors.
static FrontPanelIndicator & getInstance(int id)
This function gets the FrontPanelIndicator instance corresponding to the id parameter,...
This class extents DSConstant to manage front panel indicators color, blink sequence and brightness.
static const int kOrange
Indicates RGB value of orange color.
int _iteration
Indicates the blink iteration for front panel indicators.
virtual ~Blink()
This function is the default destructor of Blink class.
FrontPanelIndicator(int id, int maxBrightness, int maxCycleRate, int levels, int colorMode)
This function is a parameterised constructor of FrontPanelIndicator. It creates and initializes the F...
int _colorMode
Indicates the color mode of the LED indicator (single or multicolor mode).
This class extents DSConstant to manage the color of the front panel indicator.
int getMaxCycleRate() const
This API get the rate at which the LED is rotating/glowing during scrolling.
int getBrightness()
This API gets the brightness of the specified LED indicators.
static const int kMessage
Indicates id of meassage LED.
void setState(const bool &enable)
This API is used to enable or disable the front panel indicator.
uint32_t _color_rgb32
Indicates the color id of the LED.