Skip to content

Commit

Permalink
Release ver_1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Unify Automated committed Feb 9, 2022
1 parent 1340478 commit 6ef95ba
Show file tree
Hide file tree
Showing 9,994 changed files with 327,159 additions and 427,218 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .cargo/config
@@ -1,5 +1,5 @@
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
linker = "arm-linux-gnueabihf-g++"

[target.mips-unknown-linux-gnu]
linker = "mips-linux-gnu-gcc"
6 changes: 6 additions & 0 deletions .gitattributes
@@ -0,0 +1,6 @@
"zap_apack_mac.zip" filter=lfs diff=lfs merge=lfs -text
"slc_cli_mac.zip" filter=lfs diff=lfs merge=lfs -text
"zap-2022.1.10.dmg" filter=lfs diff=lfs merge=lfs -text
"zap_apack_linux.zip" filter=lfs diff=lfs merge=lfs -text
"slc_cli_linux.zip" filter=lfs diff=lfs merge=lfs -text
"zap_2022.1.10_amd64.deb" filter=lfs diff=lfs merge=lfs -text
4 changes: 3 additions & 1 deletion .vscode/cspell.json
Expand Up @@ -3,7 +3,9 @@
"language": "en",
"words": [
"armhf",
"attributestore",
"autogenerated",
"backoff",
"cmake",
"cookiecutter",
"dmesg",
Expand Down Expand Up @@ -35,4 +37,4 @@
"zwapi",
"zwave"
]
}
}
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Expand Up @@ -12,7 +12,7 @@
"label": "build_and_launch_debug_on_rpi",
"type": "shell",
"dependsOn": "build_rpi",
"command": "scp build_armhf/components/libuic.so build_armhf/applications/zpc/zpc pi@${input:rpi_ip}:. && ssh -t pi@${input:rpi_ip} \"gdbserver localhost:3001 ./zpc --datastore.file uic.db\"",
"command": "scp build_armhf/components/libuic.so build_armhf/applications/zpc/zpc pi@${input:rpi_ip}:. && ssh -t pi@${input:rpi_ip} \"gdbserver localhost:3001 ./zpc --zpc.datastore_file uic.db\"",
"problemMatcher": []
}
],
Expand Down
186 changes: 14 additions & 172 deletions .vscode/zpc.code-snippets
Expand Up @@ -33,7 +33,7 @@
" *****************************************************************************/",
"",
"/**",
" * @file ${TM_FILENAME}",
" * @defgroup ${TM_FILENAME_BASE}",
" * @brief TODO: Write brief for ${TM_FILENAME_BASE}",
" *",
" * TODO: Write component description for ${TM_FILENAME_BASE}",
Expand Down Expand Up @@ -135,181 +135,23 @@
],
"description": "Unity Test"
},

