Skip to content

Commit da0140c

Browse files
committed
remove lighttypes
1 parent fd6e19e commit da0140c

File tree

4 files changed

+28
-49
lines changed

4 files changed

+28
-49
lines changed

examples/lighting-app/silabs/include/AppTask.h

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#endif //(defined(SL_MATTER_RGB_LED_ENABLED) && SL_MATTER_RGB_LED_ENABLED == 1)
3131
#include "AppEvent.h"
3232
#include "BaseApplication.h"
33-
#include "LightTypes.h"
3433

3534
#include <app/clusters/on-off-server/on-off-server.h>
3635
#include <app/persistence/DeferredAttributePersistenceProvider.h>
@@ -51,6 +50,34 @@
5150
#define APP_ERROR_START_TIMER_FAILED CHIP_APPLICATION_ERROR(0x05)
5251
#define APP_ERROR_STOP_TIMER_FAILED CHIP_APPLICATION_ERROR(0x06)
5352

53+
/**********************************************************
54+
* LightingManager types (from former LightTypes.h)
55+
*********************************************************/
56+
57+
namespace LightingManager {
58+
59+
enum Action_t
60+
{
61+
ON_ACTION = 0,
62+
OFF_ACTION,
63+
LEVEL_ACTION,
64+
COLOR_ACTION_HSV,
65+
COLOR_ACTION_CT,
66+
COLOR_ACTION_XY,
67+
68+
INVALID_ACTION
69+
};
70+
71+
enum State_t
72+
{
73+
kState_OffInitiated = 0,
74+
kState_OffCompleted,
75+
kState_OnInitiated,
76+
kState_OnCompleted,
77+
};
78+
79+
} // namespace LightingManager
80+
5481
/**********************************************************
5582
* AppTask Declaration
5683
*********************************************************/

examples/lighting-app/silabs/include/AppTaskImpl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
#include "AppTask.h"
2323
#include "CRTPHelpers.h"
24-
#include "LightTypes.h"
2524
#include <lib/core/CHIPError.h>
2625

2726
#if (defined(SL_MATTER_RGB_LED_ENABLED) && SL_MATTER_RGB_LED_ENABLED == 1)

examples/lighting-app/silabs/include/LightTypes.h

Lines changed: 0 additions & 46 deletions
This file was deleted.

examples/lighting-app/silabs/src/DataModelCallbacks.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "RGBLEDWidget.h"
2626
#endif //(defined(SL_MATTER_RGB_LED_ENABLED) && SL_MATTER_RGB_LED_ENABLED == 1)
2727
#include "AppTask.h"
28-
#include "LightTypes.h"
2928

3029
#include <app-common/zap-generated/attributes/Accessors.h>
3130
#include <app-common/zap-generated/ids/Attributes.h>

0 commit comments

Comments
 (0)