You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update ZAP to version that generates min/max information. (#12325)
* Update ZAP to version that generates min/max information.
The XML updates are based on examining the all-clusters app codegen
and removing spurious min-max constraints that just restate the value
range of the type (e.g. setting max to 0xFFFF for an int16u). A few
attributes were made nullable in the process to remove an unnecessary
constraint like max="0xFFFE" when the spec says range is all but the
attribute is nullable.
* Make generatedAttributes (and generatedDefaults, minMaxDefaults) constexpr.
This should ensure that it does not accidentally end up in .data
instead of .rodata.
The main fix here is adding the constexpr constructor for
EmberAfDefaultOrMinMaxAttributeValue that takes a
EmberAfAttributeMinMaxValue*, which lets us remove the non-constexpr
reinterpret_cast (coming from the C-style cast) to uint8_t* in
ZAP_MIN_MAX_DEFAULTS_INDEX.
The other fixes are just fixing long-standing const-correctness
issues; this allows us to remove the implicit const_cast from
ZAP_LONG_DEFAULTS_INDEX.
<attributeside="server"code="0x0010"define="ON_OFF_TRANSITION_TIME"type="INT16U"min="0x0000"max="0xFFFF"writable="true"default="0x0000"optional="true">on off transition time</attribute>
<attributeside="server"code="0x0010"define="ON_OFF_TRANSITION_TIME"type="INT16U"writable="true"default="0x0000"optional="true">on off transition time</attribute>
<attributeside="server"code="0x4000"define="START_UP_CURRENT_LEVEL"type="INT8U"min="0x01"max="0xFF"writable="true"optional="true"introducedIn="l&o-1.0-15-0014-04">start up current level</attribute>
409
+
<attributeside="server"code="0x4000"define="START_UP_CURRENT_LEVEL"type="INT8U"writable="true"optional="true"introducedIn="l&o-1.0-15-0014-04">start up current level</attribute>
<attributeside="server"code="0x000F"define="COLOR_CONTROL_OPTIONS"type="BITMAP8"min="0x00"max="0xFF"writable="true"default="0x00"optional="false"introducedIn="zcl-6.0-15-02017-001">color control options</attribute>
225
+
<attributeside="server"code="0x000F"define="COLOR_CONTROL_OPTIONS"type="BITMAP8"writable="true"default="0x00"optional="false"introducedIn="zcl-6.0-15-02017-001">color control options</attribute>
226
226
<!-- COLOR_CONTROL_OPTIONS -->
227
227
<attributeside="server"code="0x0010"define="COLOR_CONTROL_NUMBER_OF_PRIMARIES"type="INT8U"min="0x00"max="0x06"writable="false"optional="true">number of primaries</attribute>
228
228
<!-- NUMBER_OF_PRIMARIES -->
@@ -270,22 +270,22 @@ limitations under the License.
270
270
<!-- COLOR_POINT_R_X -->
271
271
<attributeside="server"code="0x0033"define="COLOR_CONTROL_COLOR_POINT_R_Y"type="INT16U"min="0x0000"max="0xFEFF"writable="true"optional="true">color point r y</attribute>
272
272
<!-- COLOR_POINT_R_Y -->
273
-
<attributeside="server"code="0x0034"define="COLOR_CONTROL_COLOR_POINT_R_INTENSITY"type="INT8U"min="0x00"max="0xFF"writable="true"optional="true">color point r intensity</attribute>
273
+
<attributeside="server"code="0x0034"define="COLOR_CONTROL_COLOR_POINT_R_INTENSITY"type="INT8U"writable="true"optional="true">color point r intensity</attribute>
274
274
<!-- COLOR_POINT_R_INTENSITY -->
275
275
<attributeside="server"code="0x0036"define="COLOR_CONTROL_COLOR_POINT_G_X"type="INT16U"min="0x0000"max="0xFEFF"writable="true"optional="true">color point g x</attribute>
276
276
<!-- COLOR_POINT_G_X -->
277
277
<attributeside="server"code="0x0037"define="COLOR_CONTROL_COLOR_POINT_G_Y"type="INT16U"min="0x0000"max="0xFEFF"writable="true"optional="true">color point g y</attribute>
278
278
<!-- COLOR_POINT_G_Y -->
279
-
<attributeside="server"code="0x0038"define="COLOR_CONTROL_COLOR_POINT_G_INTENSITY"type="INT8U"min="0x00"max="0xFF"writable="true"optional="true">color point g intensity</attribute>
279
+
<attributeside="server"code="0x0038"define="COLOR_CONTROL_COLOR_POINT_G_INTENSITY"type="INT8U"writable="true"optional="true">color point g intensity</attribute>
280
280
<!-- COLOR_POINT_G_INTENSITY -->
281
281
<attributeside="server"code="0x003A"define="COLOR_CONTROL_COLOR_POINT_B_X"type="INT16U"min="0x0000"max="0xFEFF"writable="true"optional="true">color point b x</attribute>
282
282
<!-- COLOR_POINT_B_X -->
283
283
<attributeside="server"code="0x003B"define="COLOR_CONTROL_COLOR_POINT_B_Y"type="INT16U"min="0x0000"max="0xFEFF"writable="true"optional="true">color point b y</attribute>
284
284
<!-- COLOR_POINT_B_Y -->
285
-
<attributeside="server"code="0x003C"define="COLOR_CONTROL_COLOR_POINT_B_INTENSITY"type="INT8U"min="0x00"max="0xFF"writable="true"optional="true">color point b intensity</attribute>
285
+
<attributeside="server"code="0x003C"define="COLOR_CONTROL_COLOR_POINT_B_INTENSITY"type="INT8U"writable="true"optional="true">color point b intensity</attribute>
286
286
<!-- COLOR_POINT_B_INTENSITY -->
287
287
<attributeside="server"code="0x400D"define="COLOR_CONTROL_TEMPERATURE_LEVEL_MIN_MIREDS"type="INT16U"min="0x0000"max="0xFFFF"writable="false"optional="false"introducedIn="l&o-1.0-15-0014-04">couple color temp to level min-mireds</attribute>
288
-
<attributeside="server"code="0x4010"define="START_UP_COLOR_TEMPERATURE_MIREDS"type="INT16U"min="0x0000"max="0xFFFF"writable="true"optional="false"introducedIn="l&o-1.0-15-0014-04">start up color temperature mireds</attribute>
288
+
<attributeside="server"code="0x4010"define="START_UP_COLOR_TEMPERATURE_MIREDS"type="INT16U"min="0x0000"max="0xFEFF"writable="true"optional="false"introducedIn="l&o-1.0-15-0014-04">start up color temperature mireds</attribute>
0 commit comments