"Command Class handler C file": {
"Rust file": {
"prefix": "zpc",
"scope": "c,cpp",
"scope": "rust",
"body":[
"/******************************************************************************",
"* # License",
"* <b>Copyright ${CURRENT_YEAR} Silicon Laboratories Inc. www.silabs.com</b>",
"******************************************************************************",
"* The licensor of this software is Silicon Laboratories Inc. Your use of this",
"* software is governed by the terms of Silicon Labs Master Software License",
"* Agreement (MSLA) available at",
"* www.silabs.com/about-us/legal/master-software-license-agreement. This",
"* software is distributed to you in Source Code format and is governed by the",
"* sections of the MSLA applicable to Source Code.",
"*",
"*****************************************************************************/",
"",
"// Includes from this component",
"#include \"${TM_FILENAME_BASE}.h\"",
"",
"// Generic includes",
"#include <assert.h>",
"#include <stdbool.h>",
"",
"// Includes from other components",
"#include \"ZW_classcmd.h\"",
"#include \"zwave_command_handler.h\"",
"#include \"zwave_controller_connection_info.h\"",
"#include \"zwave_controller_utils.h\"",
"#include \"zwave_rx.h\"",
"",
"#include \"attribute_store.h\"",
"#include \"attribute_store_helper.h\"",
"#include \"attribute_store_network_helper.h\"",
"#include \"attribute_resolver.h\"",
"",
"#include \"zwave_unid.h\"",
"",
"#include \"sl_log.h\"",
"#define LOG_TAG \"${TM_FILENAME_BASE}\"",
"",
"",
"///////////////////////////////////////////////////////////////////////////////",
"// Private helper functions",
"///////////////////////////////////////////////////////////////////////////////",
"",
"",
"// # License",
"// <b>Copyright ${CURRENT_YEAR} Silicon Laboratories Inc. www.silabs.com</b>",
"///////////////////////////////////////////////////////////////////////////////",
"// Command Handler functions",
"// The licensor of this software is Silicon Laboratories Inc. Your use of this",
"// software is governed by the terms of Silicon Labs Master Software License",
"// Agreement (MSLA) available at",
"// www.silabs.com/about-us/legal/master-software-license-agreement. This",
"// software is distributed to you in Source Code format and is governed by the",
"// sections of the MSLA applicable to Source Code.",
"//",
"///////////////////////////////////////////////////////////////////////////////",
"static sl_status_t",
" ${TM_FILENAME_BASE}_handle_xxx_command(",
" const zwave_controller_connection_info_t *connection_info,",
" const uint8_t *frame_data,",
" uint16_t frame_length)",
"{",
" if (frame_length < xxx ) {",
" // Frame too short?? Just ignore it and return SUCCESS to supervision",
" // Since it is a report.",
" return SL_STATUS_OK;",
" }",
"",
" // Find the NodeID in the attribute store.",
" attribute_store_node_t node_id_node",
" = attribute_store_network_helper_get_zwave_node_id_node(",
" connection_info->remote.node_id);",
"",
" // Save the data from this command",
" xxx",
"",
" return SL_STATUS_OK;",
"}",
"",
"",
"static sl_status_t ${TM_FILENAME_BASE}_handler(",
" const zwave_controller_connection_info_t *connection_info,",
" const zwave_rx_receive_options_t *rx_options,",
" const uint8_t *frame_data,",
" uint16_t frame_length)",
"{",
" if (frame_length < 2) {",
" return SL_STATUS_NOT_SUPPORTED;",
" }",
"",
" if (frame_data[0] != xxx) {",
" return SL_STATUS_NOT_SUPPORTED;",
" }",
"",
" switch (frame_data[1]) {",
" case xxx:",
" return ${TM_FILENAME_BASE}_handle_xxx_command(",
" connection_info,",
" frame_data,",
" frame_length);",
"",
" default:",
" return SL_STATUS_NOT_SUPPORTED;",
" }",
"}",
"",
"///////////////////////////////////////////////////////////////////////////////",
"// Attribute resolution functions",
"///////////////////////////////////////////////////////////////////////////////",
"static sl_status_t ${TM_FILENAME_BASE}_get(",
" attribute_store_node_t node, uint8_t *frame, uint16_t *frame_len)",
"{",
" // Create a frame for the attribute resolver",
" xxx",
"",
" *frame_len = sizeof(xxx);",
" return SL_STATUS_OK;",
"}",
"",
"///////////////////////////////////////////////////////////////////////////////",
"// Attribute update callbacks",
"///////////////////////////////////////////////////////////////////////////////",
"static void ${TM_FILENAME_BASE}_on_version_attribute_update(",
" attribute_store_node_t updated_node, attribute_store_change_t change)",
"{",
" if (change == ATTRIBUTE_DELETED) {",
" return;",
" }",
"",
" // Check that we have the right type of attribute.",
" assert(ATTRIBUTE_COMMAND_CLASS_xxx_VERSION",
" == attribute_store_get_node_type(updated_node));",
"",
" uint8_t supporting_node_version = 0;",
" attribute_store_read_value(updated_node,",
" REPORTED_ATTRIBUTE,",
" &supporting_node_version,",
" sizeof(supporting_node_version));",
"",
" if (supporting_node_version == 0) {",
" // Wait for the version to be known.",
" return;",
" }",
"",
" // Now we know we have a supporting node.",
" // Check that the minimum attributes are created",
" attribute_store_node_t endpoint_node",
" = attribute_store_get_node_parent(updated_node);",
"",
" // Let the rest of the command class perform the job.",
" attribute_store_type_t attribute_list[]",
" = {xxx};",
" attribute_store_add_if_missing(endpoint_node,",
" attribute_list,",
" COUNT_OF(attribute_list));",
"}",
"",
"///////////////////////////////////////////////////////////////////////////////",
"// Public interface functions",
"///////////////////////////////////////////////////////////////////////////////",
"sl_status_t ${TM_FILENAME_BASE}_init()",
"{",
"",
" // Register our handler to the Z-Wave CC framework:",
" zwave_command_handler_t handler;",
" handler.handler = ${TM_FILENAME_BASE}_handler;",
" handler.minimal_scheme",
" = ZWAVE_CONTROLLER_ENCAPSULATION_NETWORK_SCHEME;",
" handler.command_class = COMMAND_CLASS_xxx;",
" handler.version = xxx;",
" handler.support = false;",
" handler.control = false;",
"",
" zwave_command_handler_register_handler(handler);",
"",
" return SL_STATUS_OK;",
"}"
],
"description": "Command Class handler C file"
},


"description": "UIC rust source file"
},
}
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -13,6 +13,7 @@ set(CMAKE_INCLUDE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/include/"
# ##############################################################################
include(cmake/include/version.cmake)
include(cmake/include/build_permutations.cmake)
include(cmake/include/link_wrap.cmake)

project(
uic
Expand Down

0 comments on commit 6ef95ba

Please sign in to comment.