Skip to content

Commit

Permalink
Create a block helper to iterate over the ZCL Baseline Types:
Browse files Browse the repository at this point in the history
- Add zcl_baseline_types to go over baseline types found from atomic data types
- Add additional is_power_of_two helper for matter use case to determine odd sized data types
- update the atomic table schema, retrieval and mapping
- Add unit tests with the example needed for Matter code
- update feature level pointer
- Updating the zap schema
- Github: ZAP#1438
  • Loading branch information
brdandu committed Oct 25, 2024
1 parent 57ffa8e commit 5db1e47
Show file tree
Hide file tree
Showing 15 changed files with 5,037 additions and 4,740 deletions.
2 changes: 1 addition & 1 deletion apack.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Graphical configuration tool for application and libraries based on Zigbee Cluster Library.",
"path": [".", "node_modules/.bin/", "ZAP.app/Contents/MacOS"],
"requiredFeatureLevel": "apack.core:9",
"featureLevel": 104,
"featureLevel": 105,
"uc.triggerExtension": "zap",
"executable": {
"zap:win32.x86_64": {
Expand Down
26 changes: 26 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -11245,6 +11245,7 @@ This module contains the API for templating. For more detailed instructions, rea
* [~replace_string(mainString, replaceString, replaceWithString)](#module_Templating API_ toplevel utility helpers..replace_string) ⇒
* [~add_prefix_to_all_strings(str, prefixStr)](#module_Templating API_ toplevel utility helpers..add_prefix_to_all_strings) ⇒
* [~multiply()](#module_Templating API_ toplevel utility helpers..multiply) ⇒
* [~is_power_of_two(val)](#module_Templating API_ toplevel utility helpers..is_power_of_two) ⇒
* [~is_string_underscored(val)](#module_Templating API_ toplevel utility helpers..is_string_underscored) ⇒
* [~as_uppercase(val)](#module_Templating API_ toplevel utility helpers..as_uppercase) ⇒

Expand Down Expand Up @@ -11566,6 +11567,18 @@ Returns a concatenated string with spaces between each string
### Templating API: toplevel utility helpers~multiply() ⇒
**Kind**: inner method of [<code>Templating API: toplevel utility helpers</code>](#module_Templating API_ toplevel utility helpers)
**Returns**: A number which is result of multiplying all the arguments given
<a name="module_Templating API_ toplevel utility helpers..is_power_of_two"></a>

### Templating API: toplevel utility helpers~is\_power\_of\_two(val) ⇒
Returns a boolean based on whether a given value is a power or 2 or not.

**Kind**: inner method of [<code>Templating API: toplevel utility helpers</code>](#module_Templating API_ toplevel utility helpers)
**Returns**: boolean

| Param | Type |
| --- | --- |
| val | <code>\*</code> |

<a name="module_Templating API_ toplevel utility helpers..is_string_underscored"></a>

### Templating API: toplevel utility helpers~is\_string\_underscored(val) ⇒
Expand Down Expand Up @@ -11620,6 +11633,7 @@ This module contains the API for templating. For more detailed instructions, rea
* [~zcl_attributes_client(options)](#module_Templating API_ static zcl helpers..zcl_attributes_client) ⇒
* [~zcl_attributes_server(options)](#module_Templating API_ static zcl helpers..zcl_attributes_server) ⇒
* [~zcl_atomics(options)](#module_Templating API_ static zcl helpers..zcl_atomics) ⇒
* [~zcl_baseline_types(options)](#module_Templating API_ static zcl helpers..zcl_baseline_types) ⇒
* [~zcl_cluster_largest_label_length()](#module_Templating API_ static zcl helpers..zcl_cluster_largest_label_length) ⇒
* [~largestLabelLength(An)](#module_Templating API_ static zcl helpers..largestLabelLength) ⇒
* [~zcl_command_arguments_count(commandId)](#module_Templating API_ static zcl helpers..zcl_command_arguments_count) ⇒
Expand Down Expand Up @@ -12045,6 +12059,18 @@ Block helper iterating over all atomic types.
| --- | --- |
| options | <code>\*</code> |

<a name="module_Templating API_ static zcl helpers..zcl_baseline_types"></a>

### Templating API: static zcl helpers~zcl\_baseline\_types(options) ⇒
Block helper iterating over all baseline types in matter from atomics.

**Kind**: inner method of [<code>Templating API: static zcl helpers</code>](#module_Templating API_ static zcl helpers)
**Returns**: Promise of content.

| Param | Type |
| --- | --- |
| options | <code>\*</code> |

<a name="module_Templating API_ static zcl helpers..zcl_cluster_largest_label_length"></a>

### Templating API: static zcl helpers~zcl\_cluster\_largest\_label\_length() ⇒
Expand Down
26 changes: 26 additions & 0 deletions docs/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -2945,6 +2945,7 @@ This module contains the API for templating. For more detailed instructions, rea
* [~replace_string(mainString, replaceString, replaceWithString)](#module_Templating API_ toplevel utility helpers..replace_string) ⇒
* [~add_prefix_to_all_strings(str, prefixStr)](#module_Templating API_ toplevel utility helpers..add_prefix_to_all_strings) ⇒
* [~multiply()](#module_Templating API_ toplevel utility helpers..multiply) ⇒
* [~is_power_of_two(val)](#module_Templating API_ toplevel utility helpers..is_power_of_two) ⇒
* [~is_string_underscored(val)](#module_Templating API_ toplevel utility helpers..is_string_underscored) ⇒
* [~as_uppercase(val)](#module_Templating API_ toplevel utility helpers..as_uppercase) ⇒

Expand Down Expand Up @@ -3266,6 +3267,18 @@ Returns a concatenated string with spaces between each string
### Templating API: toplevel utility helpers~multiply() ⇒
**Kind**: inner method of [<code>Templating API: toplevel utility helpers</code>](#module_Templating API_ toplevel utility helpers)
**Returns**: A number which is result of multiplying all the arguments given
<a name="module_Templating API_ toplevel utility helpers..is_power_of_two"></a>

### Templating API: toplevel utility helpers~is\_power\_of\_two(val) ⇒
Returns a boolean based on whether a given value is a power or 2 or not.

**Kind**: inner method of [<code>Templating API: toplevel utility helpers</code>](#module_Templating API_ toplevel utility helpers)
**Returns**: boolean

| Param | Type |
| --- | --- |
| val | <code>\*</code> |

<a name="module_Templating API_ toplevel utility helpers..is_string_underscored"></a>

### Templating API: toplevel utility helpers~is\_string\_underscored(val) ⇒
Expand Down Expand Up @@ -3320,6 +3333,7 @@ This module contains the API for templating. For more detailed instructions, rea
* [~zcl_attributes_client(options)](#module_Templating API_ static zcl helpers..zcl_attributes_client) ⇒
* [~zcl_attributes_server(options)](#module_Templating API_ static zcl helpers..zcl_attributes_server) ⇒
* [~zcl_atomics(options)](#module_Templating API_ static zcl helpers..zcl_atomics) ⇒
* [~zcl_baseline_types(options)](#module_Templating API_ static zcl helpers..zcl_baseline_types) ⇒
* [~zcl_cluster_largest_label_length()](#module_Templating API_ static zcl helpers..zcl_cluster_largest_label_length) ⇒
* [~largestLabelLength(An)](#module_Templating API_ static zcl helpers..largestLabelLength) ⇒
* [~zcl_command_arguments_count(commandId)](#module_Templating API_ static zcl helpers..zcl_command_arguments_count) ⇒
Expand Down Expand Up @@ -3745,6 +3759,18 @@ Block helper iterating over all atomic types.
| --- | --- |
| options | <code>\*</code> |

<a name="module_Templating API_ static zcl helpers..zcl_baseline_types"></a>

### Templating API: static zcl helpers~zcl\_baseline\_types(options) ⇒
Block helper iterating over all baseline types in matter from atomics.

**Kind**: inner method of [<code>Templating API: static zcl helpers</code>](#module_Templating API_ static zcl helpers)
**Returns**: Promise of content.

| Param | Type |
| --- | --- |
| options | <code>\*</code> |

<a name="module_Templating API_ static zcl helpers..zcl_cluster_largest_label_length"></a>

### Templating API: static zcl helpers~zcl\_cluster\_largest\_label\_length() ⇒
Expand Down
Loading

0 comments on commit 5db1e47

Please sign in to comment.