|
RDK Documentation (Open Sourced RDK Components)
|
20 #include "ledmgr_types.hpp"
32 indicatorState_t state;
34 int pattern_repetitions;
35 unsigned char sequence_read_offset;
36 unsigned int intensity;
42 pthread_mutex_t m_mutex;
46 indicatorState_t m_state;
48 int m_pattern_repetitions;
49 unsigned char m_sequence_read_offset;
50 unsigned int m_preflare_brightness;
58 const std::string&
getName()
const;
59 int setState(indicatorState_t state);
61 void setColor(
const unsigned int color);
65 void executeFlare(
const unsigned int percentage_increase,
const unsigned int length_ms);
int registerCallback(unsigned int milliseconds)
This API register timer callback function in order to complete the blinking pattern iteration count.
void setColor(const unsigned int color)
This API sets the indicator color.
int timerCallback(void)
This API requests to process the pattern iteration steps.
void executeFlare(const unsigned int percentage_increase, const unsigned int length_ms)
Register Flare callback function to set indicator brightness as flare.
int setBlink(const blinkPattern_t *pattern, int repetitions=-1)
This API enables the indicator to blink with the specified blinking pattern.
int setState(indicatorState_t state)
This API cancel the current blinking indicator if any, to change the state .
int enableIndicator(bool enable)
This API sets the indicator state.
void flareCallback(void)
API to perform indicator brightness with flare value.
Structures and classes for front panel indicator are defined here.
int step()
This API is to register timer callback function depends on iteration pattern(indefinite iteration and...
This class extents DSConstant to manage front panel indicators color, blink sequence and brightness.
void saveState()
This API saves all the current indicator related properties.
void restoreState()
API to restore the indicator properties from saved indicator properties.
void setBrightness(unsigned int intensity)
This API sets the brightness of the specified LED.
const std::string & getName() const
API to return the indicator name.