Skip to content

Commit d26badb

Browse files
author
Unify Automated
committed
Release ver_1.2.1
1 parent 37b8225 commit d26badb

File tree

8,854 files changed

+2335672
-56196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

8,854 files changed

+2335672
-56196
lines changed

.gitattributes

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"zap_2022.1.10_amd64.deb" filter=lfs diff=lfs merge=lfs -text
2-
"slc_cli_linux.zip" filter=lfs diff=lfs merge=lfs -text
32
"zap_apack_linux.zip" filter=lfs diff=lfs merge=lfs -text
4-
"slc_cli_mac.zip" filter=lfs diff=lfs merge=lfs -text
5-
"zap_apack_mac.zip" filter=lfs diff=lfs merge=lfs -text
3+
"slc_cli_linux.zip" filter=lfs diff=lfs merge=lfs -text
64
"zap-2022.1.10.dmg" filter=lfs diff=lfs merge=lfs -text
5+
"zap_apack_mac.zip" filter=lfs diff=lfs merge=lfs -text
6+
"slc_cli_mac.zip" filter=lfs diff=lfs merge=lfs -text

CMakeLists.txt

+10-7
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ project(
2424

2525
# Set shared version string to use in filenames (deb packages etc.)
2626
set(FILE_NAME_VERSIONING "${CMAKE_PROJECT_VERSION}")
27-
if (VERSION_PATCH)
28-
string(APPEND FILE_NAME_VERSIONING "-${VERSION_PATCH}")
27+
if(VERSION_PATCH)
28+
string(APPEND FILE_NAME_VERSIONING "-${VERSION_PATCH}")
2929
endif()
30-
set(FILE_NAME_VERSIONING_ARCH "${FILE_NAME_VERSIONING}_${CMAKE_SYSTEM_PROCESSOR}")
30+
set(FILE_NAME_VERSIONING_ARCH
31+
"${FILE_NAME_VERSIONING}_${CMAKE_SYSTEM_PROCESSOR}")
3132

33+
include(cmake/include/zap.cmake)
3234
include(cmake/include/target_interface_libraries.cmake)
3335
include(cmake/include/compiler_options.cmake)
3436
include(cmake/include/compatible_platform.cmake)
@@ -37,10 +39,11 @@ include(cmake/include/doxygen.cmake)
3739
include(cmake/include/package-helper.cmake)
3840
include(cmake/include/uic_helper.cmake)
3941

40-
41-
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT OR NOT DEFINED CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
42-
set(CMAKE_INSTALL_PREFIX "/usr"
43-
CACHE PATH "default install path" FORCE)
42+
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT
43+
OR NOT DEFINED CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
44+
set(CMAKE_INSTALL_PREFIX
45+
"/usr"
46+
CACHE PATH "default install path" FORCE)
4447
endif()
4548

4649
enable_language(Rust)

Cargo.lock

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Earthfile

-143
This file was deleted.

applications/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Fetch dependencies if forced
22
if(FETCH_GSDK MATCHES ON)
3-
find_package(GeckoSDK 4.1 REQUIRED)
3+
find_package(GeckoSDK 4.1.1 REQUIRED)
44
endif()
55

66
# Build options will determine if the applications will be included and build

applications/aox/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
find_package(GeckoSDK 4.1 REQUIRED)
1+
find_package(GeckoSDK 4.1.1 REQUIRED)
22

33
add_subdirectory(components)
44
add_subdirectory(applications)

applications/aox/applications/aoxpc/components/aox_locator_configuration/CMakeLists.txt

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
1-
# ZAP is required here
2-
find_program(ZAP_EXECUTABLE "zap" REQUIRED)
31
run_zap(zap/gen-templates.json)
42

53
# Library
64
add_library(
75
aox_locator_configuration
86
src/aox_locator_configuration.c
9-
${CMAKE_CURRENT_BINARY_DIR}/src/aox_locator_configuration_attributes.c
10-
)
7+
${ZAP_CURRENT_OUTPUT_DIR}/src/aox_locator_configuration_attributes.c)
118

129
target_include_directories(
1310
aox_locator_configuration
14-
PUBLIC
15-
include
16-
${CMAKE_CURRENT_BINARY_DIR}/include/
11+
PUBLIC include ${ZAP_CURRENT_OUTPUT_DIR}/include/
1712
PRIVATE src)
1813

