rte.c
Functions
RteSetPowerState
25void RteSetPowerState(PowerState state)
26{
27 currentPowerState = state;
28}
RteGetPowerState
30PowerState RteGetPowerState(void)
31{
32 return currentPowerState;
33}
RteSetPowerKeyPressedEvent
35void RteSetPowerKeyPressedEvent(boolean value)
36{
37 powerKeyPressedEvent = value;
38}
RteGetPowerKeyPressedEvent
40boolean RteGetPowerKeyPressedEvent()
41{
42 return powerKeyPressedEvent;
43}
RteSetLightValue
45void RteSetLightValue(RGBColor value)
46{
47 lightValue = value;
48}
RteGetLightValue
50void RteGetLightValue(RGBColor *value)
51{
52 *value = lightValue;
53}
RteIsKeyPressed
55boolean RteIsKeyPressed(KeyCodes key)
56{
57 return ButtonInterfaceIsButtonPressed(key);
58}
RteSetMainKnobValue
60void RteSetMainKnobValue(percentage_t value)
61{
62 if (value > 100)
63 {
64 mainKnobValue = 100;
65 }
66 else
67 {
68 mainKnobValue = value;
69 }
70}
RteGetMainKnobValue
72percentage_t RteGetMainKnobValue(void)
73{
74 return mainKnobValue;
75}
RteSetBrightnessValue
77void RteSetBrightnessValue(brightness_t value)
78{
79 brightnessValue = value;
80}
RteGetBrightnessValue
82brightness_t RteGetBrightnessValue(void)
83{
84 return brightnessValue;
85}
RteGetOffCourse
CONFIG_BRIGHTNESS_ADJUSTMENT_PERIOD
99void RteGetOffCourse(boolean *value)
100{
101 if (value != NULL)
102 {
103 *value = offCourse;
104 }
105}
RteGetAbortCommanded
107boolean RteGetAbortCommanded(void)
108{
109 return abortCommanded;
110}
RteGetValidAbortCommand
112boolean RteGetValidAbortCommand(void)
113{
114 return validAbortCommand;
115}
RteSetSelfDestructState
117void RteSetSelfDestructState(boolean state)
118{
119 selfDestructState = state;
120}