Skip to content

Commit b33b3e4

Browse files
committed
SiliconLabsGH-43: Unify_UserCredential cluster integration in ZPC
Forwarded: SiliconLabs#43 Bug-SiliconLabs: UIC-3222 Bug-Github: SiliconLabs#43
1 parent 60e78a8 commit b33b3e4

15 files changed

+4336
-90
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// User Credential CC
2+
def zwUSER_CREDENTIAL_USER_COUNT 0x8302
3+
def zwUSER_CREDENTIAL_SUPPORTED_CREDENTIAL_RULES 0x8303
4+
def zwUSER_CREDENTIAL_SUPPORTED_USER_TYPES 0x8308
5+
def zwUSER_CREDENTIAL_SUPPORT_CREDENTIAL_CHECKSUM 0x8309
6+
def zwUSER_CREDENTIAL_SUPPORT_ADMIN_PIN_CODE 0x830A
7+
def zwUSER_CREDENTIAL_SUPPORT_ADMIN_PIN_CODE_DEACTIVATION 0x830B
8+
9+
// This represents short CamelCase labels the attributes in the DotDot UserCredential cluster
10+
def zb_SupportedUserUniqueIdentifiers 0xfd080000
11+
def zb_SupportedCredentialRules 0xfd080001
12+
// def zb_SupportedCredentialTypes 0xfd080002 Binding is done in user_credential directly
13+
def zb_SupportedUserTypes 0xfd080003
14+
def zb_SupportCredentialChecksum 0xfd080004
15+
def zb_SupportAdminPinCode 0xfd080005
16+
def zb_SupportAdminPinCodeDeactivation 0xfd080006
17+
// def zb_AdminPinCode 0xfd080007 Binding is done in user_credential_cluster_server directly
18+
19+
scope 0 chain_reaction(0) {
20+
r'zb_SupportedUserUniqueIdentifiers = r'zwUSER_CREDENTIAL_USER_COUNT
21+
r'zb_SupportedCredentialRules = r'zwUSER_CREDENTIAL_SUPPORTED_CREDENTIAL_RULES
22+
r'zb_SupportedUserTypes = r'zwUSER_CREDENTIAL_SUPPORTED_USER_TYPES
23+
24+
r'zb_SupportCredentialChecksum = r'zwUSER_CREDENTIAL_SUPPORT_CREDENTIAL_CHECKSUM
25+
r'zb_SupportAdminPinCode = r'zwUSER_CREDENTIAL_SUPPORT_ADMIN_PIN_CODE
26+
r'zb_SupportAdminPinCodeDeactivation = r'zwUSER_CREDENTIAL_SUPPORT_ADMIN_PIN_CODE_DEACTIVATION
27+
}

applications/zpc/components/zcl_cluster_servers/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ add_library(
99
zcl_cluster_servers
1010
src/configuration_parameter_cluster_server.cpp
1111
src/humidity_control_cluster_server.c
12+
src/user_credential_cluster_server.cpp
1213
src/user_code_cluster_server.cpp
1314
src/fan_control_cluster_server.c
1415
src/zcl_binding_cluster_server.cpp

applications/zpc/components/zcl_cluster_servers/src/configuration_parameter_cluster_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ static void
521521
clear_configuration_parameters_vector(configuration);
522522

523523
// Do it again for the Reported value
524-
get_configuration_parameters(endpoint_id_node,
524+
get_configuration_parameters(endpoint_id_node,
525525
configuration,
526526
REPORTED_ATTRIBUTE);
527527
uic_mqtt_dotdot_configuration_parameters_configuration_parameters_publish(

0 commit comments

Comments
 (0)