1914
target_link_libraries(
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
/******************************************************************************
2+
* # License
3+
* <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
4+
******************************************************************************
5+
* The licensor of this software is Silicon Laboratories Inc. Your use of this
6+
* software is governed by the terms of Silicon Labs Master Software License
7+
* Agreement (MSLA) available at
8+
* www.silabs.com/about-us/legal/master-software-license-agreement. This
9+
* software is distributed to you in Source Code format and is governed by the
10+
* sections of the MSLA applicable to Source Code.
11+
*
12+
*****************************************************************************/
13+
14+
// This file is generated by ZCL Advanced Platform generator. Please don't edit manually.
15+
16+
/**
17+
*
18+
* @defgroup aox_locator_configuration_attributes Configuration attributes
19+
* @ingroup aox_locator_configuration
20+
*
21+
* @brief This component provides type definitions and helpers for the
22+
* supported configuration of the AoXLocator cluster.
23+
*
24+
* @{
25+
*/
26+
27+
#ifndef AOX_LOCATOR_CONFIGURATION_ATTRIBUTES_H
28+
#define AOX_LOCATOR_CONFIGURATION_ATTRIBUTES_H
29+
30+
#include <stdint.h>
31+
#include <stdbool.h>
32+
#include <stddef.h>
33+
34+
#include "sl_status.h"
35+
#include "uic_typedefs.h"
36+
#include "zap-types.h"
37+
38+
typedef struct aox_locator_attributes_ {
39+
bool position_and_orientation_valid;
40+
CoordinateAndOrientation position_and_orientation;
41+
size_t azimuth_mask_count;
42+
MinMaxPair* azimuth_mask;
43+
size_t elevation_mask_count;
44+
MinMaxPair* elevation_mask;
45+
size_t allow_list_count;
46+
char** allow_list;
47+
uint8_t cte_mode;
48+
} aox_locator_attributes_t;
49+
50+
51+
#ifdef __cplusplus
52+
extern "C" {
53+
#endif // __cplusplus
54+
55+
56+
/**
57+
* @brief Reads in the AttributeStore/Datastore if AoXLocator attributes are
58+
* present and loads them into the configuration.
59+
*
60+
* @returns SL_STATUS_OK on success, any other status codes otherwise
61+
*/
62+
sl_status_t aox_locator_load_attributes_from_attribute_store(void);
63+
64+
/**
65+
* @brief Stores AoXLocator attributes in the AttributeStore/Datastore
66+
*
67+
* @returns SL_STATUS_OK on success, any other status codes otherwise
68+
*/
69+
sl_status_t aox_locator_store_attributes_in_attribute_store(void);
70+
71+
/**
72+
* @brief Publishes AoXLocator attributes to MQTT
73+
*
74+
* @returns SL_STATUS_OK on success, any other status codes otherwise
75+
*/
76+
77+
sl_status_t publish_aox_locator_attributes_to_mqtt();
78+
79+
80+
/**
81+
* @brief Sets the AoXLocator PositionAndOrientationValid Attribute
82+
*
83+
* @returns SL_STATUS_OK if successful, any other status code in case of error
84+
*/
85+
sl_status_t aox_locator_set_position_and_orientation_valid_attribute(
86+
bool position_and_orientation_valid
87+
);
88+
/**
89+
* @brief Sets the AoXLocator PositionAndOrientation Attribute
90+
*
91+
* @returns SL_STATUS_OK if successful, any other status code in case of error
92+
*/
93+
sl_status_t aox_locator_set_position_and_orientation_attribute(
94+
CoordinateAndOrientation position_and_orientation
95+
);
96+
/**
97+
* @brief Sets the AoXLocator AzimuthMask Attribute
98+
*
99+
* @returns SL_STATUS_OK if successful, any other status code in case of error
100+
*/
101+
sl_status_t aox_locator_set_azimuth_mask_attribute(
102+
size_t azimuth_mask_count,
103+
const MinMaxPair* azimuth_mask
104+
);
105+
/**
106+
* @brief Sets the AoXLocator ElevationMask Attribute
107+
*
108+
* @returns SL_STATUS_OK if successful, any other status code in case of error
109+
*/
110+
sl_status_t aox_locator_set_elevation_mask_attribute(
111+
size_t elevation_mask_count,
112+
const MinMaxPair* elevation_mask
113+
);
114+
/**
115+
* @brief Sets the AoXLocator AllowList Attribute
116+
*
117+
* @returns SL_STATUS_OK if successful, any other status code in case of error
118+
*/
119+
sl_status_t aox_locator_set_allow_list_attribute(
120+
size_t allow_list_count,
121+
const char** allow_list
122+
);
123+
/**
124+
* @brief Sets the AoXLocator CTEMode Attribute
125+
*
126+
* @returns SL_STATUS_OK if successful, any other status code in case of error
127+
*/
128+
sl_status_t aox_locator_set_cte_mode_attribute(
129+
uint8_t cte_mode
130+
);
131+
132+
133+
#ifdef __cplusplus
134+
}
135+
#endif // __cplusplus
136+
137+
#endif // AOX_LOCATOR_CONFIGURATION_ATTRIBUTES_H
138+
/** @} end aox_locator_configuration_attributes */

0 commit comments

Comments
 (0)