RDK Documentation (Open Sourced RDK Components)
|
Configuration of individual indicators are managed here. The blink rate, color, and maximum cycle rate of the front panel indicator can be configured.
Functions | |
static const Color & | device::FrontPanelIndicator::Color::getInstance (int id) |
This function gets an instance of the Color with the specified id, only if the id passed is valid. More... | |
static const Color & | device::FrontPanelIndicator::Color::getInstance (const std::string &name) |
This function gets an instance of the Color corresponding to the specified name, only if the name passed is valid. More... | |
device::FrontPanelIndicator::Color::Color (int id) | |
device::FrontPanelIndicator::Blink::Blink (int interval=0, int iteration=0) | |
This API is a parameterized constructor for the nested class Blink. More... | |
static FrontPanelIndicator & | device::FrontPanelIndicator::getInstance (int id) |
This function gets the FrontPanelIndicator instance corresponding to the id parameter, only if the id passed is valid. More... | |
static FrontPanelIndicator & | device::FrontPanelIndicator::getInstance (const std::string &name) |
This API gets the FrontPanelIndicator instance corresponding to the name parameter. More... | |
device::FrontPanelIndicator::FrontPanelIndicator (int id, int maxBrightness, int maxCycleRate, int levels, int colorMode) | |
This function is a parameterised constructor of FrontPanelIndicator. It creates and initializes the FrontPanelIndicator instance with the configurations/values specified as input parameters. More... | |
virtual | device::FrontPanelIndicator::~FrontPanelIndicator () |
This function is the default constructor for FrontPanelIndicator. More... | |
void | device::FrontPanelIndicator::setBrightness (const int &brightness, const bool toPersist=true) |
This API sets the brightness or intensity of the front panel indicators. More... | |
bool | device::FrontPanelIndicator::getState () |
This API gets the State of the specified LED indicators. More... | |
void | device::FrontPanelIndicator::setState (const bool &enable) |
This API is used to enable or disable the front panel indicator. More... | |
int | device::FrontPanelIndicator::getBrightness () |
This API gets the brightness of the specified LED indicators. More... | |
void | device::FrontPanelIndicator::getBrightnessLevels (int &levels, int &min, int &max) |
This function gets the maximum brightness, minimum brightness and the brightness level set for the front panel indicator. More... | |
int | device::FrontPanelIndicator::getColorMode () |
This function is used to get the color mode of the front panel indicator. The color mode is device specific and can be single or multi color mode (RGB colors). By default the color mode is set to 0 to indicate single color mode. More... | |
void | device::FrontPanelIndicator::setBlink (const Blink &blink) |
This API sets the blink iteration and blink interval for the LED. More... | |
uint32_t | device::FrontPanelIndicator::getColor () |
This API gets the color of the front panel indicator/LED. More... | |
void | device::FrontPanelIndicator::setColor (const Color &newColor, const bool toPersist=true) |
This API sets the color of the front panel indicator. More... | |
void | device::FrontPanelIndicator::setColor (const uint32_t color, const bool toPersist=true) |
This API sets the color of the front panel indicator. More... | |
const List< Color > | device::FrontPanelIndicator::getSupportedColors () const |
This API gets the list of supported colors for front panel indicator. More... | |
|
static |
This function gets an instance of the Color with the specified id, only if the id passed is valid.
[in] | id | Indicates the id of the color against which the Color instance is requested. |
Definition at line 145 of file frontPanelIndicator.cpp.
|
static |
This function gets an instance of the Color corresponding to the specified name, only if the name passed is valid.
[in] | name | Indicates the name against which the color instance is required. |
Definition at line 167 of file frontPanelIndicator.cpp.
Blink::Blink | ( | int | interval = 0 , |
int | iteration = 0 |
||
) |
This API is a parameterized constructor for the nested class Blink.
[in] | interval | Specifies the blink intervals for front panel indicator |
[in] | iteration | Specifies the number of blink iterations for front panel indicator |
Definition at line 202 of file frontPanelIndicator.cpp.
|
static |
This function gets the FrontPanelIndicator instance corresponding to the id parameter, only if the id passed is valid.
[in] | id | Indicates the front panel indicator id whose instance has to be returned. |
Definition at line 208 of file frontPanelIndicator.cpp.
|
static |
This API gets the FrontPanelIndicator instance corresponding to the name parameter.
[in] | name | Indicates the front panel indicator name whose instance has to be returned. |
Definition at line 247 of file frontPanelIndicator.cpp.
device::FrontPanelIndicator::FrontPanelIndicator | ( | int | id, |
int | maxBrightness, | ||
int | maxCycleRate, | ||
int | levels, | ||
int | colorMode | ||
) |
This function is a parameterised constructor of FrontPanelIndicator. It creates and initializes the FrontPanelIndicator instance with the configurations/values specified as input parameters.
[in] | id | Indicates the id for the FrontPanelIndicator instance created. |
[in] | maxBrightness | Indicates maximum brightness value for the front panel indicator. |
[in] | maxCycleRate | Indicates maximum cycle rate for the front panel indicator. |
[in] | levels | Indicates brightness level for the front panel indicator. |
[in] | colorMode | Indicates the color mode for the front panel indicator like single or multi color mode. |
Definition at line 272 of file frontPanelIndicator.cpp.
|
virtual |
This function is the default constructor for FrontPanelIndicator.
Definition at line 292 of file frontPanelIndicator.cpp.
void device::FrontPanelIndicator::setBrightness | ( | const int & | brightness, |
const bool | toPersist = true |
||
) |
This API sets the brightness or intensity of the front panel indicators.
[in] | brightness | Indicates brightness value to be set. |
[in] | toPersist | If true, the value will also return in persistence memory. |
Definition at line 306 of file frontPanelIndicator.cpp.
bool device::FrontPanelIndicator::getState | ( | ) |
This API gets the State of the specified LED indicators.
Definition at line 325 of file frontPanelIndicator.cpp.
void device::FrontPanelIndicator::setState | ( | const bool & | enable | ) |
This API is used to enable or disable the front panel indicator.
[in] | enable | True to enable front panel indicator else false. |
Definition at line 350 of file frontPanelIndicator.cpp.
int device::FrontPanelIndicator::getBrightness | ( | ) |
This API gets the brightness of the specified LED indicators.
Definition at line 374 of file frontPanelIndicator.cpp.
void device::FrontPanelIndicator::getBrightnessLevels | ( | int & | levels, |
int & | min, | ||
int & | max | ||
) |
This function gets the maximum brightness, minimum brightness and the brightness level set for the front panel indicator.
Brightness level indicates a step value at which the brightness/intensity of the indicator could be changed.
[out] | levels | Indicates brightness level set for the front panel indicator. |
[out] | min | Indicates minimum brightness of the front panel indicator. |
[out] | max | Indicates maximum brightness of the front panel indicator. |
Definition at line 406 of file frontPanelIndicator.cpp.
int device::FrontPanelIndicator::getColorMode | ( | ) |
This function is used to get the color mode of the front panel indicator. The color mode is device specific and can be single or multi color mode (RGB colors). By default the color mode is set to 0 to indicate single color mode.
Definition at line 422 of file frontPanelIndicator.cpp.
void device::FrontPanelIndicator::setBlink | ( | const Blink & | blink | ) |
This API sets the blink iteration and blink interval for the LED.
[in] | blink | Indicates the blink iteration and interval value to be set. |
Definition at line 436 of file frontPanelIndicator.cpp.
uint32_t device::FrontPanelIndicator::getColor | ( | ) |
This API gets the color of the front panel indicator/LED.
Definition at line 455 of file frontPanelIndicator.cpp.
void device::FrontPanelIndicator::setColor | ( | const Color & | newColor, |
const bool | toPersist = true |
||
) |
This API sets the color of the front panel indicator.
[in] | color | This parameter provides the color to be set in RGB format. |
[in] | toPersist | If true, the value will also return in persistence memory. |
Definition at line 466 of file frontPanelIndicator.cpp.
void device::FrontPanelIndicator::setColor | ( | const uint32_t | color, |
const bool | toPersist = true |
||
) |
This API sets the color of the front panel indicator.
[in] | color | Indicates the color to be set in RGB format. |
[in] | toPersist | If true, the value will also return in persistence memory. |
Definition at line 523 of file frontPanelIndicator.cpp.
const List< FrontPanelIndicator::Color > device::FrontPanelIndicator::getSupportedColors | ( | ) | const |
This API gets the list of supported colors for front panel indicator.
Definition at line 549 of file frontPanelIndicator.cpp.