Feature/color objects color command (#302)
* added BACnetColorCommand and BACnetxyColor encoding and unit testing * Added Color object and unit testing. * Added Color Temperature object and Unit test * Fix BVLC unit test warning. * add port Makefile for extra types * added RGB to and from CIE xy utility in sys folder, and add unit tests. * added cmake-win32 target * Change RP and RPM to use known property decoder. Add color object RP and RPM decoding and printing Fix RPM print for new reserved range above 4194303 Change default protocol-revision to 24 for Color object * Integrate Color and Color Temperature objects into demo apps Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
+21
-1
@@ -1401,7 +1401,11 @@ typedef enum {
|
||||
/* BACnetLightingCommand */
|
||||
BACNET_APPLICATION_TAG_LIGHTING_COMMAND,
|
||||
/* BACnetHostNPort */
|
||||
BACNET_APPLICATION_TAG_HOST_N_PORT
|
||||
BACNET_APPLICATION_TAG_HOST_N_PORT,
|
||||
/* BACnetxyColor */
|
||||
BACNET_APPLICATION_TAG_XY_COLOR,
|
||||
/* BACnetColorCommand */
|
||||
BACNET_APPLICATION_TAG_COLOR_COMMAND
|
||||
} BACNET_APPLICATION_TAG;
|
||||
|
||||
/* note: these are not the real values, */
|
||||
@@ -2042,6 +2046,22 @@ typedef enum BACnetColorOperation {
|
||||
BACNET_COLOR_OPERATION_MAX = 7
|
||||
} BACNET_COLOR_OPERATION;
|
||||
|
||||
typedef enum BACnetColorOperationInProgress {
|
||||
BACNET_COLOR_OPERATION_IN_PROGRESS_IDLE = 0,
|
||||
BACNET_COLOR_OPERATION_IN_PROGRESS_FADE_ACTIVE = 1,
|
||||
BACNET_COLOR_OPERATION_IN_PROGRESS_RAMP_ACTIVE = 2,
|
||||
BACNET_COLOR_OPERATION_IN_PROGRESS_NOT_CONTROLLED = 3,
|
||||
BACNET_COLOR_OPERATION_IN_PROGRESS_OTHER = 4,
|
||||
BACNET_COLOR_OPERATION_IN_PROGRESS_MAX = 5
|
||||
} BACNET_COLOR_OPERATION_IN_PROGRESS;
|
||||
|
||||
typedef enum BACnetColorTransition {
|
||||
BACNET_COLOR_TRANSITION_NONE = 0,
|
||||
BACNET_COLOR_TRANSITION_FADE = 1,
|
||||
BACNET_COLOR_TRANSITION_RAMP = 2,
|
||||
BACNET_COLOR_TRANSITION_MAX = 3,
|
||||
} BACNET_COLOR_TRANSITION;
|
||||
|
||||
/* NOTE: BACNET_DAYS_OF_WEEK is different than BACNET_WEEKDAY */
|
||||
/* 0=Monday-6=Sunday */
|
||||
typedef enum BACnetDaysOfWeek {
|
||||
|
||||
Reference in New Issue
Block a user